talira

X MCP (xmcp)

X's MCP server for the X API

serviceself-hostableMCP

xmcp is the X Developer Platform's MCP server for the X API. X hosts it at api.x.com/mcp (Streamable HTTP): clients connect through the xurl mcp bridge, which signs in with OAuth 2.0 as your account through your own X developer app, or with an app-only bearer token for read-only use, and ?read_only=true offers only read tools. The hosted server's tools cover posts, search (including full-archive search), users, timelines and mentions, bookmarks, news and trends, and drafting and publishing articles. The reference implementation on GitHub runs locally with FastMCP and generates its tools from X's OpenAPI spec (lists, direct messages, Spaces, communities and media uploads among them), with an allowlist to load only the tools you want. Calls are billed to your developer account at X API pay-per-use prices.

Problems it solves

  • let my AI agent search recent posts on X and read threads through the official API
  • have Claude or Cursor post to my X account on my behalf
  • give an agent read-only access to X so it can't post or delete anything
  • pull my X bookmarks and mentions into an AI assistant
  • an official MCP connection to Twitter rather than a scraper that breaks
  • expose only a handful of X API endpoints to my agent instead of every one

Features

  • hosted Streamable HTTP server at api.x.com/mcp
  • xurl mcp bridge that handles OAuth 2.0 PKCE and token refresh
  • app-only bearer token mode for read-only access
  • read-only mode with ?read_only=true
  • hosted tools for posts, search, users, timelines, mentions, bookmarks, news, trends and articles
  • self-hosted Python server that builds tools from X's OpenAPI spec with FastMCP
  • tool allowlist (X_API_TOOL_ALLOWLIST)
  • separate X docs MCP server at docs.x.com/mcp

Limitations

  • Doesn't expose the X API's streaming or webhook endpoints: the server leaves them out of its tools1
  • No dynamic client registration or MCP OAuth discovery: you need your own X developer app and its client ID and secret2

Capabilities

Has an MCP serverplan not known

Alternatives

The same job

These do what X MCP (xmcp) does.

  1. Tavily Connect your AI agents to the web
  2. DataForSEO SEO and digital marketing data through APIs, paid per task
  3. Google Workspace MCP servers Google-hosted remote MCP servers for Gmail, Drive, Calendar, Docs, Sheets, Slides, Chat and more
  4. mcp-gsc Google Search Console MCP server for SEOs

Compare X MCP (xmcp) with the top 3