LinkedIn
A LinkedIn MCP server for your personal profile
Publit.Si's MCP server lets Claude Code, Codex, Cursor or OpenCode write LinkedIn posts on your own computer: longer texts with images or a video, for anyone or for your connections only, on your free posting slots. LinkedIn gives these apps no statistics, so this page is about writing and planning.
What your agent does for LinkedIn
- Drafts posts for your personal LinkedIn profile: text, 1–20 images or one video up to 30 minutes – images or a video, not both.
- Writes within 3,000 characters;
get_platform_rulestells it that about 210 show before “…more” and that links in the text get no preview card. - Sets
fields.visibility:PUBLIC(anyone) orCONNECTIONS(your connections only). - Writes a longer LinkedIn text next to a short X version in the same draft.
- Fills your LinkedIn slots and daily goal with
get_posting_slotsandget_goal_progress, like for any platform.
The tools for LinkedIn
| Tool | What it does for LinkedIn |
|---|---|
list_backlog | Folders still missing on LinkedIn (missingOn=LINKEDIN), oldest first. |
get_platform_rules | Format post, the 3,000-character rule and the field visibility (PUBLIC or CONNECTIONS). |
list_accounts | Your LinkedIn profile with its id and status. |
get_posting_slots | Free posting times for your LinkedIn profile. |
get_goal_progress | Today's LinkedIn goal, what's still missing and the streak. |
create_draft | A LinkedIn draft with its own text and fields.visibility, optionally on a slot. |
list_posts | Planned and published posts with each account's state, so the agent doesn't repeat a topic. |
get_post | One post's text per account, to reuse it as the base of a LinkedIn text. |
Set it up
- Connect your personal LinkedIn profile under Accounts in Publit.Si, with a free self-serve LinkedIn developer app.[2]
- Connect Publit.Si's MCP server once in your agent with the lines below. Publit.Si → Settings → MCP for Claude Code, Codex, Cursor & OpenCode shows them with your real path.
- Cursor: Publit.Si → Settings → MCP for Claude Code, Codex, Cursor & OpenCode shows the block for ~/.cursor/mcp.json with your real path. Paste it there.
- Ask your agent “List my Publit.Si projects”. It calls
list_projectsand names your projects.
claude mcp add --scope user publitsi -- pnpm --silent --dir "$(pwd)" mcpclaude mcp add --scope user publitsi -- cmd /c pnpm --silent --dir "$PWD" mcp[mcp_servers.publitsi]
command = "pnpm"
args = ["--silent", "--dir", "/path/to/publitsi", "mcp"]{
"mcp": {
"publitsi": { "type": "local", "command": ["pnpm", "--silent", "--dir", "/path/to/publitsi", "mcp"], "enabled": true }
}
}Example prompts
- “Write a LinkedIn post from this week's strongest Reel and plan it on my next free slot.” →
get_post_performancewithdays=7andsort=scoreto find the Reel,get_posting_slotsfor the LinkedIn profile,get_platform_rulesfor LINKEDIN, thencreate_draftwithplannedForset to the free slot. - “Draft the same announcement for LinkedIn and X: long for LinkedIn, short for X.” →
get_platform_rulesfor LINKEDIN and X, then onecreate_draftwith both accounts, each with its owntext. - “Is today's LinkedIn post still missing?” →
get_goal_progressfor the project, reading LinkedIn'sstillMissing, what's planned today and the streak.
Limits
- It never publishes.
create_draftandupdate_draftonly make drafts, and you approve each one under Queue › Review. The MCP server your coding agent connects to has no tool that schedules or publishes.[1] - No statistics and no comments: LinkedIn gives these apps neither, so
get_post_performance,get_account_growthandlist_commentsreturn nothing for LinkedIn.[2] - Personal profile only: Publit.Si uses LinkedIn's
w_member_socialpermission, which creates posts on behalf of the signed-in member.[3] CONNECTIONSshows a post to your 1st-degree connections only.[4]- The login lasts 60 days and self-serve apps can't renew it. Publit.Si warns five days ahead; then you connect the profile again.[2]
Questions
Can the agent post to LinkedIn on its own?
No. It creates drafts, and you approve each one under Queue › Review. Then your own computer posts it to your profile through LinkedIn's API.
Can it post to a LinkedIn company page?
No. Company pages need an API that LinkedIn only grants after a review. Publit.Si posts to your personal profile.
Can my agent read LinkedIn statistics?
No. LinkedIn gives these apps no statistics and no comments, so the agent only writes and plans for LinkedIn.
Related
Sources
- [1] Publit.Si docs: MCP tools: publit.si/docs/guide/mcp
- [2] Publit.Si docs: Connect LinkedIn: publit.si/docs/platforms/linkedin
- [3] LinkedIn: Share on LinkedIn: https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin, checked November 17, 2026
„Required to create a LinkedIn post on behalf of the authenticated member.“
- [4] LinkedIn: Share on LinkedIn: https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin, checked November 17, 2026
„The share will be viewable by 1st-degree connections only.“