# xdataapi: X (Twitter) data

> xdataapi: X (Twitter) data is a paid MCP server for web search and scraping. Pay-per-result MCP server for public X (Twitter) profiles, tweets, threads and search. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, CLI
- **Website:** https://xdataapi.io/docs/mcp
- **Repository:** https://github.com/xdataapi/xdataapi
- **MCP Registry name:** io.xdataapi/xdataapi
- **Categories:** web search and scraping, analytics and data
- **Listing updated:** 2026-11-16

## About

xdataapi serves read-only public X data to agents from a hosted endpoint, so nothing is installed or run locally. Tools cover profiles, a user's tweets, followers and following, tweet lookup, threads, replies, quotes, retweeters and search using x.com operators. The README says it is not affiliated with X Corp, handles public data only and has no write endpoints.

Cost is visible. Each call is one REST request at the same price, and every result reports credits charged and balance remaining. Profiles and tweets cost one credit each, follower IDs 0.02 and a retweeter profile 0.5. Empty results and errors are free, and a fresh flag bypasses the cache at double price for cached items.

Clients sign in through the MCP authorization flow in a browser, or send an API key in a header. Framework packages for LangChain, LlamaIndex and n8n, plus a Claude Code plugin, carry the cost into tool descriptions and add a max-results cap.

## Features

- **Profile and tweet lookup:** Reads users, single tweets and batches of up to 100.
- **Search with operators:** Searches tweets and profiles using x.com search operators.
- **Threads and engagement:** Fetches threads, replies, quotes and retweeters.
- **Follower data:** Lists followers, following and follower IDs.
- **Visible credit costs:** Every result shows credits charged and balance remaining.
- **OAuth or key sign-in:** Signs in through a browser flow, or accepts an API key header.

## Good for

- Research what an account has posted recently
- Pull a full thread or its replies into an analysis
- Track mentions with search operators
- Give an agent a spending cap on social data

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http xdataapi https://api.xdataapi.io/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://api.xdataapi.io/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "xdataapi": {
      "url": "https://api.xdataapi.io/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "xdataapi": {
      "type": "http",
      "url": "https://api.xdataapi.io/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "xdataapi": {
      "serverUrl": "https://api.xdataapi.io/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "xdataapi": {
      "type": "http",
      "url": "https://api.xdataapi.io/mcp"
    }
  }
}
```

## Tools

- `get_user`: Look up one profile by handle or id.
- `get_users`: Look up up to 100 profiles.
- `get_user_tweets`: Read a user's tweets.
- `get_followers`: List an account's followers.
- `get_following`: List the accounts a user follows.
- `get_follower_ids`: List follower ids.
- `search_tweets`: Search tweets using x.com operators.
- `get_tweet`: Fetch one tweet by id.
- `get_tweets`: Fetch up to 100 tweets by id.
- `get_thread`: Read a tweet thread.
- `get_replies`: Read replies to a tweet.
- `get_quotes`: Read quote tweets of a tweet.
- `get_retweeters`: List who retweeted a tweet.
- `get_balance`: Check the remaining credit balance for free.

## FAQ

### How does pricing work?

Prepaid credit packs start at $10. One credit buys a tweet or profile, and empty results and errors are free.

### Can it post or like?

No. All tools are read-only and there are no write endpoints.

### How do I connect Claude Code?

Run claude mcp add --transport http xdataapi https://api.xdataapi.io/mcp.

### What if my client cannot open a browser?

Send an API key in the x-api-key header or as a Bearer token.

### Is xdataapi: X (Twitter) data free?

No. xdataapi: X (Twitter) data is a paid product.

### How do I add xdataapi: X (Twitter) data to Claude Code?

Run this command in your terminal: claude mcp add --transport http xdataapi https://api.xdataapi.io/mcp

### What are the best alternatives to xdataapi: X (Twitter) data?

The closest alternatives to xdataapi: X (Twitter) data are Scrapling MCP Server, Firecrawl MCP Server, Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP and SearXNG Search.

## Alternatives

- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Firecrawl MCP Server](https://ai-powered.com/mcp/firecrawl-mcp-server): Firecrawl MCP Server is a freemium MCP server for web search and scraping.
- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [SearXNG Search](https://ai-powered.com/mcp/searxng-search): SearXNG Search is an open-source MCP server for web search and scraping.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.

---
Source: https://ai-powered.com/mcp/xdataapi-x-twitter-data
