LinkedIn Data API MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "API_KEY=${API_KEY}" linkedin-data-api -- uvx --from bach-linkedin_data_api bach_linkedin_data_api
Required:API_KEY+ 2 optional
README.md

Access comprehensive LinkedIn data including profiles, companies, and metrics.

Linkedin Data Api MCP Server

English | 简体中文 | 繁體中文

用于访问 Linkedin Data Api API 的 MCP 服务器。

🚀 使用 EMCP 平台快速体验

EMCP 是一个强大的 MCP 服务器管理平台,让您无需手动配置即可快速使用各种 MCP 服务器!

快速开始:

  1. 🌐 访问 EMCP 平台
  2. 📝 注册并登录账号
  3. 🎯 进入 MCP 广场,浏览所有可用的 MCP 服务器
  4. 🔍 搜索或找到本服务器(bach-linkedin_data_api
  5. 🎉 点击 "安装 MCP" 按钮
  6. ✅ 完成!即可在您的应用中使用

EMCP 平台优势:

  • 零配置:无需手动编辑配置文件
  • 🎨 可视化管理:图形界面轻松管理所有 MCP 服务器
  • 🔐 安全可靠:统一管理 API 密钥和认证信息
  • 🚀 一键安装:MCP 广场提供丰富的服务器选择
  • 📊 使用统计:实时查看服务调用情况

立即访问 EMCP 平台 开始您的 MCP 之旅!


简介

这是一个 MCP 服务器,用于访问 Linkedin Data Api API。

  • PyPI 包名: bach-linkedin_data_api
  • 版本: 1.0.0
  • 传输协议: stdio

安装

从 PyPI 安装:

pip install bach-linkedin_data_api

从源码安装:

pip install -e .

运行

方式 1: 使用 uvx(推荐,无需安装)

# 运行(uvx 会自动安装并运行)
uvx --from bach-linkedin_data_api bach_linkedin_data_api

# 或指定版本
uvx --from bach-linkedin_data_api@latest bach_linkedin_data_api

方式 2: 直接运行(开发模式)

python server.py

方式 3: 安装后作为命令运行

# 安装
pip install bach-linkedin_data_api

# 运行(命令名使用下划线)
bach_linkedin_data_api

配置

API 认证

此 API 需要认证。请设置环境变量:

export API_KEY="your_api_key_here"

环境变量

变量名 说明 必需
API_KEY API 密钥
PORT 不适用
HOST 不适用

在 Cursor 中使用

编辑 Cursor MCP 配置文件 ~/.cursor/mcp.json:

{
  "mcpServers": {
    "bach-linkedin_data_api": {
      "command": "uvx",
      "args": ["--from", "bach-linkedin_data_api", "bach_linkedin_data_api"],
      "env": {
        "API_KEY": "your_api_key_here"
      }
    }
  }
}

在 Claude Desktop 中使用

编辑 Claude Desktop 配置文件 claude_desktop_config.json:

{
  "mcpServers": {
    "bach-linkedin_data_api": {
      "command": "uvx",
      "args": ["--from", "bach-linkedin_data_api", "bach_linkedin_data_api"],
      "env": {
        "API_KEY": "your_api_key_here"
      }
    }
  }
}

可用工具

此服务器提供以下工具:

`get_company_by_domain`

Enrich the company data by domain. 1 credit per successful request.

端点: GET /get-company-by-domain

参数:

  • domain (string) 必需: Example value: apple.com

`get_company_details_by_id`

The endpoint enrich full details of the company

端点: GET /get-company-details-by-id

参数:

  • id (string) 必需: Example value: 1441

`get_company_details`

The endpoint enrich full details of the company

端点: GET /get-company-details

参数:

  • username (string) 必需: Example value: google

`get_profile_school_interests`

Get the profile's school interests up to 50 results per page

端点: POST /profiles/interests/schools


`get_profile_newsletter_interests`

Get the profile's newsletter interests up to 50 results per page

端点: POST /profiles/interests/newsletters


`get_similar_profiles`

Returns profiles that are similar to the provided profile

端点: GET /similar-profiles

参数:


`get_profile_positions_with_skills`

Get Profile Positions With Skills

端点: GET /profiles/position-skills

参数:

  • username (string) 必需: Example value: tedgaubert

`get_profile_company_interest`

Get the profile's company interests up to 50 results per page.

端点: POST /profiles/interests/companies


`profile_data_u0026_recommendations`

Get Profile Data, Given and Received Recommendations. 2 credits per call

端点: GET /all-profile-data

参数:

  • username (string) 必需: Example value: ryanroslansky

`get_given_recommendations`

To scrape all recommendations from a profile, increase the start value to +100 for each request until you reach the total recommendations count. You can find the total recommendations count in the response

端点: GET /get-given-recommendations

参数:

  • username (string) 必需: Example value: ryanroslansky

  • start (string): Example value: 0


`get_profile_data_connection_u0026_follower_count_and_posts`

Get Profile Data, Connection \u0026 Follower Count and Posts. 2 credits per call

端点: GET /profile-data-connection-count-posts

参数:

  • username (string) 必需: Example value: adamselipsky

`about_the_profile`

Get profile verification details, profile’s joined, contact information updated, and profile photo updated date

端点: GET /about-this-profile

参数:

  • username (string) 必需: Example value: williamhgates

`get_profile_data_and_connection_u0026_follower_count`

Get Profile Data and Connection \u0026 Follower Count

端点: GET /data-connection-count

参数:

  • username (string) 必需: Example value: adamselipsky

`get_received_recommendations`

Tools (13)

get_company_by_domainEnrich the company data by domain.
get_company_details_by_idThe endpoint enrich full details of the company.
get_company_detailsThe endpoint enrich full details of the company.
get_profile_school_interestsGet the profile's school interests up to 50 results per page.
get_profile_newsletter_interestsGet the profile's newsletter interests up to 50 results per page.
get_similar_profilesReturns profiles that are similar to the provided profile.
get_profile_positions_with_skillsGet Profile Positions With Skills.
get_profile_company_interestGet the profile's company interests up to 50 results per page.
profile_data_u0026_recommendationsGet Profile Data, Given and Received Recommendations.
get_given_recommendationsTo scrape all recommendations from a profile.
get_profile_data_connection_u0026_follower_count_and_postsGet Profile Data, Connection & Follower Count and Posts.
about_the_profileGet profile verification details, profile’s joined, contact information updated, and profile photo updated date.
get_profile_data_and_connection_u0026_follower_countGet Profile Data and Connection & Follower Count.

Environment Variables

API_KEYrequiredAPI key for LinkedIn Data API authentication
PORTPort configuration
HOSTHost configuration

Configuration

claude_desktop_config.json
{"mcpServers": {"bach-linkedin_data_api": {"command": "uvx", "args": ["--from", "bach-linkedin_data_api", "bach_linkedin_data_api"], "env": {"API_KEY": "your_api_key_here"}}}}

Try it

Get the professional profile details and connection count for the user 'ryanroslansky'.
Find similar profiles to the LinkedIn profile at https://www.linkedin.com/in/williamhgates/.
Retrieve the company details for 'google' to understand their profile information.
Get the list of skills and positions for the user 'tedgaubert'.

Frequently Asked Questions

What are the key features of LinkedIn Data API?

Retrieves detailed professional profile information including connections and followers.. Fetches company details and enriches data by domain or ID.. Extracts recommendations, skills, and position history from profiles.. Supports searching for similar profiles based on a profile URL.. Provides insights into profile interests including schools, newsletters, and companies..

What can I use LinkedIn Data API for?

Recruiters gathering detailed candidate background information and skill sets.. Sales professionals researching company details and key decision-maker profiles.. Market researchers analyzing professional network trends and company interests.. Developers building tools that require integration with LinkedIn professional data..

How do I install LinkedIn Data API?

Install LinkedIn Data API by running: pip install bach-linkedin_data_api

What MCP clients work with LinkedIn Data API?

LinkedIn Data API works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep LinkedIn Data API docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare