TwitterXAPI
Public X posts, profiles, conversations, followers, search, and trends for AI agents through eight hosted MCP tools.
Hosted MCP Server
npx add-mcp 'https://twitterxapi.com/api/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
Add one HTTP server.
Paste this configuration into an MCP-compatible client, then replace the placeholder with your customer API key.
{
"mcpServers": {
"twitterxapi": {
"type": "http",
"url": "https://twitterxapi.com/api/mcp",
"headers": {
"Authorization": "Bearer tx_live_..."
}
}
}
}
Tools your agent can call
search_x
Search public posts, accounts, and trend pages.
get_x_user
Read a profile by username or ID, including its About data.
get_x_user_timeline
Fetch an account's posts, replies, or media.
get_x_user_network
Page through followers, following, and subscriptions.
get_x_post
Read post details, replies, threads, and retweeters.
get_x_list
Fetch posts or members from a public list.
get_x_trends
Read category-based trend pages.
get_x_community
Read community information, posts, members, and moderators.
One page at a time, with a cursor for the next.
Collection tools return one upstream page per call. Use the continuation cursor to chain requests without guessing where the next page begins.
Tool text uses compact Contentful JSON to keep model context small. structuredContent.data carries the Moderate form, including IDs and cursors, for reliable follow-up calls.
Raw X responses and queued exports stay on the REST API and are not exposed through MCP.