Access comprehensive LinkedIn data including profiles, companies, and metrics.
Linkedin Data Api MCP Server
用于访问 Linkedin Data Api API 的 MCP 服务器。
🚀 使用 EMCP 平台快速体验
EMCP 是一个强大的 MCP 服务器管理平台,让您无需手动配置即可快速使用各种 MCP 服务器!
快速开始:
- 🌐 访问 EMCP 平台
- 📝 注册并登录账号
- 🎯 进入 MCP 广场,浏览所有可用的 MCP 服务器
- 🔍 搜索或找到本服务器(
bach-linkedin_data_api) - 🎉 点击 "安装 MCP" 按钮
- ✅ 完成!即可在您的应用中使用
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
参数:
url(string) 必需: Example value: https://www.linkedin.com/in/williamhgates/
`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: ryanroslanskystart(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 authenticationPORTPort configurationHOSTHost configurationConfiguration
{"mcpServers": {"bach-linkedin_data_api": {"command": "uvx", "args": ["--from", "bach-linkedin_data_api", "bach_linkedin_data_api"], "env": {"API_KEY": "your_api_key_here"}}}}