# X (Twitter) — MCP Server

> Search posts, read profiles, track trends and publish to X from an MCP client.

**Source:** https://mcpplaygroundonline.com/mcp-servers/x-twitter  
**Transport:** http  
**Requires auth:** Yes

---

## What it does

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 exposed

- 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 queries you can run

- "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."

## Details

- **Recommended model:** anthropic/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.
- **Transport:** http
- **Authentication:** Required — 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.
- **Hosted endpoint:** https://api.x.com/mcp
- **Official source:** [X MCP docs](https://docs.x.com/tools/mcp)

## Frequently asked questions

### 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.

---

_Test this server across 40+ models on MCP Playground: https://mcpplaygroundonline.com/mcp-servers/x-twitter — free, no install._
