Skip to main content
Glama
LinkedIn MCP Server

LinkedIn MCP Server

by Breakreach

LinkedIn MCP Server

Publish to LinkedIn, schedule posts, attach images, video or a PDF carousel, and read what each post did, from Claude, ChatGPT, Cursor or any client that speaks the Model Context Protocol.

You: turn these notes into a LinkedIn post and schedule it for Tuesday morning
Claude: [schedule_linkedin_post] Scheduled for Dec 2, 8:30.

The post goes out through the LinkedIn API on a connected account. Nothing has to be confirmed in the LinkedIn app afterwards.

Install

The server runs over stdio and needs one environment variable: a Breakreach API key, which is what holds your connected LinkedIn account. Create one free at breakreach.com, connect LinkedIn, then take the key from Settings → API & MCP.

Claude Code

claude mcp add linkedin --env BREAKREACH_API_KEY=br_your_key -- npx -y @breakreach/linkedin-mcp

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "linkedin": {
      "command": "npx",
      "args": ["-y", "@breakreach/linkedin-mcp"],
      "env": { "BREAKREACH_API_KEY": "br_your_key" }
    }
  }
}

Cursor — ~/.cursor/mcp.json, same block as above.

ChatGPT, and anything that wants a remote server: ChatGPT connectors cannot run a local command, so point it at the hosted Breakreach server instead, https://api.breakreach.com/mcp, which covers LinkedIn and 19 other networks behind OAuth. Setup per client: breakreach.com/agents.

Related MCP server: mcp-server-linkedin

Tools

Tool

What it does

list_linkedin_accounts

The connected LinkedIn accounts and their ids. Call it first.

post_to_linkedin

Publish now: text, images, video or a PDF carousel.

schedule_linkedin_post

Put it on the calendar at a time, at the next free slot, or as a draft.

get_next_linkedin_slot

The next free slot in the posting schedule.

upload_linkedin_media

A local file to an https URL LinkedIn can fetch.

list_linkedin_posts

Drafts, scheduled, published and failed, with their ids.

get_linkedin_post_metrics

Impressions, likes, comments, shares.

get_linkedin_account_stats

Followers and recent reach per account.

Every tool is named after the network, so an assistant reaches for the right one without being told which server to use. Set BREAKREACH_WORKSPACE if the account has several workspaces and you want one of them by default.

What LinkedIn allows, and what this does about it

These are the platform's rules, not ours, and they are the part that usually breaks a home-made integration:

  • Commentary is escaped. LinkedIn's post format reserves a set of characters, and an unescaped parenthesis truncates the post at that character. Text is escaped before it is sent, so a post with brackets, a colon or a hyphen arrives whole.

  • Hashtags are sent in LinkedIn's own entity form, so they are clickable rather than plain text.

  • PDF carousels hold 2 to 20 pages, and the file is what LinkedIn shows as a document post.

  • Tokens last about 60 days. An account whose token is close to expiring comes back from list_linkedin_accounts with a warning, and has to be reconnected before it can publish.

  • Personal profiles. Company Pages need a separate LinkedIn approval, which is not live yet, so a Page cannot be targeted today.

  • LinkedIn has no public comments API for third parties, so there is no read-and-reply tool here. The hosted server covers comments on the networks that do allow it.

Why a single-network server

An assistant handed two dozen tools spread over twenty networks spends its first turn working out which one it wants. Handed post_to_linkedin, it posts. If you do want every network in one place (LinkedIn, Instagram, TikTok, X, YouTube, Facebook, Threads, Pinterest, Bluesky, Reddit, Telegram, Discord, Slack, Mastodon, WordPress, Ghost, Dev.to, Hashnode, Tumblr, Google Business Profile), that is the hosted server at https://api.breakreach.com/mcp.

Sister servers, same shape: instagram-mcp, tiktok-mcp.

Questions people actually ask

Is it free? This server is MIT licensed and free. It talks to Breakreach, where reading is free and publishing needs a plan, from $29 a month.

