LinkedIn MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LinkedIn MCPShow me my LinkedIn profile"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🔗 LinkedIn MCP
The most reliable LinkedIn MCP server for AI assistants
Give Claude, Cursor, and any MCP-compatible AI assistant full access to LinkedIn — profiles, messaging, jobs, companies, and more. Zero local dependencies. Just add a URL.
Quick Start · Tools · Authentication · Comparison
✨ Why LinkedIn MCP?
Feature | Description | |
🚀 | Remote-First | Zero install — add a URL to your Claude config and go. No Python, no browser, no Docker required. |
🔧 | 30+ Tools | The most comprehensive LinkedIn MCP available. Profiles, messaging, jobs, companies, network, feed, and more. |
🔒 | Secure | OAuth 2.0 + cookie authentication. Rate limiting, CORS, origin validation built-in. |
⚡ | Fast & Lightweight | API-based — no headless browser needed. ~5MB vs 500MB+ browser-based alternatives. |
🌍 | Reliable | No session expiry loops, no browser crashes, no dialog collisions. Stateless HTTP design. |
🌐 | Locale-Independent | Works worldwide. No English-only DOM selectors. API-based, not scraping. |
Related MCP server: LinkedIn MCP Server
🚀 Quick Start
Method 1: Remote URL (Recommended)
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"linkedin": {
"url": "https://your-deployed-url.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Method 2: npx (No Install)
{
"mcpServers": {
"linkedin": {
"command": "npx",
"args": ["-y", "linkedinmcp"],
"env": {
"LINKEDIN_COOKIE": "your_li_at_cookie_value"
}
}
}
}Method 3: Clone & Run
git clone https://github.com/devag7/linkedin-mcp.git
cd linkedin-mcp
npm install
npm run dev🛠 Available Tools
👤 Profile Tools
Tool | Description |
| Get any LinkedIn profile with full details (experience, education, skills) |
| Get the authenticated user's own profile |
| Get detailed skills with endorsement counts |
| Get recommendations given and received |
| Get a user's recent posts and activity |
| Get "People also viewed" profile suggestions |
| Search people with advanced filters (location, company, title) |
💬 Messaging Tools
Tool | Description |
| List inbox conversations with read/unread filters |
| Read a specific conversation thread |
| Search messages by keyword |
| Send a message (supports multiline, rich text) |
| Reply to an existing conversation by thread ID |
| Mark a conversation as read |
🏢 Company Tools
Tool | Description |
| Get company profile, description, and details |
| Get recent posts from a company's feed |
| List employees with filters |
| Search companies by keyword and industry |
| Get open job positions at a company |
💼 Job Tools
Tool | Description |
| Search jobs with keyword, location, and experience filters |
| Get detailed information about a job posting |
| Get the user's saved/bookmarked jobs |
| Get applicant information (recruiter accounts) |
🤝 Network Tools
Tool | Description |
| Send a connection request with optional personalized note |
| List 1st-degree connections, sorted by recently added |
| View sent and received connection invitations |
| Cancel a sent connection invitation |
| Accept a received connection invitation |
| Get network growth metrics and connection statistics |
📰 Feed & Content Tools
Tool | Description |
| Get posts from the home feed |
| Create a new text or image post |
| React to a post (like, celebrate, support, etc.) |
| Add a comment to a post |
| Search posts by keyword or hashtag |
🔧 Utility Tools
Tool | Description |
| Get server info, auth status, and capabilities |
| Check server health and LinkedIn connectivity |
| Get recent LinkedIn notifications |
🔐 Authentication
Method 1: LinkedIn OAuth 2.0 (Recommended)
Create an app at LinkedIn Developer Portal
Get your access token
Set the environment variable:
export LINKEDIN_ACCESS_TOKEN="your_access_token"Method 2: Session Cookie (Quick Setup)
Log in to LinkedIn in your browser
Open DevTools → Application → Cookies →
linkedin.comCopy the
li_atcookie valueOptionally copy the
JSESSIONIDcookie value (for CSRF)
export LINKEDIN_COOKIE="your_li_at_cookie_value"
export LINKEDIN_CSRF_TOKEN="your_jsessionid_value"⚡ Comparison with Alternatives
Feature | LinkedIn MCP | linkedin-mcp-server |
Transport | ✅ Remote HTTP + stdio | ❌ stdio only (local) |
Install Required | ✅ No — just add URL | ❌ Python + Chromium (~500MB) |
Browser Dependency | ✅ None — API-based | ❌ Patchright + Chromium |
Language | TypeScript (MCP-native) | Python |
Tools | 30+ | ~15 |
Multiline Messages | ✅ Native support | ❌ Buggy (Shift+Enter hack) |
Session Stability | ✅ Stateless HTTP | ❌ Session expiry loops |
Connection Requests | ✅ API-based, reliable | ❌ Dialog collision bugs |
Locale Support | ✅ Worldwide | ⚠️ English selectors |
Docker Image Size | ~50MB | ~500MB+ |
Known Critical Bugs | 0 | 10+ open issues |
⚙️ Environment Variables
Variable | Required | Default | Description |
| One of these | — | LinkedIn OAuth access token |
| One of these | — | LinkedIn |
| No | — | LinkedIn |
| No |
| HTTP server port |
| No |
| Transport mode: |
| No |
| Log level: |
| No |
| Cache TTL in seconds |
| No |
| Max requests per minute |
| No |
| Request timeout in milliseconds |
🛠 Development
# Clone the repo
git clone https://github.com/devag7/linkedin-mcp.git
cd linkedin-mcp
# Install dependencies
npm install
# Run in development mode (stdio)
npm run dev
# Run in HTTP mode
npm run dev -- --transport http --port 3000
# Run tests
npm test
# Type checking
npm run typecheck
# Lint
npm run lint
# Build for production
npm run build🤝 Contributing
Contributions are welcome! Please see our Contributing Guide for details.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'feat: add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
📄 License
This project is licensed under the MIT License — see the LICENSE file for details.
⚠️ Disclaimer
This project is not officially affiliated with LinkedIn. Use responsibly and in accordance with LinkedIn's Terms of Service. The authors are not responsible for any misuse or account restrictions.
If you find this useful, please give us a ⭐! It helps others discover the project.
Made with ❤️ by Dev Agarwalla
This server cannot be installed
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/devag7/linkedin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server