On 30 June 2026 X shipped an official, hosted MCP server — and it changes the calculus for anyone who wanted an agent to read or post to the platform. Until now you had to build your own X server, host it, wire up the API and handle auth. Now X runs the server; you just connect a client with your own account. Here's how, and what it can and can't do.
The pick: X's official hosted server
X exposes a remote MCP endpoint that fronts more than 200 API operations — search, timelines, user lookups, engagement and posting. Because it's hosted by X, there's nothing to install: it behaves like any other remote connector, the same shape as GitHub's or Stripe's official servers. Confirm the current endpoint URL in X's developer docs, then point a client at it. Any MCP-compatible app can attach — Claude, Cursor, and X's own Grok Build among them.
Step 1 — add the remote server
In Claude Desktop or claude.ai, open Settings → Connectors → Add custom connector and paste the hosted X endpoint. For Claude Code, add it over HTTP:
claude mcp add --transport http x https://api.x.com/mcp
Cursor and other clients take the same remote URL in their MCP settings. There's no local stdio command here — it's a hosted server, so everything runs through an authenticated HTTPS endpoint.
Step 2 — authorise with your account
Complete the OAuth login when prompted. Access is scoped to your X account's permissions, so the agent can only see and do what you can. Every call is attributed to you — treat it like handing an assistant your logged-in session.
What you can (and can't) do
Reading is the strong suit: an agent can search posts, pull a user's timeline, and summarise a conversation on demand. Posting support is deliberately narrow at launch, so don't assume you can turn an agent loose to publish autonomously — check exactly which write operations your account is cleared for before relying on it. One more thing that catches people out: the MCP layer is free, but the X API underneath is pay-per-use, so a chatty agent runs up real API cost. Scope your prompts and watch usage.
Going further
X is the newest entry in a fast-growing field — see the best MCP servers for social media for how it stacks up against LinkedIn and Reddit. Because it's a hosted, OAuth-secured server, the same setup works in ChatGPT Developer Mode. Lock down what agents can reach with MCP security best practices, or browse the communication category.