Official (Vendor)Active· 21dby X
X (Twitter) API
X's own hosted MCP servers: one for the X API (posts, search, users, bookmarks, trends) and one for its developer docs. Launched 30 June 2026. Needs your own X developer app.
Install
npx -y @xdevplatform/xurl mcp https://api.x.com/mcp
Paste into your host's MCP config:
{
"mcpServers": {
"xapi": {
"command": "npx",
"args": [
"-y",
"@xdevplatform/xurl",
"mcp",
"https://api.x.com/mcp"
],
"env": {
"CLIENT_ID": "YOUR_X_APP_CLIENT_ID",
"CLIENT_SECRET": "YOUR_X_APP_CLIENT_SECRET"
}
}
}
}Env vars needed:
CLIENT_IDCLIENT_SECRETReview
Written from the maker's own published material. Not a hands-on test.
X provides two hosted MCP servers for AI tools. X MCP connects to the X API for post search, user lookups, timelines and mentions, bookmarks, trends, news, and Articles. It can create draft Articles and publish them using the permissions of the connected X account. Docs MCP searches and reads X API documentation.
The X API server uses hosted Streamable HTTP and supports MCP clients with native OAuth. Setup requires an X developer app and its OAuth 2.0 client ID. The open-source xurl bridge is an optional local route for clients without native OAuth, and for headless or multi-account setups. The xurl README describes OAuth 2.0 and OAuth 1.0a authentication, along with management of multiple apps and accounts.
This is aimed at developers and teams who want an AI tool to work with X data or documentation. Before relying on API actions, check that the connected account's permissions cover the tasks the model needs to perform. The API server acts with that account's permissions, while Docs MCP is for finding and reading API documentation.
Verdict
Worth a look for developers connecting an MCP-compatible AI tool to X data or API documentation. Check your client's OAuth support and your X app's enrollment before setting up API access.
Good at
- The X API server supports post search, user lookups, bookmarks, trends, news, and Articles.
- The hosted server supports MCP clients with native OAuth discovery.
- The optional open-source xurl bridge supports OAuth 2.0 and OAuth 1.0a authentication.
- Docs MCP searches and reads X API documentation.
Watch out
- Using the API server requires an X developer account and app.
- For API reads, the maker's troubleshooting guidance says to check that the app is in the Pay-per-use package and Production environment if enrollment errors occur.
- Check whether the MCP client supports native OAuth or requires the xurl bridge.
Use cases
- Search recent posts on a topic and summarise the conversation
- Pull trends by location for a content calendar
- Look up a user's recent posts before outreach
- Draft and publish posts or articles with a human approving each write
- Ask an agent questions about the X API without leaving the editor
Getting started
## Create an X app
In the X developer portal create an app with OAuth 2.0 enabled and register `http://localhost:8080/callback` as the redirect URI. Put the app on Pay-per-use and Production.
## Add the server
Add the config above to `claude_desktop_config.json` or `~/.cursor/mcp.json` with your CLIENT_ID and CLIENT_SECRET. Set the startup timeout to at least 300 seconds.
## Log in
The first call opens a browser for the X login. Approve it.
## Test it
Ask: "Search recent posts about MCP servers." For safety use https://api.x.com/mcp?read_only=true.
Works with
Claude DesktopCursorVS CodeOther
Similar MCPs
- email-validation.orgThe email-validation.org MCP server lets an AI client validate an email address, run bulk jobs and read the credit balance. It is hosted, connects with an API key or an OAuth sign-in, and uses the same credits as the REST API.
- Bluesky Social MCPFull Bluesky control over the atproto client, covering profiles, feeds, posts, follows, and interactions.
- Nostr MCPPosts notes and interacts with the Nostr decentralised protocol across configurable relays.
- Mattermost MCP HostConnects to Mattermost teams, channels, and messages, running as a bot integrated into threads.