LinkedIn-Mcp

nielsbosma/LinkedIn-Mcp

3.3

If you are the rightful owner of LinkedIn-Mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The LinkedIn MCP Server is a tool designed to fetch LinkedIn profiles and return the data in a structured YAML format, leveraging the Model Context Protocol (MCP) for seamless integration.

Tools
1
Resources
0
Prompts
0

LinkedIn MCP Server

A Model Context Protocol (MCP) server for fetching LinkedIn profiles. Returns profile data in YAML format.

Prerequisites

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 URL
  • include (optional): Array of optional sections to include in the output. If not specified, all sections are included.

Available optional sections:

  • experiences - Work experience history
  • updates - Recent activity and posts
  • profilePicAllDimensions - All profile picture dimensions
  • skills - Skills and endorsements
  • educations - Educational background
  • licenseAndCertificates - Professional certifications
  • honorsAndAwards - Honors and awards
  • languages - Language proficiencies
  • volunteerAndAwards - Volunteer work
  • verifications - Profile verifications
  • promos - Promotional content
  • highlights - Profile highlights
  • projects - Projects
  • publications - Publications
  • patents - Patents
  • courses - Courses
  • testScores - Test scores
  • organizations - Organizations
  • volunteerCauses - Volunteer causes
  • interests - Interests
  • recommendations - Recommendations

Note: Basic profile fields (name, headline, location, summary, etc.) are always included regardless of the include parameter.

Example prompts:

Supported URL formats:

  • https://www.linkedin.com/in/username
  • https://linkedin.com/in/username
  • http://www.linkedin.com/in/username
  • linkedin.com/in/username