LinkedIn MCP Server
# 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](https://www.breakreach.com), connect LinkedIn, then take the key from **Settings → API & MCP**.
**Claude Code**
```bash
claude mcp add linkedin --env BREAKREACH_API_KEY=br_your_key -- npx -y @breakreach/linkedin-mcp
```
**Claude Desktop** — `claude_desktop_config.json`
```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](https://www.breakreach.com/agents).
## 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](https://github.com/Breakreach/instagram-mcp), [tiktok-mcp](https://github.com/Breakreach/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
```bash
npm install
npm run build
node scripts/smoke.mjs # MCP handshake, then the tool list
```
MIT licensed. Issues and pull requests welcome.
TDQS
Scored across 8 tools
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.
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.
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.
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.