A central coral plug socket with three different cables running into it, standing for three kinds of server connecting an AI app to one account
September 18, 2026·8 min read

X (Twitter) MCP Explained: Official XMCP vs Other Servers

Vadym Petryshyn
Helping to fix your X & Threads account problems | Founder of Postory
Key Takeaway

An X MCP server lets Claude, ChatGPT or another AI app use X (formerly Twitter) as tools. Three kinds: X's own XMCP (your developer app, billed per API call), open-source servers you run from GitHub, and hosted servers you sign in to with no API key.

"X MCP" used to mean a GitHub repo someone wrote. Now X runs its own server, XMCP, and the phrase covers three things with different setup, credentials and costs. Here's how they compare.

What Is an X (Twitter) MCP Server?

MCP (Model Context Protocol) is an open standard that lets an AI app discover and call outside tools. An MCP server offers those tools. For X, they're things like "search posts" or "create a post".

It sits on top of the X API rather than replacing it: the AI picks a tool, the server makes the call, and the result returns to the chat. So every X MCP server answers three questions differently: who pays for the calls, whose credentials sign them, and who approves a post before it goes out.

Cloud X Berry's short explainer covers the MCP-versus-API split:

X's Official XMCP Server: What It Does and What It Needs

X hosts its MCP server at https://api.x.com/mcp (it identifies itself as xmcp). Per X's MCP documentation, it covers posts and who liked, reposted or quoted them, full-archive search, user lookups and timelines, bookmarks, news and trends, and Articles you can draft and publish. Its documented writes are bookmarks and Articles; X's docs don't list regular post creation (checked September 2026).

What it needs. XMCP runs on your own X developer app, with no dynamic client registration, so you can't just paste the URL and sign in. Two routes:

  1. App-only bearer token. Paste the app's token as a header. Read-only, and it can't act as you.
  2. The xurl mcp bridge. A local program run with npx. It takes the app's CLIENT_ID and CLIENT_SECRET and needs http://localhost:8080/callback registered as the app's callback URL. Then you log in once in the browser. Writes need this route.

X (Twitter) MCP server

Connect your X account to Claude or ChatGPT

Postory's MCP server lets Claude, ChatGPT, Gemini or Grok search your imported X posts and replies, write drafts, and schedule or publish after you approve. X only. 100 free credits, no card.

What it costs. The X API is pay-per-usage: you buy credits and each call is charged. As of September 2026, reading a post costs $0.005, creating one $0.015, and creating one with a URL $0.20.

For regular posts there's X's xmcp on GitHub, a local Python server that turns the whole X API spec into tools, including createPosts, likePost, followUser and DMs, with an allowlist to trim the set.

Two open toolboxes side by side, one holding a few simple tools and the other packed full, standing for small and large open-source server projects

Open-Source Twitter MCP Servers on GitHub

Community projects on GitHub follow two patterns.

Official API keys. EnesCinr/twitter-mcp has two tools, post_tweet and search_tweets, and takes four keys from the X developer portal. rafaljanicki/x-twitter-mcp-server adds profiles, followers, deleting and bookmarks, and asks for five credentials plus a sixth for the bookmark tools. You run the server, and your developer app pays X for every call.

Browser cookies. Some projects skip the API and use your session cookies. gkydev/twitter-mcp-server is one; its README says it uses "an unofficial API" and names account restriction or suspension as a risk.

You get full control and readable code, but you install, update and secure the server and keys yourself.

Hosted X (Twitter) MCP Servers With No API Key

A hosted server is run by a service that already holds an X connection. You add its URL and sign in in the browser: no developer app, no keys, nothing to install. Several services offer one, so check each one's tool list and approval step. Here's what's different about Postory's:

  • One URL, one sign-in. https://postory.io/mcp, with OAuth and dynamic client registration. No client ID or secret, and your AI app never sees your X password or tokens.
  • Drafts first. Your AI writes drafts and threads in Postory, then publishes or schedules them after a preflight check.
  • You approve. By default your AI is told to show you the post and ask in the chat. Turn on "Manually approve publishing & scheduling in Postory" and each post waits for your yes on a Postory page.
  • Guardrails. At most one post per X account every 10 minutes, and 30 in 24 hours. No like, follow or DM tools.
  • Your own data. It searches your imported posts, replies, following and followers.
  • X only. It doesn't reach Threads or Bluesky.

