10 DAYS ONLY · $500 VALUE Top 100 Viral Hooks + Repurpose Engine (Claude Skills) Start free week →
AI Automation

How to Post to X (Twitter) with Claude

June 29, 2026 · By Sabrina Ramonov

How to post to X (Twitter) with Claude Code using the Blotato MCP server. Connect your X account once, then publish or schedule posts from one prompt.

How to post to X with Claude Code using the Blotato MCP server, no X API

You can post to X with Claude Code without ever touching the X API. Connect the Blotato MCP server once, type something like “post this to my X account,” and Claude Code hands it to Blotato, which publishes to X and skips the developer account, the API v2 keys, and the pay-per-use billing the direct route now runs on. I run Blotato, so take this with whatever grain of salt feels right: it’s how I post to my own X and eight other platforms, 2.4M+ followers and 500M+ views.

X is the one platform where going direct got expensive in 2026. Most “post to X from Claude Code” setups hand you a skill that wires the X API v2 yourself: you create a developer account, generate keys, and load credits, because X moved new developers onto pay-per-use billing. The Blotato path skips all of it. One connection lets Claude Code publish to X plus eight more platforms.

What You Need Before You Start

Three things need to be set up before Claude Code can publish to X:

  • A paid Blotato plan. Blotato’s API, which the MCP server runs on, is bundled into every paid tier: Starter at $29/mo, Creator at $97/mo, Agency at $499/mo. The 7-day trial leaves API and MCP access out.
  • A connected X account inside Blotato. Link it under Settings before you open Claude Code. Any X account works, so you skip the account-type switching that Instagram forces.
  • Claude Code. The same MCP server also runs in Claude Desktop, but this guide leads with Claude Code.

How to Post to X with Claude Code

Posting breaks down into linking your X account and then sending the prompt that ships the post. Four steps, plus an optional fifth for scheduling.

Step 1: Connect Your X Account in Blotato

Sign in to Blotato, head to Settings, and add your X account under social platforms. Click “Login with Twitter,” authorize Blotato, and the account is linked. Blotato handles the X authentication, so you never create a developer account or generate API v2 keys yourself. That single connection is what lets Claude Code publish later without any OAuth on your end.

Step 2: Add the Blotato MCP Server to Claude Code

Point Claude Code at the Blotato MCP server, which follows the Model Context Protocol standard Claude Code uses for connectors. Run the line below in a session, then /mcp, pick Blotato > Authenticate, approve, and restart. Claude Desktop uses the same server, added under Customize then Connectors as a custom connector.

claude mcp add --transport http Blotato https://mcp.blotato.com/mcp

No API key changes hands, the connection runs off your logged-in browser session. Step-by-step screenshots live in Blotato’s MCP setup guide.

post to X with Claude Code: the /mcp panel showing the Blotato server connected in Claude Code
post to X with Claude Code: the /mcp panel showing the Blotato server connected in Claude Code

Step 3: Confirm the Connection

Ask Claude Code to list your connected accounts. It calls blotato_list_accounts and shows each platform with its ID, X among them. If X appears in that list, Claude Code can publish to it. If it does not, redo Step 1 and re-authorize the account in Blotato.

Step 4: Write the Prompt That Posts to X

Tell Claude Code what to publish in plain language. A prompt like “Post this to my X account: I’m posting to X straight from Claude using Blotato’s MCP. One prompt, no API keys to set up.” is enough. Claude Code passes that to blotato_create_post as the twitter platform with your account ID and text, then returns a postSubmissionId. Ask it to check blotato_get_post_status and you will see the post flip to published. I leave an approval gate in place, so I read whatever Claude Code drafts before it publishes.

post to X with Claude Code: the prompt running blotato_list_accounts and blotato_create_post, returning a published status and live X URL
post to X with Claude Code: the prompt running blotato_list_accounts and blotato_create_post, returning a published status and live X URL
the same post live on X, published straight from Claude Code through the Blotato MCP server
the same post live on X, published straight from Claude Code through the Blotato MCP server

