Post to LinkedIn from Claude — create posts, upload images, edit/delete posts, and manage company pages via natural language. Uses the official LinkedIn REST API with OAuth 2.0.
What is LinkedIn?
LinkedIn is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to post to linkedin from claude — create posts, upload images, edit/delete posts, and manage company pages via natural language. uses the official linkedin rest api with oauth 2.0.
Post to LinkedIn from Claude — create posts, upload images, edit/delete posts, and manage company pages via natural language. Uses the official LinkedIn REST API with OAuth 2.0.
This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Post to LinkedIn from Claude — create posts, upload images,
Use Cases
Maintainer
Works with
Installation
NPM
npx -y linkedin-mcpManual Installation
npx -y linkedin-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use LinkedIn
The LinkedIn MCP Server lets Claude create, edit, delete, and manage LinkedIn posts through the official LinkedIn REST API using OAuth 2.0, eliminating the need to switch between your AI assistant and the LinkedIn web interface. Content creators and marketers can ask Claude to draft a post, approve it, and publish it directly to their LinkedIn profile or company page — including image uploads — all in a single conversation. It requires a LinkedIn Developer application and an OAuth access token with write permissions.
Prerequisites
- Node.js 18 or later installed
- npm installed (ships with Node.js)
- A LinkedIn Company Page (personal profile posts require different API access)
- A LinkedIn Developer application registered at https://www.linkedin.com/developers with 'Share on LinkedIn' and 'Sign In with LinkedIn using OpenID Connect' products added
- An OAuth 2.0 access token with scopes: openid, profile, email, w_member_social — generate at https://www.linkedin.com/developers/tools/oauth/token-generator
Clone the repository
Clone the LinkedIn MCP server repository and enter the project directory.
git clone https://github.com/abhineet34/linkedin-mcp-server.git
cd linkedin-mcp-serverInstall dependencies
Install the Node.js dependencies.
npm installBuild the project
Compile the TypeScript source to JavaScript.
npm run buildSet up your LinkedIn Developer application
In the LinkedIn Developer portal, add two products to your app: 'Sign In with LinkedIn using OpenID Connect' and 'Share on LinkedIn'. Add the authorized redirect URL: https://www.linkedin.com/developers/tools/oauth/redirect
Generate an OAuth access token
Visit the LinkedIn token generator tool at https://www.linkedin.com/developers/tools/oauth/token-generator, select the scopes openid, profile, email, and w_member_social, then copy the generated access token. Tokens expire after 60 days.
Configure Claude Desktop
Add the LinkedIn MCP server to your Claude Desktop configuration with the absolute path to the built dist/index.js and your access token.
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/absolute/path/to/linkedin-mcp-server/dist/index.js"],
"env": {
"LINKEDIN_ACCESS_TOKEN": "your_access_token_here"
}
}
}
}Restart Claude Desktop and verify
Restart Claude Desktop. Ask Claude to retrieve your LinkedIn profile to confirm the connection is working before attempting to post.
LinkedIn Examples
Client configuration
Claude Desktop configuration for the LinkedIn MCP server with OAuth access token.
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/absolute/path/to/linkedin-mcp-server/dist/index.js"],
"env": {
"LINKEDIN_ACCESS_TOKEN": "your_linkedin_access_token"
}
}
}
}Prompts to try
Example LinkedIn actions you can ask Claude to perform once the server is connected.
- "Get my LinkedIn profile details"
- "Draft a LinkedIn post about launching my new product and publish it"
- "Upload this image and create a LinkedIn post with it"
- "Edit my last LinkedIn post to fix the typo in paragraph 2"
- "Delete the LinkedIn post I made yesterday about the meetup"Troubleshooting LinkedIn
403 Unauthorized or 'Not enough permissions' error when posting
Your access token must include the w_member_social scope. Regenerate the token at https://www.linkedin.com/developers/tools/oauth/token-generator and ensure all four scopes (openid, profile, email, w_member_social) are selected.
Access token has expired
LinkedIn access tokens expire after 60 days. Return to https://www.linkedin.com/developers/tools/oauth/token-generator, regenerate a new token, and update the LINKEDIN_ACCESS_TOKEN value in your Claude Desktop config.
Posts appear but do not show up publicly on LinkedIn
Check the visibility setting when creating the post. By default the linkedin_create_post tool may create private or connections-only posts. Ask Claude to explicitly set the visibility to PUBLIC when creating the post.
Frequently Asked Questions about LinkedIn
What is LinkedIn?
LinkedIn is a Model Context Protocol (MCP) server that post to linkedin from claude — create posts, upload images, edit/delete posts, and manage company pages via natural language. uses the official linkedin rest api with oauth 2.0. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install LinkedIn?
Install via npm with the command: npx -y linkedin-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with LinkedIn?
LinkedIn works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is LinkedIn free to use?
Yes, LinkedIn is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
LinkedIn Alternatives — Similar Communication Servers
Looking for alternatives to LinkedIn? Here are other popular communication servers you can use with Claude, Cursor, and VS Code.
Slack
★ 86.1kEnables interaction with Slack workspaces through comprehensive channel management, messaging, user management, file uploads, and Block Kit formatting. Features secure credential storage via macOS Keychain and supports all major Slack operations incl
LibreChat
★ 37.3kEnhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenA
Note Gen
★ 11.9kA cross-platform Markdown AI note-taking software.
DeepChat
★ 5.8k🐬DeepChat - A smart assistant that connects powerful AI to your personal world
WhatsApp MCP
★ 5.7kConnects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without
Apple
★ 3.1kEnables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.
Browse More Communication MCP Servers
Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up LinkedIn in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use LinkedIn?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.