xdataapi: X (Twitter) data — Claude Code MCP server
Provides read-only access to public X (Twitter) profiles and search queries. Usage charges deduct credits per returned item without fixed subscriptions.
claude mcp add --transport http xdataapi https://api.xdataapi.io/mcpWhat xdataapi: X (Twitter) data does
This server connects coding agents to public X data through a remote HTTP endpoint at https://api.xdataapi.io/mcp. Built-in tools include get_user, get_user_tweets, search_tweets, get_thread, and get_balance. Queries accept standard search operators recognized by x.com.
Authentication handles OAuth automatically on first launch. For environments without OAuth support, clients pass an x-api-key HTTP header. Stdio-only clients can connect through the mcp-remote bridge package.
All available tools are strictly read-only, meaning the server cannot post updates or modify accounts. Every returned post or profile consumes one credit from a prepaid balance. Empty queries and network errors cost nothing.
What it helps with
- fetch complete conversation threads by tweet ID
- search public posts on X using native query operators
- inspect profile details and follower lists for an account
- track remaining prepaid credits via
get_balance
Example prompts for the agent
- Search for recent posts from user
xdiscussing AI agents. - Fetch the entire reply thread for tweet ID
1234567890. - Check my remaining credit balance in xdataapi.
How to install xdataapi: X (Twitter) data
Platform CLI: remote server
claude mcp add --transport http xdataapi https://api.xdataapi.io/mcpPlatform CLI: remote server
codex mcp add xdataapi-x-twitter-data --url https://api.xdataapi.io/mcpConfig file
{
"mcpServers": {
"xdataapi-x-twitter-data": {
"url": "https://api.xdataapi.io/mcp"
}
}
}Config file
{
"servers": {
"xdataapi-x-twitter-data": {
"type": "http",
"url": "https://api.xdataapi.io/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http xdataapi-x-twitter-data https://api.xdataapi.io/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about xdataapi: X (Twitter) data
How to install xdataapi: X (Twitter) data in Claude Code?
Run claude mcp add --transport http xdataapi https://api.xdataapi.io/mcp in your terminal. Complete the OAuth sign-in prompt in your browser on initial use.
What does xdataapi: X (Twitter) data do?
It allows agents to read public X (Twitter) records, including search matches, user timelines, discussion threads, and follower details.
Can this MCP server publish tweets or send messages?
No. The API operates strictly in read-only mode and lacks write endpoints for creating posts or changing settings.