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.

Twitter (X) MCP servers compared

ServerHow it runsWhat you needCost of reading 1,000 tweets
TwexAPI MCPHosted, Streamable HTTP at api.twexapi.io/mcpA TwexAPI API key~$0.05
xmcp (xdevplatform on GitHub)Self-hosted Python server that turns the X API spec into tools, on 127.0.0.1:8000 by defaultAn X developer app: consumer key and secret, bearer token, OAuth consent in a browser$5.00 at X pay-per-use rates
x-mcp (infatoshi on GitHub)Self-hosted Node server over stdioFive X developer credentials, with Read and Write permission for posting$5.00 at X pay-per-use rates

Self-hosted servers call X’s own API with your developer credentials, so every tool call is billed at X’s pay-per-use rates and some actions depend on your X access level. A hosted server needs no developer account and nothing to run. Checked on 2026-10-28 from each project’s README.

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.

What is the best X (Twitter) MCP server for Claude?

If you want nothing to install and low read costs, use a hosted server such as TwexAPI MCP: add the URL and an API key in Claude Code or Cursor. If your project must run on X’s own API under a developer agreement, self-host xmcp or x-mcp with your X developer keys and pay X’s rates.

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.

Best Twitter (X) MCP Server for Claude, Cursor & AI Agents (2026)