mcpField
L
Linkedin MCP Server

Linkedin MCP Server

Remote
github.com/fredericbartheletSocial Media41Updated 84w ago
Repository

About Linkedin MCP Server

Linkedin MCP Server is an MCP server for the LinkedIn Community Management API that can run locally or remotely. It uses HTTP+SSE transport and implements the draft third-party authorization flow from the MCP specification.

Key features

  1. 01Retrieve current logged-in user information
  2. 02Create LinkedIn posts through an MCP tool
  3. 03HTTP+SSE transport for local or remote hosting
  4. 04Draft third-party authorization flow via LinkedIn OAuth

Use cases

  1. 01Letting an agent check the current LinkedIn account profile
  2. 02Publishing LinkedIn posts through an agent

MCP support

This project is an MCP server that exposes user-info and create-post tools to MCP clients and serves connections over an SSE endpoint.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttp://localhost:3001/sse
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project 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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.