LinkedIn

v1.0.0Communicationstable

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.

claude-ailinkedinllmmcpmcp-server
Share:
46
Stars
0
Downloads
0
Weekly
0/5

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

LinkedIn post creation and management
Company page automation
abhineet34

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y linkedin-mcp

Manual Installation

npx -y linkedin-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-server
2

Install dependencies

Install the Node.js dependencies.

npm install
3

Build the project

Compile the TypeScript source to JavaScript.

npm run build
4

Set 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

5

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.

6

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"
      }
    }
  }
}
7

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.

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.

Quick Config Preview

{ "mcpServers": { "linkedin": { "command": "npx", "args": ["-y", "linkedin-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides