
A comprehensive Model Context Protocol (MCP) server for LinkedIn API - manage profiles, posts, connections, skills, education, certifications, and more through AI agents
概览
A comprehensive Model Context Protocol (MCP) server for LinkedIn API integration. Manage your LinkedIn profile, posts, connections, skills, education, certifications, and more through AI agents like Claude, ChatGPT, and other LLM applications. - : Fetch and view your LinkedIn profile - : Retrieve posts with engagement metrics, share new content - : Get and manage your professional network - : Find professionals by keywords - : Add and remove skills from your profile - : Add, update, and delete positions - : Manage educational background - : Add and remove professional certifications - : Manage your published works - : Add language proficiency to your profile - : Built with latest McpServer API (v1.1.0+) - : Works with LinkedIn's modern OAuth 2.
README
以下为原文 README 节选,完整内容请查看原文。
LinkedIn MCP Server
A comprehensive Model Context Protocol (MCP) server for LinkedIn API integration. Manage your LinkedIn profile, posts, connections, skills, education, certifications, and more through AI agents like Claude, ChatGPT, and other LLM applications.
🚀 Features
📱 Social Features
- Profile Management: Fetch and view your LinkedIn profile
- Posts & Engagement: Retrieve posts with engagement metrics, share new content
- Connections: Get and manage your professional network
- People Search: Find professionals by keywords
📝 Profile Management (18 Tools Total)
- Skills: Add and remove skills from your profile
- Work Experience: Add, update, and delete positions
- Education: Manage educational background
- Certifications: Add and remove professional certifications
- Publications: Manage your published works
- Languages: Add language proficiency to your profile
💻 Developer Experience
- Modern MCP SDK: Built with latest
McpServerAPI (v1.1.0+) - OpenID Connect Support: Works with LinkedIn’s modern OAuth 2.0 + OIDC authentication
- Full TypeScript support with strict type checking
- Comprehensive test suite: 67 test cases, 85%+ server coverage
- Zod schema validation for type safety and input validation
- Modern async/await patterns
- Extensive logging and error handling
- Latest dependencies (Vitest 4, Zod 4, MCP SDK 1.24+)
📋 Prerequisites
- Node.js >= 18.0.0
- LinkedIn Developer App (Client ID & Secret) or existing access token
- pnpm, npm, or yarn
📦 Installation
# Using pnpm (recommended)
pnpm install @pegasusheavy/linkedin-mcp
# Using npm
npm install @pegasusheavy/linkedin-mcp
# Using yarn
yarn add @pegasusheavy/linkedin-mcp
🔧 Configuration
Authentication Setup
This server requires LinkedIn API access. Choose your authentication method:
Option 1: Automatic OAuth Flow (Recommended) 🚀
The server automatically handles OAuth authentication when you don’t have an access token.
Step 1: Create a LinkedIn App
- Go to LinkedIn Developers
- Click “Create App” and fill in the required information
- Note your Client ID and Client Secret
Step 2: Configure OAuth Settings
安装
npx -y @pegasusheavy/linkedin-mcp配置
{
"mcpServers": {
"linkedin": {
"command": "npx",
"args": ["-y", "@pegasusheavy/linkedin-mcp"],
"env": {
"LINKEDIN_CLIENT_ID": "your_client_id_here",
"LINKEDIN_CLIENT_SECRET": "your_client_secret_here"
}
}
}
}