LinkedIn Profile Scraper MCP Server
This server allows you to fetch LinkedIn profile data by providing a profile URL:
Fetch LinkedIn Profiles: Retrieve profile information including skills in JSON format
Asynchronous Operations: Uses
httpxfor non-blocking HTTP requests, enhancing performanceEnvironment Configuration: Requires a
RAPIDAPI_KEYloaded viadotenvfor secure API authenticationMCP Integration: Exposes a single tool,
get_profile, for easy integration with MCP clients
Loads environment variables from a .env file to access configuration settings like API keys.
Provides repository access for installation of the MCP server from the Awesome-MCP-Server GitHub repository.
Connects to the Fresh LinkedIn Profile Data API on RapidAPI to fetch LinkedIn profile information including skills and other profile details.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LinkedIn Profile Scraper MCP Serverget profile data from https://www.linkedin.com/in/janedoe"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
httpxfor non-blocking API calls.Environment-based Configuration: Reads the
RAPIDAPI_KEYfrom your environment variables usingdotenv.
Related MCP server: linkedin-mcp-server
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
.envfile in your project directory (or set it in your environment).
Installation
Clone the Repository:
git clone https://github.com/AIAnytime/Awesome-MCP-Server cd linkedin_profile_scraperInstall Dependencies:
uv add mcp[cli] httpx requestsSet Up Environment Variables:
Create a
.envfile 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.pyThe 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/YT Video/linkedin-mcp/project",
"run",
"linkedin.py"
]
}
}
}Code Overview
Environment Setup: The server uses
dotenvto load theRAPIDAPI_KEYrequired to authenticate with the Fresh LinkedIn Profile Data API.API Call: The asynchronous function
get_linkedin_datamakes a GET request to the API with specified query parameters.MCP Tool: The
get_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 the
stdiotransport.
Troubleshooting
Missing RAPIDAPI_KEY: If the key is not set, the server will raise a
ValueError. 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.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Available Tools
1 toolget_profileB
Get LinkedIn profile data for a given profile URL.
Args:
linkedin_url: The LinkedIn profile URL.
| Name | Required | Description | Default |
|---|---|---|---|
| linkedin_url | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions retrieving data but lacks details on permissions, rate limits, error handling, or output format. This is a significant gap for a tool with zero annotation coverage, though it at least correctly implies a read operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with the core purpose in the first sentence, followed by a structured Args section. It avoids redundancy and is appropriately sized for a single-parameter tool, though the formatting could be slightly more polished.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (one parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose and parameter but lacks details on behavioral traits and output, which are important for an agent to use it effectively without annotations.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With only one parameter and 0% schema description coverage, the description compensates by explaining the parameter's purpose ('The LinkedIn profile URL') in the Args section. This adds meaningful context beyond the bare schema, though it could specify format constraints (e.g., URL validation).
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Get') and resource ('LinkedIn profile data'), and specifies the input requirement ('for a given profile URL'). However, with no sibling tools mentioned, it cannot demonstrate differentiation from alternatives, which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, prerequisites, or contextual constraints. It only states what the tool does, not when it should be applied, leaving usage decisions entirely to the agent's inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined and distinct by default.
The single tool name follows a clear verb_noun pattern (get_profile), and with only one tool, consistency is inherently perfect as there are no other tools to compare against.
A single tool is too few for a server labeled as a 'LinkedIn Profile Scraper MCP Server,' which suggests a broader scope. This minimal set feels thin and underdeveloped for scraping tasks that might include multiple operations like search, batch processing, or data extraction beyond single profiles.
The tool surface is severely incomplete for a LinkedIn scraper. It only allows fetching a single profile by URL, missing essential operations such as searching for profiles, handling authentication, pagination, or extracting additional data like connections or posts, which are typical in scraping workflows.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Hosted MCP server for LinkedIn: 31 tools for profiles, search, messaging, posts, enrichment.
LinkedIn API as MCP tools to retrieve profile data and publish content. Powered by HAPI MCP.
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
MCP server for LeadDelta — manage LinkedIn connections and CRM data via AI assistants.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Node.js-based Model Context Protocol server that exposes Proxycurl's LinkedIn data API, allowing MCP-compatible clients to access LinkedIn profile data, company information, and search for employees.
- FlicenseNot gradedqualityCmaintenanceMCP server for LinkedIn API integration. Enables authentication, profile access, connections, search, messaging, and feed management via OAuth2.
- AlicenseAqualityBmaintenanceAn MCP server that lets AI assistants like Claude read LinkedIn data through your own logged-in browser session. Access profiles and companies, search for jobs, or get job details.19Apache 2.0
- AlicenseNot gradedqualityAmaintenanceMCP server that lets you analyze your own LinkedIn profile with a local LLM (LM Studio). It uses Playwright to reuse your browser session, fetch profile data as JSON, and provides tools for session management and profile analysis.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ayesha0300/linkedin-profile-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server