X (Twitter) MCP Servers Compared: Credentials, Cost, Approval, Clients

X's XMCPOpen-source (GitHub)Postory (hosted)
You needAn X developer app, plus the xurl bridge for writesDeveloper keys or browser cookies, and a machine to run itA Postory account with X connected
Who pays XYou, per API callYou, per API call (key-based projects)Postory credits: 3 per account per publish or schedule; imports extra
ApprovalYour AI client's own tool promptsYour AI client's own tool promptsA preflight step; the AI asks in chat by default, or approval is enforced on a Postory page
ClientsStdio clients through the bridge; header-capable clients for read-onlyConfig-file clients such as Claude DesktopAny client with remote MCP and OAuth sign-in
Best atSearch, bookmarks, trends and Articles; the GitHub xmcp covers the full API specCustom builds and experimentsDrafting, scheduling and publishing

A signpost with three arrows pointing different ways beside a small figure, standing for choosing a server

Which X (Twitter) MCP Option Should You Use?

  • Building on the X API? Use X's own servers: hosted XMCP for search and bookmarks, the GitHub xmcp for the full API spec.
  • Want to change the code? Fork an open-source repo. Check how it signs in to X before handing over keys or cookies.
  • Want to post and schedule from Claude or ChatGPT without a developer account? Use a hosted server whose publishing step asks for your approval.

How to Connect X (Twitter) MCP to Claude or ChatGPT

XMCP. Add the xurl bridge, with your app's client ID and secret, to your client's config. X's docs cover Claude Desktop, Cursor, VS Code and Grok Build.

A hosted server in Claude. Open Customize → Connectors, click "+", then "Add custom connector", and paste the URL. Anthropic's guide limits Free users to one custom connector. For Postory: the Claude web steps, or the Claude Twitter MCP guide for Desktop and Claude Code.

A hosted server in ChatGPT. Turn on developer mode under Settings → Security and login (on Business, Enterprise or Edu, an admin may need to turn it on first), then add the server as a developer-mode app with OAuth. OpenAI's guide lists Plus, Pro, Business, Enterprise and Education on the web; write actions like publishing depend on the plan, as our ChatGPT Twitter integration guide explains. For Postory: the ChatGPT web steps.

Start Posting to X From Claude or ChatGPT

Postory's X (Twitter) MCP server is one hosted path from Claude or ChatGPT to X: it drafts first, then publishes or schedules after you approve (in chat, or on a Postory page). Setup guides cover Claude, ChatGPT, Gemini, Grok, Cursor and more.

Try Postory free: 100 welcome credits, no card required.

FAQ

Q: What is XMCP?

XMCP is X's official MCP server, hosted at https://api.x.com/mcp. It lets an AI app call X API endpoints such as post search, user lookup, bookmarks, trends and Articles. It runs on your own X developer app and is billed pay-per-usage.

Q: Is the X MCP server free?

Not in practice. XMCP runs on your X developer app, and the X API charges per resource read and per request written, from credits you buy in X's Developer Console. Open-source servers that use your API keys are billed the same way.

Q: Can I use an X MCP server without an API key?

Yes, with a hosted server that already holds an X connection. You sign in to the service through OAuth, and it makes the X calls. X's own XMCP always needs a developer app.

Q: Where is the X MCP on GitHub?

X's local server is at github.com/xdevplatform/xmcp, and the xurl bridge for the hosted server is at github.com/xdevplatform/xurl. Community projects are separate repos with their own authors.

Q: Does X MCP work with Claude?

Yes. X's docs include a Claude Desktop config for the xurl bridge. Hosted servers with OAuth sign-in can also be added as a custom connector on claude.ai or Claude Desktop, or with claude mcp add in Claude Code.

Q: Can an MCP server post tweets for me?

Many can, and some can also like, follow or send DMs. Check the tool list before you connect one. With Postory's server, your AI is told to ask you before it publishes or schedules; turn on "Manually approve publishing & scheduling in Postory" and each post waits for your yes on a Postory page. It has no like, follow or DM tools.

Q: Is using a Twitter MCP server against X's rules?

The server doesn't decide that; what you post and how often does. X's automation rules ban automated spam, and they say non-API automation, such as scripting the X website, may get an account permanently suspended. That's the risk cookie-based servers carry.

Share: