Read-only X (Twitter) data API for developers and AI agents: REST, hosted MCP server, TypeScript and Python SDKs.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Documented (README)
claude mcp add xdataapi -- python -m xdataapi{
"mcpServers": {
"xdataapi": {
"command": "python",
"args": ["-m", "xdataapi"]
}
}
}MCP Servers overview
# xdataapi
Read-only public X (Twitter) data for developers and AI agents. Profiles, tweets, timelines, threads,
followers, and search with the x.com operators. One credit per tweet or profile returned. Empty results
and errors are free.
- Site and docs: https://xdataapi.io/docs
- API: `https://api.xdataapi.io` (OpenAPI 3.1: [openapi.yaml](openapi.yaml), also at https://api.xdataapi.io/openapi.yaml)
- Hosted MCP server: `https://api.xdataapi.io/mcp` (Streamable HTTP, OAuth or `x-api-key`)
- Status, checked every minute from outside: https://xdataapi.io/status
- Docs for agents: https://xdataapi.io/llms.txt
Not affiliated with X Corp. Public data only. No write endpoints.
## MCP
Claude Code:
```bash
claude mcp add --transport http xdataapi https://api.xdataapi.io/mcp
```
The server signs you in with OAuth on first use. Clients without OAuth pass a key instead:
```json
{
"mcpServers": {
"xdataapi": {
"url": "https://api.xdataapi.io/mcp",
"headers": { "x-api-key": "xd_live_..." }
}
}
}
```
Stdio-only clients can bridge with `mcp-remote`:
```json
{
"mcpServers": {
"xdataapi": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.xdataapi.io/mcp", "--header", "x-api-key:${XDATAAPI_KEY}"],
"env": { "XDATAAPI_KEY": "xd_live_..." }
}
}
}
```
Tools: `get_user`, `get_users`, `get_user_tweets`, `get_followers`, `get_following`, `get_follower_ids`,
`search_tweets`, `get_tweet`, `get_tweets`, `get_thread`, `get_replies`, `get_quotes`, `get_retweeters`,
`get_balance`. All read-only. Listed on the official MCP Registry as `io.xdataapi/xdataapi`.
## REST
```bash
curl "https://api.xdataapi.io/v1/tweets/search?q=from:x%20since:2026-09-01&count=20" \
-H "x-api-key: xd_live_..."
```
Every response carries `credits_charged` and `balance_remaining`. Pages return `next_cursor`; pass it back as `cursor`.
## SDKs
TypeScript, `npm install xdataapi`:
```ts
import { xdataapi } from 'xdataapi';
const api = xdataapi({ apiKey: process.env.XDATAAPI_KEY! });
const { data } = await api.searchTweets({ query: { q: 'from:x', count: 20 } });
```
Python, `pip install xdataapi`:
```python
from xdataapi import AuthenticatedClient
from xdataapi.api.tweets import search_tweets
client = AuthenticatedClient(base_url="https://api.xdataapi.io", token=KEY, prefix="", auth_header_name="x-api-key")
page = search_tweets.sync(client=client, q="from:x", count=20)
```
Both are generated from `openapi.yaml`. See [examples/](examples/) for LangChain, CrewAI, and Vercel AI SDK tools.
## Pricing
Prepaid credit packs from $10. Credits never expire. No per-call minimum. Rate limit rises with lifetime spend.
Details: https://xdataapi.io/#pricing
## Support
hello@xdataapi.io. Security reports: https://xdataapi.io/.well-known/security.txt
What people ask about xdataapi
What is andrewchmr/xdataapi?
+
andrewchmr/xdataapi is mcp servers for the Claude AI ecosystem. Read-only X (Twitter) data API for developers and AI agents: REST, hosted MCP server, TypeScript and Python SDKs. It has 0 GitHub stars and its last recorded update is dated 2026-09-20.
How do I install xdataapi?
+
You can install xdataapi by cloning the repository (https://github.com/andrewchmr/xdataapi) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is andrewchmr/xdataapi safe to use?
+
Our security agent has analyzed andrewchmr/xdataapi and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.
Who maintains andrewchmr/xdataapi?
+
andrewchmr/xdataapi is maintained by andrewchmr. The last recorded GitHub activity is dated 2026-09-20, with 0 open issues.
Are there alternatives to xdataapi?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy xdataapi to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/andrewchmr-xdataapi)<a href="https://claudewave.com/repo/andrewchmr-xdataapi"><img src="https://claudewave.com/api/badge/andrewchmr-xdataapi" alt="Featured on ClaudeWave: andrewchmr/xdataapi" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ
The fastest path to AI-powered full stack observability, even for lean teams.