LinkedIn Profile Scraper

by ayesha0300

Not rated
GitHub

About

Fetches LinkedIn profile information using the Fresh LinkedIn Profile Data API.

Details

Author
ayesha0300
Categories
Web Scraping, API, Other
Tags
#social-media

Setup

Install LinkedIn Profile Scraper in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/ayesha0300/linkedin-profile-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Fetches LinkedIn profile information using the Fresh LinkedIn Profile Data API.

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.

- Fetch Profile Data:Retrieves LinkedIn profile information including skills and other settings (with most additional details disabled).
- Asynchronous HTTP Requests:Useshttpxfor non-blocking API calls.
- Environment-based Configuration:Reads theRAPIDAPI_KEYfrom your environment variables usingdotenv.

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

git clone https://github.com/AIAnytime/Awesome-MCP-Server cd linkedin_profile_scraper

Create a.envfile in the project directory with the following content:

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

To connect your MCP client to this server, add the following configuration to yourconfig.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/YT Video/linkedin-mcp/project", "run", "linkedin.py" ] } } }

- Environment Setup:The server usesdotenvto load theRAPIDAPI_KEYrequired to authenticate with the Fresh LinkedIn Profile Data API.
- API Call:The asynchronous functionget_linkedin_datamakes a GET request to the API with specified query parameters.
- MCP Tool:Theget_profiletool 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 thestdiotransport.

- Missing RAPIDAPI_KEY:If the key is not set, the server will raise aValueError. Make sure the key is added to your.envfile 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.

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

KonbiniAPI gives AI agents direct access to social media data — profiles, posts, videos, comments, and search results.

Scraper API for TikTok, Instagram, YouTube, X & more.

1GB Free Trial, World's Leading Proxy Service Platform, Efficient Data Collection

Scrape websites with Oxylabs Web API, supporting dynamic rendering and parsing for structured data extraction.

Unified MCP server giving any AI agent access to 20+ social platforms, web search, scraping, and crypto data — one install, any MCP client.

Access Swedish real estate data from Booli.se through a GraphQL API.

A crawler compliance risk assessment system via a simple API.

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.