Claude Code Social Posting: Network by Network
Claude Code runs in your terminal next to the repo, so its best TimeToPost jobs start from files: a diff, a changelog, a folder of clips. It reaches TimeToPost over the hosted MCP server, and the same login works later in a headless claude -p run from cron or CI.
Connect Claude Code to TimeToPostSetup
- Register the hosted server once for every project with the command below.
- Run claude mcp login timetopost (or open /mcp in a session) and finish the browser sign in.
- Ask Claude Code to call whoami and check that the workspace is yours.
- For unattended runs, sign in interactively first: a claude -p run has no /mcp panel, so it reuses the stored login.
claude mcp add --transport http --scope user timetopost https://api.timetopost.co/mcp
claude mcp login timetopostclaude -p "Read CHANGELOG.md and file one draft per network with create_drafts" \
--allowedTools "Read,mcp__timetopost__create_drafts"- Sign in: OAuth in the browser through /mcp or claude mcp login; no API key is stored in the config.
- Review step: Claude Code asks before a tool runs unless you allowed it; in claude -p, only the tools named in --allowedTools run, and MCP tools are named mcp__timetopost__<tool>.
- Unattended runs: Yes. claude -p runs one prompt without a session, so cron or a CI job can call it after a release.
What changes on each network
| Network | Best Claude Code job | Approval queue | Numbers back |
|---|---|---|---|
| From a merged pull request to a LinkedIn draft | create_drafts accepts LinkedIn. | none for LinkedIn through TimeToPost. | |
| X | A release thread timed from your own X data | create_drafts accepts X. | get_post_metrics returns X results. |
| Local files to an Instagram carousel | create_drafts accepts Instagram. | get_post_metrics returns Instagram results. | |
| TikTok | A clip on disk, your TikTok choices, one call | create_drafts accepts TikTok. | none for TikTok through TimeToPost. |
| Telegram | Release notes straight to your Telegram channel | create_drafts does not accept Telegram; posts are scheduled directly. | none for Telegram through TimeToPost. |
LinkedIn rewards a plain account of what you built and why, and Claude Code already has the material: the pull request description, the diff and the tests. Ask it to read them and write one profile post in your own voice, then file it with create_drafts so it waits in your approval queue.
A changelog splits naturally into a thread: one tweet for the headline change, one per notable fix. Claude Code can read CHANGELOG.md, cut it into tweets of 280 characters or less and count them before sending, which matters because a URL counts at full length in TimeToPost’s check.
Instagram has no text-only posts, so the hard part for any agent is the media. Claude Code has an edge here because it can touch your disk: it reads each file’s exact size, calls prepare_media_upload, PUTs the bytes to the presigned URL with curl and calls finalize_media_upload to get a URL Instagram can fetch.
TikTok makes the person posting choose the audience and the comment, duet and stitch switches, with nothing preselected. TimeToPost enforces that: a TikTok post without a complete platformData.tiktok block is refused. So the right Claude Code workflow is a short conversation before the upload, where it asks you for the six values.
A Telegram channel is the one place your changelog can go out in full: 4,096 characters of text. Claude Code can paste a release section almost as written. Add screenshots and the rule changes: with media, the text becomes a caption of at most 1,024 characters, and two to ten items go out as one album with the caption on the first.
Claude Code limits
- A claude -p run cannot complete an OAuth sign in, so the first login has to happen in an interactive session.
- Scopes: local (the default) and user are stored in ~/.claude.json, project scope writes .mcp.json for the whole team.
- In a headless run, a tool call that needs approval and is not in --allowedTools is denied, so list every TimeToPost tool the job needs.
Related pages
- Claude Code setup guide
- TimeToPost MCP server
- Claude Desktop Social Posting with TimeToPost
- Cursor Social Posting: Network by Network
- ChatGPT Social Posting with TimeToPost MCP
Checked on 2026-12-02 against Claude Code MCP docs, Claude Code headless docs.
Frequently asked questions
Can Claude Code post on a schedule without me?
Yes, through claude -p from cron or CI after one interactive login. Allow only the tools the job needs, for example --allowedTools "mcp__timetopost__create_drafts", so the run files drafts and a person still approves them.
Can Claude Code send Telegram posts to the approval queue?
No. create_drafts refuses Telegram with "Unknown platform(s): telegram", so Telegram posts from Claude Code are scheduled directly.
What does Claude Code need to post on TikTok?
Claude Code calls get_tiktok_creator_info, asks you for the audience and the comment, duet, stitch, own brand and paid partner answers, and sends them in platformData.tiktok with schedule_post.
Which networks can Claude Code post to through TimeToPost?
TimeToPost publishes to Instagram, X, Bluesky, Mastodon, Pixelfed, Telegram, Tumblr, WordPress, Ghost, DEV, Write.as, Whop, Buttondown, TikTok, LinkedIn, Threads, YouTube, Nostr, Listmonk, and Lemmy. The pages here cover the five where the server rules and errors are documented network by network: LinkedIn, X, Instagram, TikTok and Telegram.
I build TimeToPost.
Claude Code works with TimeToPost on every plan, from $12 a month.