MCP ServerOfficialHTTP

X (Twitter) MCP Server

X shipped an official hosted MCP server on 30 June 2026 at api.x.com/mcp, putting more than 200 X API endpoints behind a single Streamable HTTP endpoint. Any MCP client — Claude, Cursor, Grok or your own — can search posts, resolve users, read engagement, manage bookmarks, pull trends and publish articles using your own X developer credentials.

Hosted URL

https://api.x.com/mcp

Suggested model

Claude Sonnet 5

Chat with 60+ AI models on the same workflow — switch to a different model mid-conversation and re-run the same prompt, or use Compare mode to put several side-by-side and balance quality vs. cost.

Auth

Your own X developer app. Either a Bearer token from the app’s Keys and Tokens page, or OAuth 2.0 PKCE via X’s `xurl mcp` bridge for full account-scoped access with automatic token refresh.

What the X (Twitter) MCP server does

How models use it and what it is built for.

The X MCP server is maintained by the X Developer Platform (repository xdevplatform/xmcp) and wraps the X API as MCP tools rather than raw REST calls, so a model can discover what is callable instead of being handed documentation. Reads cover full-archive post search, user and profile lookups, and engagement lists — who liked, reposted or quoted a given post — plus trends and news. Writes cover bookmarks and article publishing, and are rate-limited more strictly than reads. Authentication is your own developer app: either a static Bearer token from the app’s Keys and Tokens page, or OAuth 2.0 PKCE through X’s `xurl mcp` bridge, which refreshes tokens automatically so calls run with your account’s permissions.

Tools the X (Twitter) MCP server exposes

Typical tools an AI model can call. Exact names vary by version.

  • Post search — including full-archive search across X’s history
  • Fetch posts — retrieve individual posts and their metadata
  • Engagement lists — see who liked, reposted or quoted a post
  • User and profile lookups — resolve accounts and read profile data
  • Trends and news — what is surfacing on the platform right now
  • Bookmarks — read and manage saved posts (counts as a write)
  • Article publishing — create and publish long-form articles (counts as a write)

Example prompts to try

Copy any of these into MCP Agent Studio after connecting.

  • Search the last 30 days for posts mentioning our product and group them by sentiment.

  • Who reposted our launch announcement, and which of them have over 10k followers?

  • What is trending in the developer community today? Summarise the top five threads.

  • Pull my bookmarks from this week and turn them into a reading list with one-line summaries.

Models on MCP Playground

This is not a single-model product: you get the same MCP connection with 40+ models (Claude, GPT, Gemini, DeepSeek, open-weight, and more), you can switch mid-conversation, and you can open Compare mode to run the same prompt against multiple models at once. The card above is a suggested starting point for this server — not the only choice.

Default pick for X (Twitter)

Claude Sonnet 5

Sonnet 5 handles the synthesis this server invites — summarising many short posts into themes — without the cost of a top-tier model on what is mostly retrieval.

Try the X (Twitter) MCP server in your browser

Open MCP Agent Studio with the connection pre-filled. Add your token, pick any of 40+ models, and start chatting — no install required.

Open Agent Studio

X (Twitter) MCP server — FAQ

Common questions about connecting, scoping and using it safely.

Does X have an official MCP server?

Yes. X launched an official hosted MCP server on 30 June 2026 at https://api.x.com/mcp, maintained by the X Developer Platform in the xdevplatform/xmcp repository. It is first-party — X hosts it on their own domain and documents it in their own developer docs — which distinguishes it from the many community Twitter MCP servers on GitHub.

What authentication does the X MCP server need?

Your own X developer credentials, not an MCP Playground account. The simple path is a static Bearer token from your app’s Keys and Tokens page. For full account-scoped access, X provides an `xurl mcp` bridge that handles OAuth 2.0 PKCE login and refreshes tokens automatically, so tools run with your account’s permissions.

What can the X MCP server actually do?

It exposes more than 200 X API endpoints as MCP tools. Reads include full-archive post search, fetching posts, user and profile lookups, engagement lists (likers, reposters, quoters), trends and news. Writes include managing bookmarks and publishing articles. Write operations are rate-limited more strictly than reads.

Is it the same as the community Twitter MCP servers on GitHub?

No. Several community projects wrap the Twitter/X API as MCP servers and predate this one. The difference is provenance and hosting: this endpoint is run by X, tracks the X API directly, and is covered by X’s own documentation and rate limits. Community servers run wherever you deploy them and depend on their maintainer keeping up with API changes.

Can I use the X MCP server with Grok, Claude or Cursor?

Yes — it is a standard Streamable HTTP MCP server, so any compliant client works, including Grok, Claude, Cursor and MCP Agent Studio. Because MCP is client-side, the model you pick is independent of the server; the same X tools behave differently depending on which model is choosing between them.

Other MCP servers

More on MCP Playground

X (Twitter) MCP Server — Official Hosted MCP at api.x.com