LinkedIn MCP in Cursor: Engineering Posts From Git
Connect Cursor to the TimeToPost MCP server and turn a week of commits into a LinkedIn draft. The mcp.json entry, LinkedIn’s text rules and the approval step.
Connect Cursor to TimeToPostSet up TimeToPost in Cursor
- Open ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one repo.
- Add the timetopost entry below and save.
- Enable the server in Cursor’s MCP settings and finish the browser sign in.
- Ask the agent to call whoami, then list_integrations, before the first post.
{
"mcpServers": {
"timetopost": {
"url": "https://api.timetopost.co/mcp"
}
}
}OAuth with dynamic client registration, so there is no client id or secret to paste.
A week of commits as one LinkedIn post
Engineering updates on LinkedIn work when they explain a decision. Cursor’s agent can run git log for the week, group the commits by theme and write one post about the change that mattered most. It then files the post with create_drafts and a brand tag, so you can later compare how engineering posts do against the rest.
Cursor asks before each MCP tool call by default, which means you see the create_drafts payload in the editor before it is sent. The draft then waits in TimeToPost until someone approves it, so the post gets two looks: one in Cursor, one in the approval queue.
Example prompt and the tool calls it makes
Prompt: “Run git log --since="7 days ago" --oneline, pick the change with the most user impact, write a 900 character LinkedIn post about why we made it, and file it as a draft tagged engineering.”
1. create_drafts
brand is an attribution tag for rollups, separate from any writing style setting.
{"external_ref":"week-49-eng","brand":"engineering","variants":[{"platform":"linkedin","segments":["<post text>"],"schedule_hint":"optimal"}]}2. get_engagement_by_tag
Weeks later: how posts tagged engineering did as a group.
{"brand":"engineering"}LinkedIn rules the server enforces
| Rule | |
|---|---|
| Text | 3,000 characters, checked when the post is created |
| Media per post | One image or one video |
| Images | JPEG, PNG or GIF, up to 10 MB |
| Video | MP4 only; uploaded in parts, then LinkedIn processes it before the post is created |
| Formatting | Plain text. @mentions are removed and the characters @ [ ] ( ) # * _ ~ are escaped, so Markdown shows as typed |
- Approval queue: create_drafts accepts LinkedIn.
- Numbers back: none for LinkedIn through TimeToPost.
- One image or one MP4 per post, plain text only, and no analytics come back.
Limits and gotchas
- Code blocks and Markdown do not survive on LinkedIn: the publisher escapes them, so ask for prose.
- LinkedIn post analytics do not come back, so tag rollups count only networks that report numbers.
- A project .cursor/mcp.json can end up in the repo; keep TimeToPost in the global file.
- Global file ~/.cursor/mcp.json applies to every project; .cursor/mcp.json applies to one repo and is easy to commit by mistake.
Related pages
- LinkedIn MCP server: every rule and error for LinkedIn.
- TimeToPost MCP server: all tools and setup.
- Cursor setup guide
- X MCP in Cursor: Changelog Threads With Tagged Links
- LinkedIn MCP in Claude Code: Post From Your Repo
- LinkedIn MCP in Claude Desktop: Draft and Approve
- LinkedIn MCP in ChatGPT: Team Drafts for Review
Cursor setup checked on 2026-12-02 against Cursor MCP docs. LinkedIn rules read from the TimeToPost server code on 2026-11-07.
Frequently asked questions
Can Cursor post the LinkedIn update without my approval?
Through create_drafts it cannot: drafts wait for a person. Cursor also asks before each MCP tool call unless you changed that setting.
Can I paste a code snippet into a LinkedIn post from Cursor?
As plain text only. Backticks and asterisks are escaped, so the snippet shows exactly as typed. A screenshot of the code, as one image, reads better.
Does the hosted server or the npx package work better in Cursor?
The hosted URL with OAuth is simpler. The npx package, timetopost-mcp, runs locally with a personal token if your Cursor build does not finish the OAuth step.
Should TimeToPost go in the global or the project mcp.json?
The global ~/.cursor/mcp.json. Your social accounts are not tied to one repo, and a project file is easy to commit by mistake.
I build TimeToPost.
Connect Cursor to LinkedIn through TimeToPost. The MCP server and its 126 tools are on every plan, from $12 a month.