linkedin-post-mcp
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-post-mcpCreate a LinkedIn post announcing our new product launch with hashtags #tech #startup"
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-post-mcp
A Model Context Protocol (MCP) server that lets AI agents (Claude, Cursor, etc.) create and manage LinkedIn posts on your behalf via the LinkedIn REST API.
Features
🔐 OAuth 2.0 Authentication — Secure 3-legged OAuth flow with automatic token refresh
📝 Text Posts — Create plain text posts on your personal profile or company page
🔗 URL/Article Shares — Share links with custom commentary
🗑️ Delete Posts — Remove posts programmatically
👤 Profile Lookup — Fetch your LinkedIn profile and URN
🏢 Company Page Support — Post as a company/organization page
Related MCP server: LinkedIn MCP Server
Prerequisites
LinkedIn Developer App — Create one here
Enable the "Share on LinkedIn" product
Enable "Sign In with LinkedIn using OpenID Connect"
Add
http://localhost:8080/callbackas an authorized redirect URLCopy your
CLIENT_IDandCLIENT_SECRET
npm account — Sign up at npmjs.com (only needed to publish)
Installation
npx linkedin-post-mcp@latestOr install globally:
npm install -g linkedin-post-mcpConfiguration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"linkedin": {
"command": "npx",
"args": ["-y", "linkedin-post-mcp@latest"],
"env": {
"LINKEDIN_CLIENT_ID": "your_client_id_here",
"LINKEDIN_CLIENT_SECRET": "your_client_secret_here",
"LINKEDIN_REDIRECT_URI": "http://localhost:8080/callback"
}
}
}
}Cursor / Other MCP Hosts
{
"linkedin-post-mcp": {
"command": "npx",
"args": ["-y", "linkedin-post-mcp@latest"],
"env": {
"LINKEDIN_CLIENT_ID": "your_client_id_here",
"LINKEDIN_CLIENT_SECRET": "your_client_secret_here"
}
}
}Authentication Flow
On first use:
Ask the AI: "Get the LinkedIn auth URL"
Open the URL in your browser and authorize the app
LinkedIn redirects you to
http://localhost:8080/callback?code=XXXCopy the
codevalue and tell the AI: "Exchange this code: XXX"Done! Tokens are stored in
~/.linkedin-mcp-tokens.json
Available Tools
Tool | Description |
| Generate the OAuth authorization URL |
| Exchange auth code for access token |
| Check if you're authenticated and token expiry |
| Remove stored tokens |
| Fetch your name, email, and person URN |
| Create a plain text LinkedIn post |
| Create a post with a shared URL/article |
| Delete a post by its URN |
Example Prompts
"Post on LinkedIn: Excited to announce our new product launch! #tech #startup"
"Share this article on LinkedIn with the comment 'Great read!': https://example.com/article"
"Create a LinkedIn post on behalf of our company page (org ID: 12345678): ..."
"Check my LinkedIn auth status"
"Delete my last LinkedIn post with URN urn:li:share:..."Environment Variables
Variable | Required | Default | Description |
| ✅ Yes | — | Your LinkedIn app's Client ID |
| ✅ Yes | — | Your LinkedIn app's Client Secret |
| No |
| OAuth callback URL |
Rate Limits
LinkedIn's API allows approximately 100 API calls per day per member on standard access. The server does not implement rate limit tracking, so be mindful of how frequently you call the tools.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
LinkedIn for AI agents: inbox, invitations, Sales Navigator search, posts. Quotas and webhooks.
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
Full LinkedIn access for AI agents: leads, messaging, and campaigns with safe limits built in.
Let AI tools securely access your LinkedIn network and DMs
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with LinkedIn for posting, commenting, liking, and managing connections via OAuth2 authentication.15MIT
- AlicenseBqualityAmaintenanceEnables AI agents with read/write access to LinkedIn API, including profile, posts, media, organizations, comments, reactions, and analytics.2011MIT
- AlicenseAqualityDmaintenanceEnables posting content, sharing articles, and managing LinkedIn profile through natural language using the official LinkedIn REST API with OAuth 2.0.78MIT
- AlicenseAqualityBmaintenanceEnables AI agents to publish posts, images, videos, and articles to LinkedIn.10MIT