
LinkedIn API 的 MCP 服务器
概览
MCP服务器用于与LinkedIn社区管理API交互。 - 可本地或远程托管:使用 MCP 定义的 HTTP+SSE 传输 - 实现 MCP 规范中的第三方授权流程草案,将授权委托给 LinkedIn 的 OAuth 授权服务器 ⚠️ 免责声明:第三方授权流程提案状态目前处于草稿阶段。据我所知,目前唯一实现该协议规范的MCP客户端是MCP Inspector。 - 用户信息 - 获取当前登录用户信息(姓名、标题和头像)- 创建-发布 - 在LinkedIn上创建新帖子 按照这些说明在你的主机上运行 LinkedIn MCP 服务器。你需要提供自己的 LinkedIn 客户端。
概述(AI 翻译)
MCP服务器用于与LinkedIn社区管理API交互。
这个MCP服务器:
- 可本地或远程托管:使用 MCP 定义的 HTTP+SSE 传输
- 实现MCP规范中的第三方授权流程草案,将授权委托给LinkedIn的OAuth授权服务器
⚠️ 免责声明:第三方授权流程提案状态目前处于草案阶段。据我所知,目前唯一实现该协议规范的MCP客户端是MCP Inspector
特色
工具
user-info- 获取当前登录用户信息(姓名、标题和头像)create-post- 在LinkedIn上创建新帖子
安装
按照这些说明在你的主机上运行 LinkedIn MCP 服务器。你需要提供自己的 LinkedIn 客户端。
要求
- 节点22(
lts/jod) - PNPM 10
- 安装了
Community Management API产品并在授权重定向URL中添加了http://localhost:3001/callback的LinkedIn客户端
指令
-
安装依赖关系:
-
创建环境文件,填充你的 LinkedIn 客户端凭证和一个随机字符串秘密值,用于
JWT_SECRET: -
运行服务器:
本页由 AI 翻译,技术细节请以原文为准。
README
Linkedin MCP Server
MCP server for interacting with Linkedin Community Management API.
This MCP server:
- Can be hosted locally or remotely : uses HTTP+SSE transport defined in MCP
- Implements the Draft Third-Party Authorization Flow from MCP specs to delegate authorization to LinkedIn’s OAuth authorization server
⚠️ Disclaimer: The Third-Party Authorization Flow proposal status is currently in draft. The only MCP client, to my knowledge, that currently implements this specification of the protocol is the MCP Inspector
Features
Tools
user-info- Get current logged in user infos (name, headline and profile picture)create-post- Create a new post on LinkedIn
Installation
Follow those instructions to run Linkedin MCP server on your host. You’ll need to provide your own Linkedin client.
Requirements
- Node 22 (
lts/jod) - pnpm 10
- a Linkedin client with
Community Management APIproduct installed andhttp://localhost:3001/callbackadded to the authorized redirect URLs
Instructions
- Install dependencies:
pnpm install
- Create env file and populate with your Linkedin client credentials and a random string secret value for
JWT_SECRET:
cp .env.template .env && vi .env
- Run the server:
pnpm run dev
- Configure your favorite MCP client to use this new server:
{
"mcpServers": {
"linkedin": {
"url": "http://localhost:3001/sse"
}
}
}
Debugging
Start the MCP Inspector to debug this server, which is available as a package script:
pnpm run inspector
Access the inspector in your browser at http://localhost:5173
Acknowledgment
- Den Delimarsky that bravely gave a first shot at this new authorization flow with Microsoft Entra ID and detailed his results in his blog post: https://den.dev/blog/auth-modelcontextprotocol-entra-id/
- Matt Pocock and his always welcome neat TS tricks specifically in the context of writting your own MCP server on AI Hero: https://www.aihero.dev/publish-your-mcp-server-to-npm
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"linkedin": {
"url": "http://localhost:3001/sse"
}
}
}