Skip to main content
Glama
AmmarShafqat

linkedin-claude-mcp

by AmmarShafqat

linkedin-mcp

LinkedIn MCP server for Claude — create posts, read profile, get analytics.

Setup

1. Install dependencies

cd Desktop/Repositories/linkedin-mcp
npm install

2. Create a LinkedIn App

  1. Go to linkedin.com/developersCreate App

  2. Fill in app name, LinkedIn page, logo

  3. Under Products, add:

    • ✅ Sign In with LinkedIn using OpenID Connect

    • ✅ Share on LinkedIn

  4. Under Auth → Redirect URLs, add: http://localhost:3000/callback

  5. Copy your Client ID and Client Secret

3. Configure credentials

cp .env.example .env

Edit .env and add your Client ID and Client Secret.

4. Authenticate (run once)

node auth.js

This opens LinkedIn in your browser, you approve access, and the access token is saved to .env automatically.

5. Add to Claude

Edit your Claude desktop config at:

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "linkedin": {
      "command": "node",
      "args": ["/Users/ammarshafqat/Desktop/Repositories/linkedin-mcp/index.js"]
    }
  }
}

Restart Claude desktop. You should see the LinkedIn tools available.


Related MCP server: LinkedIn Profile MCP Server

Available Tools

Tool

Description

linkedin_create_post

Publish a new post (text, visibility)

linkedin_get_profile

Get your name, headline, profile URL

linkedin_get_posts

Fetch your recent posts (up to 50)

linkedin_delete_post

Delete a post by ID or URN

linkedin_get_post_analytics

Get impressions, clicks, likes, comments

linkedin_add_comment

Comment on one of your posts


Example usage in Claude

"Post this to my LinkedIn: [paste your content]"

"Show me my last 5 LinkedIn posts"

"How many impressions did my last post get?"


Token expiry

LinkedIn access tokens last 60 days. When it expires, just run node auth.js again.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    An intelligent bridge between Claude and LinkedIn. This MCP server empowers Claude to act as your high-level career consultant, capable of auditing your profile, optimizing your identity, and managing your professional content with real-time API access.
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    A local MCP server that lets Claude log in to LinkedIn and publish image posts to your personal profile feed, backed by LinkedIn's REST Images API and Posts API.
    2
    17
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    A personal-use remote MCP server that lets you post to LinkedIn, queue/schedule drafts, and pull your own post analytics from Claude.
    17
    MIT

View all related MCP servers

Related MCP Connectors

  • Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.

  • MCP server for LeadDelta — manage LinkedIn connections and CRM data via AI assistants.

  • Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.

View all MCP Connectors

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/AmmarShafqat/linkedin-claude-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server