Skip to content

X MCP in Claude Desktop: Write Threads in Chat

Write and schedule X threads in Claude Desktop through the TimeToPost connector: 24 tweets of 280 characters, best time from your data, and drafts you approve.

Connect Claude Desktop to TimeToPost

Set up TimeToPost in Claude Desktop

  1. Pro and Max: open Customize, then Connectors, choose Add and Add custom connector, name it TimeToPost and paste the server URL.
  2. Team and Enterprise: an Owner adds the connector under Organization settings, Connectors; each member then selects Connect.
  3. Sign in to TimeToPost in the browser window that opens.
  4. In a new chat, ask Claude to run whoami and confirm your workspace.
custom connector URL
https://api.timetopost.co/mcp
claude_desktop_config.json (local npm package)
{
  "mcpServers": {
    "timetopost": {
      "command": "npx",
      "args": ["-y", "timetopost-mcp@0.4.2"],
      "env": {
        "TIMETOPOST_API_URL": "https://api.timetopost.co",
        "TIMETOPOST_API_TOKEN": "your-token"
      }
    }
  }
}

The connector signs in with OAuth; the local npm route uses a personal token from Settings, Apps & API in TIMETOPOST_API_TOKEN.

Edit a thread in conversation, then queue it

Threads benefit from back and forth: cut this tweet, merge those two, make the opener shorter. Claude Desktop is good at that loop. Once you settle the thread, Claude files it with create_drafts as a list of segments; two or more segments on twitter become a thread published as chained replies.

If you want the time picked for you, set schedule_hint to optimal. At approval TimeToPost picks a slot from your own X engagement history, so the chat does not need to know your audience’s hours.

Example prompt and the tool calls it makes

Prompt: “Turn these notes into an X thread of 5 tweets under 280 characters each. When I approve the text, file it as a draft with the optimal schedule.”

1. create_drafts

The alias x maps to twitter. The draft waits for approval; the slot is chosen when you approve.

input
{"external_ref":"notes-thread-dec","variants":[{"platform":"x","segments":["<tweet 1>","<tweet 2>","<tweet 3>","<tweet 4>","<tweet 5>"],"schedule_hint":"optimal"}]}

2. list_approvals

Shows the pending thread with every other item waiting for review.

input
{}

X rules the server enforces

RuleX
Text280 characters per tweet; URLs count at full length
ThreadsUp to 24 tweets, each up to 280 characters; posted as replies 1.1 seconds apart; media only on the first tweet
ImagesUp to 4 per post: JPEG, PNG, GIF or WebP, up to 5 MB each
VideoOne MP4 or MOV per post, up to 512 MB, never mixed with images
Token lifeAbout 2 hours by design; refreshed at publish, so an old expiry date is normal
  • Approval queue: create_drafts accepts X.
  • Numbers back: get_post_metrics returns X results.
  • The provider key is twitter. A draft with two or more segments becomes a thread.

Limits and gotchas

  • With more than one X account connected, add account_ids to the draft or approval is refused as ambiguous.
  • Images ride on the first tweet only: up to 4 images, or one video, never both.
  • The tools take media as a public URL, so an image for the first tweet has to be online already.
  • Custom connectors work on Free, Pro, Max, Team and Enterprise; the Free plan allows one custom connector.

Related pages

Claude Desktop setup checked on 2026-12-02 against Claude Help: custom connectors using remote MCP, MCP docs: connect local servers. X rules read from the TimeToPost server code on 2026-11-07.

Frequently asked questions

Can Claude Desktop approve the thread for me?

It can call approve_draft, which schedules the post, but the tool is meant for after you have read the draft. Claude asks before running it, so you decide.

How many tweets can a thread have?

Up to 24, each up to 280 characters. A longer tweet is refused before anything is saved.

Does the optimal schedule use general best times?

No. It uses your own X posts and their engagement. With little history, get_optimal_times returns a starting window until there are enough measured posts.

Do I need the config file to use TimeToPost in Claude Desktop?

No. The custom connector only needs the URL and a browser sign in. The config file is for the local npm package, which uses a personal token instead of OAuth.

I build TimeToPost.

Connect Claude Desktop to X through TimeToPost. The MCP server and its 126 tools are on every plan, from $12 a month.