
LinkedIn 的官方 API 的 MCP 服务器 - 创建帖子,管理事件,并通过 AI 助手与 LinkedIn 交互
概览
一个模型上下文协议(MCP)服务器,为AI助手提供访问LinkedIn官方API的功能. 创建帖子, 管理事件, 并与 LinkedIn 交互 - 全部通过 MCP 兼容客户端的自然语言 。 没有刮取,没有非官方的终点,没有账户风险. - 安全认证与持续符号存储 - - - 幸存服务器重启而不重新认证(直到符号过期) - - - 本地 SQLite 日志通过服务器创建的帖子,以方便引用和删除 - - 从响应头学习链接In的实际限制 - - 对瞬间故障(429, 5xx) - 只有显示匹配您授予范围的工具 - 处理链接In的月 API 版本旋转 1. 转到linkin.com/开发商/应用程序,并在2中签名. 点击 3. 填入需要的字段 : - : 选择任意名称( 如“ My MCP Linked In ” ) - : 选择您的链接 在页面中,或者在需要时创建一个 - : 可以使用您的网站 URL或者占位符 - : 上传任何图像( 需要) 4 .
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,为AI助手提供访问LinkedIn官方API的功能. 创建帖子, 管理事件, 并与 LinkedIn 交互 - 全部通过 MCP 兼容客户端的自然语言 。
** 仅限官方API。 ** 没有刮取,没有非官方的终点,没有账户风险.
□ 特性
- 工具 * * 描述 * *
|-|-|-.
linkedin_auth_start启动 OAuth 2.0 认证流 .
linkedin_auth_logout 撤销令牌并登出.
QQ linkedin_get_my_email 获取您的电子邮件地址 QQ
| linkedin_get_auth_status |检查认证状态 |
QQ[ [T6] 查看 API 费率限制使用 QQ
删除您的职位。
linkedin_react_to_post 对帖子的反应(如:庆祝、支持、爱、洞察力、幽默)
QQ linkedin_upload_image] 上传文章图像 QQ
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
LinkedIn MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with access to LinkedIn’s official API. Create posts, manage events, and interact with LinkedIn - all through natural language via any MCP-compatible client.
Official API only. No scraping, no unofficial endpoints, no account risk.
Features
Self-Serve Tools (No LinkedIn Approval Required)
| Tool | Description |
|---|---|
linkedin_auth_start |
Start OAuth 2.0 authentication flow |
linkedin_auth_callback |
Complete OAuth with authorization code |
linkedin_auth_logout |
Revoke token and log out |
linkedin_get_my_profile |
Get your LinkedIn profile (name, headline, photo, email) |
linkedin_get_my_email |
Get your email address |
linkedin_get_auth_status |
Check authentication status |
linkedin_get_rate_limits |
View API rate limit usage |
linkedin_create_post |
Create text, article, or image posts |
linkedin_delete_post |
Delete your posts |
linkedin_create_comment |
Comment on posts |
linkedin_react_to_post |
React to posts (like, celebrate, support, love, insightful, funny) |
linkedin_upload_image |
Upload images for posts |
linkedin_list_my_posts |
List posts created through this server with URNs for reference |
linkedin_create_event |
Create LinkedIn events |
linkedin_get_event |
Get event details |
Architecture Highlights
- OAuth 2.0 - Secure authentication with persistent token storage
- Session auto-restore - Survives server restarts without re-authentication (until token expires)
- Post history tracking - Local SQLite log of posts created through the server for easy reference and deletion
- Adaptive rate limiting - Learns LinkedIn’s actual limits from response headers
- Automatic retry - Exponential backoff for transient failures (429, 5xx)
- Capability detection - Only exposes tools matching your granted scopes
- API versioning - Handles LinkedIn’s monthly API version rotation
Prerequisites
- Node.js 20+
- LinkedIn Developer App (see setup steps below)
LinkedIn App Setup
Step 1: Create a LinkedIn Developer App
- Go to linkedin.com/developers/apps and sign in
- Click Create app
- Fill in the required fields:
- App name: Choose any name (e.g., “My MCP LinkedIn”)
- LinkedIn Page: Select your LinkedIn page, or create one if needed
- Privacy policy URL: Can use your website URL or a placeholder
- App logo: Upload any image (required)
- Check the legal agreement box and click Create app
Step 2: Get Your Client ID and Client Secret
- After creating the app, you’ll land on the app settings page
- Go to the Auth tab
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/path/to/linkedin-mcp-server/dist/index.js"],
"env": {
"LINKEDIN_CLIENT_ID": "your_client_id",
"LINKEDIN_CLIENT_SECRET": "your_client_secret"
}
}
}
}