I'm job hunting, so I wanted to stop living inside the LinkedIn UI. The plan: let Claude draft posts and comments, I approve them, and an MCP server publishes through LinkedIn's official API. No scraping, no session cookies, nothing that puts my account at risk.

The docs made it look easy. The w_member_social permission is described as "post, comment and react on behalf of a member". Self-serve, approved instantly.

Then I started calling endpoints.

The map

Self-serve app with Share on LinkedIn + Sign In with LinkedIn using OpenID Connect, API version 202611, December 2026:

Action Endpoint Result
Create a post POST /rest/posts ✅
Post with an image POST /rest/images?action=initializeUpload + PUT ✅
Delete your post DELETE /rest/posts/{urn} ✅
Read reactions on a post GET /rest/reactions/(entity:{urn})?q=entity ✅ (member URNs only)
Comment on a post POST /rest/socialActions/{urn}/comments ❌ 403 partnerApiSocialActions.CREATE
Reply to a comment same + parentComment ❌ 403
Like / react POST /rest/reactions ❌ 403 partnerApiReactions
Read comments GET /rest/socialActions/{urn}/comments ❌ 403 partnerApiSocialActions.GET_ALL
Read post metadata GET /rest/socialMetadata/{urn} ❌ 403 partnerApiSocialMetadata.GET
Feed, search, connections, messages — ❌ no public API at all

So the honest summary: a self-serve app can publish and delete your own posts. That's it. Everything social, the part that actually builds an audience, is behind partner access.

The 403s don't say "wrong scope". They name a partnerApi* permission, which is how you learn the docs and the gateway disagree.

Four gotchas that cost me time

1. Parentheses in URNs. A comment URN looks like urn:li:comment:(urn:li:activity:123,456). encodeURIComponent leaves ( and ) alone, and LinkedIn answers 400 Syntax exception in path variables. Fix:

const encUrn = (u) => encodeURIComponent(u).replace(/\(/g, "%28").replace(/\)/g, "%29"); 

2. Little Text Format. Post text isn't plain text. Characters like ( ) [ ] { } < > @ # * _ ~ | must be escaped, and hashtags need {hashtag|\#|tag} to stay clickable. Skip this and parts of your post silently disappear.

3. Slow image posts look like failures. Upload + publish took longer than my MCP client's timeout. The tool reported an error, the feed showed nothing, and the post appeared a few minutes later. Retrying blindly would have double-posted. Now the rule is: check the feed before retrying.

4. invalid_client that isn't. My OAuth exchange failed for an hour. The secret field contained the Client ID. I added a check command that prints the length and first characters of each value without leaking it. Boring, and it would have saved that hour.

So I built a doctor

Instead of trusting the docs, the server ships a read-only linkedin_doctor tool. It validates the token, initializes an image upload (nothing gets published), and probes the read endpoints against any post you give it, reporting the exact status and permission name LinkedIn returns:

{ "check": "Read comments on a post", "ok": false, "status": 403, "code": "ACCESS_DENIED", "permission": "partnerApiSocialActions.GET_ALL.20261101" } 

If LinkedIn changes the rules, you'll know in one call instead of one afternoon.

What I ended up with

A hybrid that respects the limits instead of fighting them:

  • Writing my own posts: official API, through the MCP server.
  • Finding posts, reading threads, commenting: me, in the browser, with Claude drafting and me approving every word.
  • Long-form: the same server publishes to dev.to (drafts by default). Medium stopped issuing API tokens, so Medium gets the dev.to URL through its import tool, with the canonical link preserved.

The rule that stayed constant: a human approves everything public. It's my name on the post. No API, however open, changes that.

The code

MIT-licensed, Node, under 600 lines: github.com/Nuprostochuvak/linkedin-mcp

If you've got partner access and can confirm what changes with it, or you've found a self-serve endpoint I missed, tell me in the comments. I'll update the table.

I build real-time systems, the pipelines that ship them, and lately the AI tooling around them. If your team has a problem where the docs say yes and the gateway says 403, I'd enjoy hearing about it: LinkedIn.