Linkedin-Scrap-MCP-Server

by itsShashankSrivastava

161 downloads
Not rated
GitHub

Description

# Linkedin-Scrap-MCP-Server Easily fetch real-time LinkedIn profile information using our MCP (Model Context Protocol) server. This server integrates with the Fresh LinkedIn Profile Data API to return profile details like skills and other basic settings. It exposes a single…

About

# Linkedin-Scrap-MCP-Server Easily fetch real-time LinkedIn profile information using our MCP (Model Context Protocol) server. This server integrates with the Fresh LinkedIn Profile Data API to return profile details like skills and other basic settings. It exposes a single tool—get_profile—that accepts a LinkedIn…

Details

Author
itsShashankSrivastava
Downloads
161
Categories
Other

- Real-time LinkedIn profile data including skills
- Asynchronous HTTP requests via httpx
- Secure API key management with dotenv
- Single get_profile tool for easy integration
- Error messages returned on API failures

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Linkedin-Scrap-MCP-Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository, install dependencies with uv add mcp[cli] httpx requests, and set the RAPIDAPI_KEY environment variable. Start the server with uv run linkedin.py. Configure your MCP client by adding an entry to config.json with the path to uv and the server directory.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "linkedin-scrap-mcp-server": {
            "Linkedin-Scrap-MCP-Server": {
                "command": "uv",
                "args": [
                    "run",
                    "linkedin.py"
                ]
            }
        }
    }
}

McpServers

{
    "Linkedin-Scrap-MCP-Server": {
        "command": "uv",
        "args": [
            "run",
            "linkedin.py"
        ]
    }
}

Linkedin-Scrap-MCP-Server

Easily fetch real-time LinkedIn profile information using our MCP (Model Context Protocol) server. This server integrates with the Fresh LinkedIn Profile Data API to return profile details like skills and other basic settings. It exposes a single tool—get_profile—that accepts a LinkedIn profile URL and responds with structured JSON data.

---

🚀Features

- Real-Time LinkedIn Data: Retrieve up-to-date profile info including skills and core public data (additional extended fields are disabled by default).
- Asynchronous Requests: Built with httpx for efficient, non-blocking HTTP calls.
- Secure API Key Handling: Uses environment variables via dotenv for safe configuration of your RAPIDAPI_KEY.

---

⚙️Requirements

Before you get started, make sure you have:

- Python 3.7+
- MCP Framework installed
- Required libraries: httpx, python-dotenv
- RAPIDAPI_KEY: Sign up at RapidAPI and subscribe to the Fresh LinkedIn Profile Data API, then grab your API key.

---

📦Installation

1. Clone the repository:

git clone https://github.com/itsShashankSrivastava/Linkedin-Scrap-MCP-Server

2. Install dependencies:

uv add mcp[cli] httpx requests

3. Set up your environment variables:

RAPIDAPI_KEY=your_rapidapi_key_here

---

▶️ Running the Server

To start the MCP server:

uv run linkedin.py

This will launch the server and begin listening for incoming requests over standard I/O.

---

🤖 MCP Client Configuration

To connect your MCP client to the server, update your config.json with the following:

{
  "mcpServers": {
    "linkedin_profile_scraper": {
      "command": "C:/Users/shashank.srivastava/.local/bin/uv", 
      "args": [
        "--directory",
        "C:/Users/shashank.srivastava/Desktop/linkedin-scrap",  
        "run",
        "linkedin.py" 
      ]
    }
  }
}

💡 Adjust the paths as necessary based on where your server is located.

---

🧠 How It Works

- Environment Setup: Uses dotenv to load your RAPIDAPI_KEY.
- API Integration: Makes asynchronous GET requests to the Fresh LinkedIn Profile Data API using httpx.
- MCP Tool - get_profile: Wraps the API logic and returns either a clean JSON object or an error message if the request fails.
- Execution: Runs using the standard I/O (stdio) transport method of the MCP server framework.

---

🛠 Troubleshooting

- Missing RAPIDAPI_KEY: If not set, the server will raise a ValueError. Double-check your .env file or system environment variables.
- API Call Errors: If the LinkedIn API request fails, the tool will return a clear error message indicating what went wrong.

---

Feel free to ⭐️ the repo if you find it helpful or open an issue if you need support!

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.