Want Claude Code running more of your stack? See how to post to TikTok with Claude for short video, Bluesky posting from the same prompt if your audience is moving there, or the full Claude Code social media setup for posting everywhere at once.

Step 5: Schedule the Post for Later (Optional)

To line a post up rather than send it immediately, include a time in the prompt. Tell Claude Code “post this Tuesday at 10am” and it passes a scheduledTime to Blotato. Or ask for your next open slot, and Blotato drops it into the next gap on your calendar. Queued posts sit in Blotato, ready to move or delete whenever.

Ready to post to X straight from Claude Code? Start with Blotato and wire the MCP server in a couple of minutes.

Why Use Blotato’s MCP Instead of the X API?

The Blotato MCP server skips the pay-per-use billing that makes the direct X route expensive in 2026. X moved new developers onto a metered model where you load credits and pay per request, and a post that contains a URL costs $0.20 each, up from a fraction of a cent. Auto-posting links at any volume adds up fast, and I broke the full math down in the X (Twitter) API pricing guide. Routing through Blotato means one flat plan and no trips to the X developer console.

Most “post to X from Claude Code” tools solve a narrower problem. The popular skills on GitHub and the X automation connectors still make you wire the X API v2, create a developer account, and manage your own keys and credits. Single-platform skills publish to X and nothing else, so X, TikTok, and LinkedIn become three separate builds. Blotato links each account once on its own side, then surfaces all nine platforms (X, Instagram, YouTube, TikTok, LinkedIn, Facebook, Threads, Pinterest, Bluesky) behind a single MCP connection. One prompt sends the same idea to X and the rest at once.

If your drafts pile up faster than you ship them, automating social media with Claude Cowork wires this publishing step onto the front of a full content engine.

Common Mistakes to Avoid

Newcomers trip on a few of these the first time:

  • Expecting it to work on the trial. Neither the API nor the MCP runs on the free trial. Worse, creating an API key from Settings ends that trial right away and rolls you onto the paid Starter plan.
  • Pasting over 280 characters on a standard account. X caps standard posts at 280 characters, so a long draft gets rejected unless your account has X Premium. Ask Claude Code to keep the post under that limit, or upgrade for longer text.
  • Connecting one X account to two Blotato workspaces. The same X login cannot stay active in two Blotato accounts at once. The newer connection breaks the original token and posts stop going out, so keep each X login in a single workspace.
  • Skipping the account connection. Claude Code has nothing to post to until your X account is linked in Blotato. Ask it to list your accounts to check.

Conclusion

Getting Claude Code to post to X takes one connection and one prompt. Link your X account in Blotato, add the MCP server, and tell Claude Code what to publish or schedule. No X developer account, no API v2 keys, no pay-per-use credits like the direct route now demands. Try Blotato and let Claude Code run your X posting.

How to Post to X with Claude Code FAQs

Can Claude Code post to X?

Yes, with help. Claude Code has no native X access, but the Blotato MCP server gives it one. Connect Blotato to Claude Code, link your X account in Blotato, and a prompt like “post this to my X” publishes through Blotato’s API. Claude Desktop works the same way.

How do I connect Claude Code to X?

Connect X inside Blotato’s Settings first, then register Blotato’s MCP server (https://mcp.blotato.com/mcp) in Claude Code with a single claude mcp add command and authenticate. Approving access is the last step, and Claude Code can then publish to that X account. Claude Desktop adds the same server as a custom connector.

Do you need the X API to post to X with Claude Code?

No. Blotato authenticates with X on its side, so you skip the developer account, the API v2 keys, and the pay-per-use credits entirely. You link X once in Blotato, and Claude Code publishes through Blotato rather than calling the X API directly.

Can Claude Code schedule X posts for later?

Yes. Add a time to the prompt and Claude Code schedules the post through Blotato instead of firing it now. Pick the exact minute, or tell Blotato to grab your next open calendar slot. It stays in Blotato until then, editable or removable.