Does it post without me confirming? Yes. It is a direct publish on the connected account.

Can it scrape profiles or send connection requests? No. It publishes and reads your own posts. Nothing here touches someone else's profile or inbox.

Can it run without Breakreach? No. The OAuth app, the 60-day token refresh, the commentary escaping and the document upload flow live there. A LinkedIn integration is mostly that work, not the HTTP call.

Build it yourself

npm install
npm run build
node scripts/smoke.mjs   # MCP handshake, then the tool list

MIT licensed. Issues and pull requests welcome.

Available Tools

8 tools
get_linkedin_account_statsLinkedIn account statsB
Read-only

Followers and recent reach for each connected LinkedIn account, read from LinkedIn itself.

Inputs: workspace.

get_linkedin_post_metricsLinkedIn post metricsA
Read-only

Views, likes, comments and shares for one post, read from LinkedIn. Pass refresh to fetch them again rather than use the stored ones.

Inputs: postId (required), refresh, workspace.

get_next_linkedin_slotNext free LinkedIn slotA
Read-only

The next free time in the posting schedule, so a post lands when the audience is there instead of right now.

Inputs: workspace.

list_linkedin_accountsList LinkedIn accountsA
Read-only

List the LinkedIn accounts connected to this Breakreach account, with the id each posting tool needs. Call this first. An account that carries a warning has to be reconnected before it can publish.

Inputs: workspace.

list_linkedin_postsList LinkedIn postsB
Read-only

The posts Breakreach holds for LinkedIn: drafts, scheduled, published and failed, with their ids.

Inputs: limit, status, workspace.

post_to_linkedinPost to LinkedIn nowA

Publish a post on LinkedIn straight away. Text, images, a video, or a PDF carousel of 2 to 20 pages. It goes out through the connected account, so nothing has to be confirmed in the LinkedIn app.

Inputs: content (required), media, workspace, accountIds.

schedule_linkedin_postSchedule a LinkedIn postB

Put a post on the LinkedIn calendar. Give scheduledAt for a precise time, or useNextSlot to take the next free slot in the posting schedule. Text, images, a video, or a PDF carousel of 2 to 20 pages.

Inputs: content (required), draft, media, workspace, +3 more.

upload_linkedin_mediaUpload a file for LinkedInA

Upload a local image or video to Breakreach storage and get back the https URL to pass as media. Use it for any file that is not already on a public URL.

Inputs: path (required), workspace.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct resource+action pair: immediate publish (post_to_linkedin) vs scheduling (schedule_linkedin_post) vs next slot (get_next_linkedin_slot) are clearly separated, and list_linkedin_accounts vs get_linkedin_account_stats vs list_linkedin_posts vs get_linkedin_post_metrics are unambiguous. No two tools appear to do the same thing.

    Naming Consistency4/5

    Almost all tools follow a verb_linkedin_noun snake_case pattern (list_linkedin_accounts, schedule_linkedin_post, get_linkedin_post_metrics), which is predictable and readable. The one deviation is post_to_linkedin, which uses verb_to_noun instead of verb_linkedin_noun, but it is still intelligible.

    Tool Count5/5

    Eight tools is well-scoped for a LinkedIn posting integration, with each earning a clear place: account discovery, stats, publish, schedule, next slot, media upload, listing, and metrics. Nothing feels padded or redundant.

    Completeness4/5

    The core workflow (find account, upload media, publish or schedule, then measure) is fully covered. Minor gaps exist: no tool to edit or cancel a scheduled post, no explicit draft-creation step despite drafts being listed, and no delete operation, but agents can largely work around these.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to manage LinkedIn posts and view analytics through a set of MCP tools, including creating, reading, and deleting posts, checking authentication, and retrieving profile info.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to publish text, link, and image posts to a personal LinkedIn profile, as well as comment, react, and delete posts, through the official LinkedIn API.
      9
      3
      MIT