Cover image
Try Now
2025-04-06

该MCP服务器使用Fresh LinkedIn配置文件数据API来获取LinkedIn配置文件信息。它被实现为模型上下文协议(MCP)服务器,并公开了一个单个工具get_profile,该工具接受LinkedIn配置文件URL并以JSON格式返回配置文件数据。

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

LinkedIn Profile Scraper MCP Server

This MCP server uses the Fresh LinkedIn Profile Data API to fetch LinkedIn profile information. It is implemented as a model context protocol (MCP) server and exposes a single tool, get_profile, which accepts a LinkedIn profile URL and returns the profile data in JSON format.

Features

  • Fetch Profile Data: Retrieves LinkedIn profile information including skills and other settings (with most additional details disabled).
  • Asynchronous HTTP Requests: Uses httpx for non-blocking API calls.
  • Environment-based Configuration: Reads the RAPIDAPI_KEY from your environment variables using dotenv.

Prerequisites

  • Python 3.7+ – Ensure you are using Python version 3.7 or higher.
  • MCP Framework: Make sure the MCP framework is installed.
  • Required Libraries: Install httpx, python-dotenv, and other dependencies.
  • RAPIDAPI_KEY: Obtain an API key from RapidAPI and add it to a .env file in your project directory (or set it in your environment).

Installation

  1. Clone the Repository:

    git clone https://github.com/codingaslu/Linkedin_Mcp_Server
    cd Linkedin_Mcp_Server
    
  2. Install Dependencies:

    uv add mcp[cli] httpx requests
    
  3. Set Up Environment Variables:

    Create a .env file in the project directory with the following content:

    RAPIDAPI_KEY=your_rapidapi_key_here
    

Running the Server

To run the MCP server, execute:

uv run linkedin.py

The server will start and listen for incoming requests via standard I/O.

MCP Client Configuration

To connect your MCP client to this server, add the following configuration to your config.json. Adjust the paths as necessary for your environment:

{
  "mcpServers": {
    "linkedin_profile_scraper": {
      "command": "C:/Users/aiany/.local/bin/uv",
      "args": [
        "--directory",
        "C:/Users/aiany/OneDrive/Desktop/linkedin-mcp/project",
        "run",
        "linkedin.py"
      ]
    }
  }
}

Code Overview

  • Environment Setup: The server uses dotenv to load the RAPIDAPI_KEY required to authenticate with the Fresh LinkedIn Profile Data API.
  • API Call: The asynchronous function get_linkedin_data makes a GET request to the API with specified query parameters.
  • MCP Tool: The get_profile tool wraps the API call and returns formatted JSON data, or an error message if the call fails.
  • Server Execution: The MCP server is run with the stdio transport.

Troubleshooting

  • Missing RAPIDAPI_KEY: If the key is not set, the server will raise a ValueError. Make sure the key is added to your .env file or set in your environment.
  • API Errors: If the API request fails, the tool will return a message indicating that the profile data could not be fetched.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • JackKuo666
  • 🔍使AI助手可以通过简单的MCP接口搜索和访问PYPI软件包信息。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • appcypher
  • 很棒的MCP服务器 - 模型上下文协议服务器的策划列表

    Reviews

    4 (1)
    Avatar
    user_fhcM8ajm
    2025-04-17

    Linkedin_Mcp_Server by codingaslu is a fantastic tool for developers looking to integrate LinkedIn services effortlessly. The well-documented repository on GitHub provides clear instructions and examples that make the setup process smooth. The welcome message is informative, and the initial URL setup guides users seamlessly. Highly recommend for anyone needing a reliable LinkedIn MCP solution!