linkedin-mcp-server

MCP.Pizza Chef: fredericbarthelet

linkedin-mcp-server is an MCP server that interfaces with the LinkedIn Community Management API, supporting OAuth-based third-party authorization and HTTP+SSE transport for real-time data streaming. It can be hosted locally or remotely, providing structured access to LinkedIn user information and community management features within the MCP ecosystem.

Use This MCP server To

Access LinkedIn user profile data via MCP protocol Stream LinkedIn community updates in real-time using SSE Delegate LinkedIn OAuth authorization through MCP third-party flow Integrate LinkedIn community management into AI workflows Host LinkedIn API access server locally or remotely Enable MCP clients to query LinkedIn user info securely

README

Linkedin MCP Server

MCP server for interacting with Linkedin Community Management API.

This MCP server:

⚠️ Disclaimer: The Third-Party Authorization Flow proposal status is currently in draft. The only MCP client, to my knowledge, that currently implements this specification of the protocol is the MCP Inspector

Features

Tools

  • user-info - Get current logged in user infos (name, headline and profile picture)
  • create-post - Create a new post on LinkedIn

Installation

Follow those instructions to run Linkedin MCP server on your host. You'll need to provide your own Linkedin client.

Requirements

  • Node 22 (lts/jod)
  • pnpm 10
  • a Linkedin client with Community Management API product installed and http://localhost:3001/callback added to the authorized redirect URLs

Instructions

  • Install dependencies:
pnpm install
  • Create env file and populate with your Linkedin client credentials and a random string secret value for JWT_SECRET:
cp .env.template .env && vi .env
  • Run the server:
pnpm run dev
  • Configure your favorite MCP client to use this new server:
{
  "mcpServers": {
    "linkedin": {
      "url": "http://localhost:3001/sse"
    }
  }
}

Debugging

Start the MCP Inspector to debug this server, which is available as a package script:

pnpm run inspector

Access the inspector in your browser at http://localhost:5173

Acknowledgment

linkedin-mcp-server FAQ

How does linkedin-mcp-server handle LinkedIn OAuth authorization?
It implements the MCP Draft Third-Party Authorization Flow to delegate OAuth authorization to LinkedIn's OAuth server securely.
Can linkedin-mcp-server be hosted remotely?
Yes, it supports both local and remote hosting environments.
What transport protocol does linkedin-mcp-server use?
It uses HTTP with Server-Sent Events (SSE) transport as defined in the MCP specification for real-time data streaming.
What LinkedIn API features are exposed by linkedin-mcp-server?
Currently, it exposes user information and community management endpoints via MCP tools.
Is the third-party authorization flow stable?
The third-party authorization flow is currently a draft specification and may evolve; MCP Inspector is the main client supporting it.
Which LLM providers can work with linkedin-mcp-server?
It is provider-agnostic and can work with OpenAI, Anthropic Claude, and Google Gemini models.
How does linkedin-mcp-server improve LinkedIn integrations?
It standardizes LinkedIn API access within MCP, enabling secure, scoped, and observable interactions for AI agents.