X MCP in ChatGPT: Best Times on the Read-Only URL
Ask ChatGPT when to post on X using your own data from the read-only TimeToPost MCP endpoint, then draft threads on a Business plan. Plans and tools.
Connect ChatGPT to TimeToPostSet up TimeToPost in ChatGPT
- On ChatGPT web, open Plugins, select the plus button and choose Add custom MCP server.
- Name it TimeToPost, paste the server URL and choose OAuth.
- Finish the TimeToPost sign in in the browser.
- Ask ChatGPT to call whoami and confirm the workspace.
https://api.timetopost.co/mcphttps://api.timetopost.co/mcp/planningOAuth: ChatGPT registers itself with TimeToPost and sends you to the sign in page; you never paste a token.
Ask when to post, from your own X history
The question people ask ChatGPT most about X is when to post. Connected to TimeToPost’s planning URL, ChatGPT answers from your own posts: get_optimal_times returns your top hours and days with the sample size behind them, and list_posts shows what went out recently. That endpoint only reads, which suits the read and fetch limit OpenAI applies on Pro.
On a Business, Enterprise or Edu workspace, the full URL adds the writing step: ChatGPT drafts a thread as segments with create_drafts and the optimal schedule hint, and the slot is chosen from the same data at approval.
Example prompt and the tool calls it makes
Prompt: “Using my TimeToPost data, which three hours this week are best for X, and how sure is that? Then draft a 4 tweet thread for the top slot.”
1. get_optimal_times
On either URL. With under 10 measured posts it returns a starting window.
{"platform":"twitter"}2. create_drafts
Full URL only. Needs a plan with write tools.
{"external_ref":"x-week-49","variants":[{"platform":"x","segments":["<tweet 1>","<tweet 2>","<tweet 3>","<tweet 4>"],"schedule_hint":"optimal"}]}X rules the server enforces
| Rule | X |
|---|---|
| Text | 280 characters per tweet; URLs count at full length |
| Threads | Up to 24 tweets, each up to 280 characters; posted as replies 1.1 seconds apart; media only on the first tweet |
| Images | Up to 4 per post: JPEG, PNG, GIF or WebP, up to 5 MB each |
| Video | One MP4 or MOV per post, up to 512 MB, never mixed with images |
| Token life | About 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
- The planning URL has no create_drafts, so the second call needs the full URL.
- OpenAI may ask you to confirm a write action before ChatGPT runs it.
- Each tweet is checked against 280 characters with URLs at full length.
- Full MCP with write tools: Business, Enterprise and Edu on ChatGPT web. Pro connects custom MCP servers with read and fetch permissions only.
Related pages
- X MCP server: every rule and error for X.
- TimeToPost MCP server: all tools and setup.
- ChatGPT setup guide
- LinkedIn MCP in ChatGPT: Team Drafts for Review
- X MCP in Claude Code: Threads From Release Notes
- X MCP in Claude Desktop: Write Threads in Chat
- X MCP in Cursor: Changelog Threads With Tagged Links
ChatGPT setup checked on 2026-12-02 against OpenAI Help: connecting custom MCP servers in ChatGPT, OpenAI Help: scheduled tasks in ChatGPT. X rules read from the TimeToPost server code on 2026-11-07.
Frequently asked questions
Is the best time ChatGPT gives me a generic chart?
No. get_optimal_times reads your own posts and their engagement, and returns the sample size with the answer.
Can I connect both URLs to ChatGPT?
Yes, as two custom MCP servers with different names, so the read-only tools are easy to tell apart.
Can ChatGPT read how a past X post did?
On the full URL, get_post_metrics returns impressions, likes, replies, reposts, bookmarks and link clicks for posts under about 30 days old.
Which ChatGPT plan can schedule posts through TimeToPost?
A Business, Enterprise or Edu workspace, where OpenAI allows write tools on custom MCP servers. On Pro, connections get read and fetch permissions only, so the read-only planning URL is the one that fits.
I build TimeToPost.
Connect ChatGPT to X through TimeToPost. The MCP server and its 126 tools are on every plan, from $12 a month.