Linkedin MCP Server logo

Linkedin MCP Server

by fredericbarthelet

This is an MCP server for interacting with the LinkedIn Community Management API. It can be hosted locally or remotely and implements the Draft Third-Party Authorization Flow from MCP specs to delegate authorization to LinkedIn's OAuth authorization server.

View on GitHub

Last updated: N/A

What is Linkedin MCP Server?

A Model Context Protocol (MCP) server that allows interaction with the LinkedIn Community Management API. It provides a standardized way to access LinkedIn's community management features through the MCP protocol.

How to use Linkedin MCP Server?

  1. Install Node 22 and pnpm 10.
  2. Obtain a LinkedIn client with the Community Management API product installed and configure the authorized redirect URL.
  3. Install dependencies using pnpm install.
  4. Create and configure the .env file with your LinkedIn client credentials and a JWT secret.
  5. Run the server using pnpm run dev.
  6. Configure your MCP client to use the server's URL (e.g., http://localhost:3001/sse).
  7. Use the MCP Inspector for debugging.

Key features of Linkedin MCP Server

  • HTTP+SSE transport

  • Third-Party Authorization Flow

  • User Info retrieval

  • Post creation

Use cases of Linkedin MCP Server

  • Automating LinkedIn post creation

  • Retrieving user information for LinkedIn profiles

  • Integrating LinkedIn community management features into other applications

  • Building custom LinkedIn integrations using the MCP protocol

FAQ from Linkedin MCP Server

What is MCP?

MCP stands for Model Context Protocol, a protocol for interacting with various services in a standardized way.

What is the Community Management API?

The LinkedIn Community Management API allows developers to manage LinkedIn communities programmatically.

What is the Third-Party Authorization Flow?

A mechanism for delegating authorization to LinkedIn's OAuth authorization server, as defined in the MCP specifications.

What are the requirements for running this server?

Node 22, pnpm 10, a LinkedIn client with the Community Management API product, and a configured .env file.

How do I debug this server?

Use the MCP Inspector, which can be started with pnpm run inspector and accessed at http://localhost:5173.