LinkedIn数据访问服务

一个通过HarvestAPI提供LinkedIn数据访问的MCP服务器,支持个人资料、公司、职位、帖子和群组等多种操作。

  • by Jing-yilin
  • TypeScript
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 Jing-yilin/linkedin-mcp-server

使用说明

LinkedIn MCP服务器

MCP(模型上下文协议)服务器,通过 HarvestAPI 服务。

特性

此MCP服务器提供对LinkedIn数据的全面访问,包括:

配置文件操作

  • get_profile -通过URL、公共标识符或个人资料ID获取LinkedIn个人资料
  • 搜索文件 -按姓名、公司、地点和其他条件搜索个人资料
  • get_file_post -从LinkedIn个人资料中获取帖子
  • get_file_comments -获取LinkedIn个人资料的评论
  • get_file_reactions -从LinkedIn个人资料中获取反应

公司运营

  • get_公司 -通过URL、通用名称或搜索获取公司信息
  • 搜索_公司 -按关键字和过滤器搜索公司
  • 获取_公司_帖子 -从公司页面获取帖子

作业操作

  • get_job -按ID或URL获取作业详细信息
  • search_jobs -使用各种过滤器(位置、工资、经验水平等)搜索工作

岗位操作

  • get_post -按URL获取帖子详细信息
  • 搜索帖子 -按关键字和过滤器搜索帖子
  • get_post_comments -获取帖子评论
  • get_post_reactions -在帖子中获取反应

组操作

  • get_group -通过URL或ID获取组信息
  • 搜索组 -按关键字搜索组

公用事业运营

  • search_geo_id -按位置搜索LinkedIn地理ID(可用于基于位置的过滤)

安装

npm install
npm run build

配置

环境变量

变量 描述
HARVESTAPI_API_KEY 或 LINKEDIN_API_KEY HarvestAPI API密钥(必需)
PROXY_URL HTTP/HTTPS代理URL(可选)

Claude桌面配置

添加到您的Claude Desktop配置文件(~/Library/Application Support/Claude/claude_desktop_config.json 在macOS上):

{
  "mcpServers": {
    "linkedin": {
      "command": "node",
      "args": ["/path/to/linkedin-mcp/build/index.js"],
      "env": {
        "HARVESTAPI_API_KEY": "your-api-key-here"
      }
    }
  }
}

使用示例

获取LinkedIn个人资料

Get the LinkedIn profile for https://www.linkedin.com/in/satyanadella/

搜索个人资料

Search for software engineers at Google in San Francisco

搜索作业

Find remote software engineering jobs at Microsoft with salary 150k+

获取公司信息

Get information about Apple's LinkedIn company page

搜索文章

Search for posts about AI from the last 24 hours

api参考

配置文件端点

get_profile

获取LinkedIn个人资料信息。

参数:

  • url (字符串,可选):领英个人资料URL
  • publicIdentifier (字符串,可选):来自URL的公共标识符
  • profileId (字符串,可选):领英个人资料ID
  • findEmail (布尔值,可选):查找电子邮件地址
  • includeAboutProfile (布尔值,可选):包括关于部分的详细信息

搜索文件

搜索LinkedIn个人资料。

参数:

  • search (字符串,必填):搜索查询
  • currentCompany (字符串,可选):按当前公司筛选
  • pastCompany (字符串,可选):按过去的公司筛选
  • school (string,可选):按学校筛选
  • firstName (字符串,可选):按名字筛选
  • lastName (字符串,可选):按姓氏筛选
  • title (字符串,可选):按职位筛选
  • location (字符串,可选):按位置筛选
  • geoId (字符串,可选):按LinkedIn地理ID筛选
  • industryId (字符串,可选):按行业筛选
  • page (整数,可选):页码

公司端点

get_公司

获取LinkedIn公司信息。

参数:

  • url (字符串,可选):公司URL
  • universalName (字符串,可选):公司通用名称
  • search (字符串,可选):要搜索的公司名称

搜索_公司

搜索LinkedIn公司。

参数:

  • search (字符串,必填):搜索关键字
  • location (字符串,可选):按位置筛选
  • geoId (字符串,可选):按地理ID筛选
  • companySize (字符串,可选):按大小筛选(1-10、11-50等)
  • page (整数,可选):页码

作业端点

get_job

获取作业详细信息。

参数:

  • jobId (字符串,可选):作业ID
  • url (字符串,可选):作业URL

search_jobs

使用筛选器搜索工作。

参数:

  • search (字符串,可选):职位搜索
  • companyId (字符串,可选):按公司筛选
  • location (字符串,可选):按位置筛选
  • geoId (字符串,可选):按地理ID筛选
  • sortBy (字符串,可选):按“相关性”或“日期”排序
  • workplaceType (字符串,可选):“office”、“hybrid”、“remote”
  • employmentType (字符串,可选):“全职”、“兼职”等。
  • salary (字符串,可选):40k+、60k+、80k+等。
  • postedLimit (字符串,可选):“24小时”、“周”、“月”
  • experienceLevel (字符串,可选):“实习”、“入职”、“高中”等。
  • easyApply (布尔值,可选):筛选轻松申请作业
  • page (整数,可选):页码

终点后

get_post

通过URL获取帖子详细信息。

参数:

  • url (字符串,必填):领英帖子URL

搜索帖子

搜索帖子。

参数:

  • search (字符串,可选):要搜索的关键字
  • profile (字符串,可选):按作者配置文件URL筛选
  • profileId (字符串,可选):按作者配置文件ID筛选
  • company (字符串,可选):按公司筛选
  • postedLimit (字符串,可选):“24小时”、“周”、“月”
  • sortBy (字符串,可选):“相关性”或“日期”
  • page (整数,可选):页码

组端点

get_group

获取组信息。

参数:

  • url (字符串,可选):组URL
  • groupId (字符串,可选):组ID

搜索组

搜索组。

参数:

  • search (字符串,必填):要搜索的关键字
  • page (整数,可选):页码

公用设施端点

search_geo_id

按位置名称搜索LinkedIn地理ID。

参数:

  • search (字符串,必填):要搜索的位置文本

许可证

麻省理工学院

鸣谢