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

SettingValue
Server URLhttps://api.twexapi.io/mcp
TransportStreamable HTTP
Authenticationx-api-key: <your TwexAPI key> (or Authorization: Bearer)
MCP Registry nameio.twexapi/mcp
Server cardhttps://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

ToolWhat it does
exploreSearches the TwexAPI endpoint catalog and returns paths, parameters, examples and whether each call is read-only
twexapi_requestRuns 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

ActionTwexAPI MCPOfficial 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)
Get an API key with 20,000 free CreditsMCP setup guide for each client

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.

Twitter (X) MCP Server for Claude, Cursor & AI Agents | TwexAPI