Linkedin.Mcp
1.0.3
dotnet tool install --global Linkedin.Mcp --version 1.0.3
dotnet new tool-manifest
dotnet tool install --local Linkedin.Mcp --version 1.0.3
#tool dotnet:?package=Linkedin.Mcp&version=1.0.3
nuke :add-package Linkedin.Mcp --version 1.0.3
LinkedIn MCP Server
A Model Context Protocol (MCP) server for fetching LinkedIn profiles via the Apify LinkedIn Profile Scraper API. Returns profile data in YAML format.
Prerequisites
- .NET 9.0 or later
- An Apify API token (Get one here)
Installation
Install the tool globally using dotnet:
dotnet tool install --global Linkedin.Mcp
Configuration
1. Set up your Apify API token
The tool requires the APIFY_TOKEN environment variable to be set.
Windows (PowerShell):
$env:APIFY_TOKEN = "your-apify-token-here"
# To persist across sessions:
[System.Environment]::SetEnvironmentVariable('APIFY_TOKEN', 'your-apify-token-here', 'User')
Linux/macOS:
export APIFY_TOKEN=your-apify-token-here
# To persist, add to ~/.bashrc or ~/.zshrc:
echo 'export APIFY_TOKEN=your-apify-token-here' >> ~/.bashrc
2. Configure Claude Code
Add the MCP server to your Claude Code configuration file.
Location:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Configuration:
{
"mcpServers": {
"linkedin": {
"command": "linkedin-mcp",
"env": {
"APIFY_TOKEN": "your-apify-token-here"
}
}
}
}
Alternatively, if you've set the environment variable globally, you can omit the env section:
{
"mcpServers": {
"linkedin": {
"command": "linkedin-mcp"
}
}
}
Usage in Claude Code
Once configured, restart Claude Code. The LinkedIn MCP server will be available with the following tool:
fetch-profile
Fetches a LinkedIn profile and returns it in YAML format.
Parameters:
profile_url(required): The LinkedIn profile URLinclude(optional): Array of optional sections to include in the output. If not specified, all sections are included.
Available optional sections:
experiences- Work experience historyupdates- Recent activity and postsprofilePicAllDimensions- All profile picture dimensionsskills- Skills and endorsementseducations- Educational backgroundlicenseAndCertificates- Professional certificationshonorsAndAwards- Honors and awardslanguages- Language proficienciesvolunteerAndAwards- Volunteer workverifications- Profile verificationspromos- Promotional contenthighlights- Profile highlightsprojects- Projectspublications- Publicationspatents- Patentscourses- CoursestestScores- Test scoresorganizations- OrganizationsvolunteerCauses- Volunteer causesinterests- Interestsrecommendations- Recommendations
Note: Basic profile fields (name, headline, location, summary, etc.) are always included regardless of the include parameter.
Example prompts:
- "Fetch the LinkedIn profile for https://www.linkedin.com/in/username"
- "Get me the profile information for this LinkedIn URL: https://www.linkedin.com/in/username"
- "Show me the work experience from https://www.linkedin.com/in/username"
- "Fetch the profile but only include experiences and skills sections"
- "Get the profile with just educations and certifications"
Supported URL formats:
https://www.linkedin.com/in/usernamehttps://linkedin.com/in/usernamehttp://www.linkedin.com/in/usernamelinkedin.com/in/username
Output Format
The tool returns LinkedIn profile data in YAML format.
Always included fields:
- Personal Information: Name, headline, location, profile picture
- Professional Summary: About/summary section
- Contact Information: LinkedIn URL, public identifier
Optional sections (included by default, can be filtered with the include parameter):
- Work Experience: Job titles, companies, dates, descriptions
- Education: Schools, degrees, fields of study
- Skills: List of professional skills and endorsements
- Certifications: Professional certifications and licenses
- Languages: Language proficiencies
- Projects: Personal and professional projects
- Publications: Published works
- Patents: Patent information
- And more: Updates, honors, awards, recommendations, etc.
Use the include parameter to fetch only the sections you need, reducing response size and processing time.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.