LinkedIn MCP Server
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 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: LinkedIn MCP Server
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/ayushnagvanshi101098-ship-it/linkedin-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server