LinkedIn MCP Server
Click on "Deploy 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 MCP Servershow me my drafts"
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 Server
An MCP (Model Context Protocol) server that lets Claude Code post to LinkedIn, manage drafts, schedule posts, comment, react, and more — all from your terminal.
What It Does
16 tools with a two-step safety system (every publish/delete requires explicit confirmation):
Tool | What it does | Safety |
| OAuth login via browser | — |
| Check connection, token expiry, DB health | Read-only |
| List all drafts (filter by tag) | Read-only |
| Get full draft details | Read-only |
| View published post history | Read-only |
| List scheduled posts | Read-only |
| Save/update a draft | Requires "CONFIRM" |
| Delete a draft | Requires "CONFIRM" |
| Schedule a draft for publishing | Requires "CONFIRM" |
| Cancel a scheduled post | Requires "CONFIRM" |
| React to a post (LIKE, CELEBRATE, etc.) | Requires "CONFIRM" |
| Comment on a post | Requires "CONFIRM" |
| Publish a post to LinkedIn | Requires "POST IT" |
| Publish a saved draft | Requires "POST IT" |
| Delete a published post | Requires "DELETE IT" |
| Confirm any pending action | — |
Related MCP server: @isteam/linkedin-mcp
Setup (5 minutes)
1. Create a LinkedIn Developer App
Click Create app
Fill in:
App name: anything (e.g. "My Claude MCP")
LinkedIn Page: link any company page you admin (or create one)
App logo: any image
Under Auth tab:
Add redirect URL:
http://localhost:8585/callback
Under Products tab:
Request access to Share on LinkedIn and Sign In with LinkedIn using OpenID Connect
Copy your Client ID and Client Secret from the Auth tab
2. Clone & Build
git clone <this-repo-url> ~/linkedin-mcp-server
cd ~/linkedin-mcp-server
npm install
npm run build3. Add to Claude Code
Open your Claude Code settings and add the MCP server. You can do this by running:
claude mcp add linkedin -- node /path/to/linkedin-mcp-server/dist/index.jsOr manually add to your Claude Code settings (~/.claude.json or via the Claude Code UI):
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/full/path/to/linkedin-mcp-server/dist/index.js"],
"env": {
"LINKEDIN_CLIENT_ID": "your_client_id_here",
"LINKEDIN_CLIENT_SECRET": "your_client_secret_here"
}
}
}
}Replace /full/path/to/ with the actual path where you cloned the repo.
4. Authenticate
Restart Claude Code, then say:
"authenticate with linkedin"
Claude will call linkedin_auth, which opens a browser window for OAuth. Authorize, and you're done. Token is stored locally at ~/.linkedin-mcp-tokens.json (file permissions: 600).
Usage
Just talk to Claude naturally:
"Post this to LinkedIn: [your text]"
"Save this as a draft: [text]"
"Show me my drafts"
"Schedule draft X for tomorrow at 3pm"
"What's my LinkedIn connection status?"
"React to [post-urn] with CELEBRATE"
Every action that touches LinkedIn requires you to confirm with a keyword. Nothing gets published without your explicit "POST IT".
How It Works
OAuth 2.0: Starts a local server on port 8585, opens LinkedIn auth in browser, catches the callback
SQLite storage: Drafts, scheduled posts, and post history stored in
~/.linkedin-mcp/data.dbConfig: Stored in
~/.linkedin-mcp/config.json(scopes, API tier)Token: Stored in
~/.linkedin-mcp-tokens.json(auto-expires)Safety middleware: Two-step confirmation for all write operations. High-risk actions (post, delete) need specific keywords ("POST IT", "DELETE IT")
Configuration
The server auto-creates ~/.linkedin-mcp/config.json on first run:
{
"scopes": ["openid", "profile", "w_member_social"],
"api_tier": "consumer"
}If you have Community Management API access, change api_tier to "community_management" to unlock comment and reaction tools beyond your own posts.
Requirements
Node.js 18+
Claude Code (or any MCP-compatible client)
A LinkedIn account with a Developer App
This server cannot be deployed
Maintenance
Related MCP Connectors
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
- LinkMCPOAuthio.linkmcp
Hosted MCP server for LinkedIn: 31 tools for profiles, search, messaging, posts, enrichment.
PerfectPost is a LinkedIn content management platform. This MCP server gives AI assistants read and write access to a user's PerfectPost account: published posts with their engagement analytics, drafts lifecycle (create / edit / schedule), and LinkedIn profile data.
MCP server for LeadDelta — manage LinkedIn connections and CRM data via AI assistants.
Related MCP Servers
- AlicenseAqualityDmaintenanceFully featured MCP server that provides automation tools for LinkedIn, supporting browser-based scraping and API-based operations for content management, media uploads, and reactions.63MIT
- AlicenseAqualityCmaintenanceMCP server for LinkedIn that enables AI agents to post, comment, like, and manage content on LinkedIn.104 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for LinkedIn, enabling posting, liking, commenting, and profile retrieval via official OAuth 2.0. Features CLI, HTTP admin, and optional Telegram bot.14 npmMIT
- AlicenseNot gradedqualityCmaintenanceA personal-use remote MCP server that lets you post to LinkedIn, queue/schedule drafts, and pull your own post analytics from Claude.13 npmMIT