MCP server
Twitter (X) MCP Server for AI Agents
Prices checked:
Quick Answer
TwexAPI runs a hosted Twitter (X) MCP server at https://api.twexapi.io/mcp. Add it to Claude, Cursor, VS Code or any client that supports Streamable HTTP, authenticate with your TwexAPI key in the x-api-key header, and your agent can search tweets, read profiles and followers, and post. Each call costs the normal API rate, about $0.05 per 1,000 reads.
Connection details
| Setting | Value |
|---|---|
| Server URL | https://api.twexapi.io/mcp |
| Transport | Streamable HTTP |
| Authentication | x-api-key: <your TwexAPI key> (or Authorization: Bearer) |
| MCP Registry name | io.twexapi/mcp |
| Server card | https://api.twexapi.io/.well-known/mcp.json |
In clients that read an mcpServers JSON config, add a server named twexapi with type "http", the URL above and an x-api-key header. Step-by-step configs for each client are in the MCP docs.
Tools the server exposes
| Tool | What it does |
|---|---|
| explore | Searches the TwexAPI endpoint catalog and returns paths, parameters, examples and whether each call is read-only |
| twexapi_request | Runs an authenticated TwexAPI call with the path that explore returned |
Two tools keep the agent’s context small: it looks up the right endpoint first, then calls it, instead of loading dozens of tool definitions.
What your agent can do
- Search tweets with advanced search operators, by keyword, account or date.
- Read timelines, profiles, followers and following lists.
- Pull replies, quotes and retweeters of a tweet, and trends by country.
- Read long X Articles as Markdown.
- Post, reply, like and send DMs from your own account, after you add its session cookie.
Cost
| Action | TwexAPI MCP | Official X API |
|---|---|---|
| Read 1,000 tweets | ~$0.05 | $5.00 |
| Read 1,000 profiles | ~$0.05 | $10.00 |
| Create a post | $0.0005 | $0.015 ($0.200 with a link) |
FAQ
Which clients work with the Twitter MCP server?
Claude Code, Cursor, VS Code, Windsurf, Codex CLI and OpenCode connect directly over Streamable HTTP with an API key header. Claude Desktop connects through a remote bridge.
Do I need an X developer account?
No. You only need a TwexAPI API key. New accounts get 20,000 free Credits, about 4,000 reads.
Is the MCP server free?
Connecting is free. Each tool call is billed like the matching REST call, so the free Credits cover your first few thousand reads.
Is TwexAPI affiliated with X?
No. TwexAPI is an independent third-party provider of public social data and is not affiliated with or endorsed by X Corp.
Related Guides
Sources
Prices change. Confirm current rates on each provider’s pricing page before you buy. TwexAPI is an independent provider and is not affiliated with or endorsed by X Corp.