linkedin-mcp
Provides tools for creating dev.to articles, editing or publishing drafts, and listing the user's articles with views, reactions, and comments.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
linkedin-mcp

An MCP server that lets Claude (or any MCP client) publish to your own LinkedIn profile through the official API, plus publish articles to dev.to.
No scraping, no cookies, no browser automation. And an honest answer to the question every LinkedIn integration hits sooner or later: what does the API actually let a self-serve app do?
What works (and what doesn't)
Tested live in December 2026 with a self-serve app (Share on LinkedIn + Sign In with LinkedIn using OpenID Connect), API version 202611:
Action | Endpoint | Result |
Create a post (text, hashtags) |
| ✅ works |
Post with an image |
| ✅ works |
Delete your own post |
| ✅ works |
Comment on a post |
| ❌ 403 |
Reply to a comment | same, with | ❌ 403 |
Like / react |
| ❌ 403 |
Read comments |
| ❌ 403 |
Read reactions on a post |
| ✅ works (returns member URNs, not names) |
Read post metadata (counts) |
| ❌ 403 |
Read the feed, search people/posts | — | ❌ no public API |
Post analytics | Community Management API | ❌ needs partner approval |
The docs list w_member_social as covering comments and reactions. In practice those calls are gated behind partner access. That's why this server only ships the tools that work. Run linkedin_doctor to see the result for your own app.
Related MCP server: linkedin-mcp
Tools
Tool | What it does |
| Is the account connected, days left on the token |
| Connect / reconnect (opens LinkedIn's consent page) |
| Post with an optional image from a local file. Hashtags stay clickable, reserved characters are escaped for LinkedIn's Little Text Format |
| Delete one of your posts |
| Read-only diagnostics: token, image upload, and (given any post link) every read endpoint, with the exact status and permission LinkedIn reports. Publishes nothing |
| Create a dev.to article, draft by default |
| Edit or publish a draft |
| Your articles with views, reactions, comments |
Every publishing tool tells the model to publish only text the user has approved. Keep a human in the loop: it's your name on the post.
Setup
1. LinkedIn app (about 10 minutes)
https://www.linkedin.com/developers/apps → Create app. LinkedIn requires a Company Page even for personal posting: pick one you admin, or create an empty one.
Products tab → request Share on LinkedIn and Sign In with LinkedIn using OpenID Connect (both self-serve, approved instantly).
Auth tab → copy Client ID and Primary Client Secret, and add the redirect URL
http://localhost:8765/callback.
2. Install
git clone https://github.com/Nuprostochuvak/linkedin-mcp.git
cd linkedin-mcp
cp .env.example .env # fill in LINKEDIN_CLIENT_ID / LINKEDIN_CLIENT_SECRET (and DEVTO_API_KEY if you want dev.to)
npm install
npm run check # sanity-checks .env without printing secrets
npm run login # browser opens → Allow → "Connected as …"
npm run install-claude # adds the server to Claude Desktop's config (backs it up first)Restart Claude Desktop. Tools appear as linkedin_* and devto_*.
Secrets stay on your machine: .env is git-ignored, the OAuth token lives in ~/.linkedin-mcp/token.json (chmod 600). Tokens last ~60 days; linkedin_login renews.
dev.to key
dev.to → Settings → Extensions → DEV Community API Keys → Generate. Put it in .env as DEVTO_API_KEY.
Cross-posting tip: Medium no longer issues API tokens. Publish on dev.to first, then use Medium's "Import a story" with the dev.to URL. Medium keeps the canonical link.
Test without publishing
DRY_RUN=1 npm run post -- "Hello #LinkedIn" ./image.pngGotchas we hit, so you don't have to
Composite URNs in paths:
encodeURIComponentleaves()unencoded and LinkedIn answers400 Syntax exception in path variables. Encode them as%28/%29.Little Text Format:
( ) [ ] { } < > @ # * _ ~ | \must be escaped in post commentary, and hashtags need{hashtag|\#|tag}, or the post silently loses text.Slow image posts: an upload plus publish can take longer than an MCP client's timeout. The post may appear a minute later. Check your feed before retrying, or you'll publish it twice.
Client ID vs secret: an
invalid_clienton token exchange usually means the secret field holds the Client ID.npm run checkshows lengths and prefixes without leaking values.
License
MIT © Valerij Tykhonov
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
LinkedIn API as MCP tools to retrieve profile data and publish content. Powered by HAPI MCP.
PerfectPost is a LinkedIn content management platform. This MCP server gives AI assistants read and write access to a user's PerfectPost account: published posts with their engagement analytics, drafts lifecycle (create / edit / schedule), and LinkedIn profile data.
LinkedIn MCP with 47 tools: post, comment, DM and run comment-to-DM automations inside your limits.
The LinkedIn API for AI agents. Search, inbox, posts and outreach over MCP.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables drafting, formatting, analyzing, and publishing LinkedIn posts directly from MCP-compatible clients like Claude.5-
- FlicenseNot gradedqualityDmaintenanceEnables 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.-
- AlicenseNot gradedqualityCmaintenanceEnables creating, updating, deleting, and uploading LinkedIn posts plus retrieving the authenticated member's profile, snapshots, posts, and activity through 11 MCP tools backed by separate posting and member-data tokens.MIT
- AlicenseAqualityBmaintenanceEnables an MCP client to read the authenticated user's LinkedIn profile and publish text, link, and image posts (plus preview and delete them) through LinkedIn's official API. It uses a user-supplied LinkedIn developer app, keeping credentials and tokens on the user's own machine.7MIT