16 X endpoints · MCP
X MCP server
X is where people react in real time, and the official API charges for reading. Through MCP your AI reads profiles, a user’s posts and media, replies and retweeters of a post, followers, trends by country, and X Communities and Lists.
Get an API key63.7% fewer tokens
Across 10 recorded live X responses (2026-11-18), raw platform JSON is ~63k tokens vs ~21k via REST (66.7% fewer) and ~23k through this MCP server (63.7% fewer).
What to ask about X
“What has @username posted this week, and which post got the most engagement?”
Uses x.accounts.detail → x.posts.list, about $0.004 for one call of each
“Summarise the replies to this post: <link>”
Uses x.comments.list, $0.002 a call
“What is trending on X in Japan right now?”
Uses x.trends.hot, $0.002 a call
“What are people discussing in this X Community?”
Uses x.communities.detail → x.community_posts.list, about $0.004 for one call of each
Good to know about X
- Users are looked up by screen name (the @handle without @) or by rest_id.
- Lists and Communities have their own endpoints for posts and members.
Connect
Add this server address in your AI client: https://xtikapi.com/v1/mcp. In ChatGPT, Claude, Claude Code, Codex and Cursor you then sign in here and click Allow; the same address covers X and every other platform. Step-by-step for each client
All 16 X endpoints your AI can call
- X post search API$0.002
x.posts.search· One page of X posts for a search query - X post details API$0.002
x.posts.detail· One X (Twitter) post by ID - X comments API$0.002
x.comments.list· Replies to one X (Twitter) post - X account details API$0.002
x.accounts.detail· An X (Twitter) account profile - X post list API$0.002
x.posts.list· An X account's posts, newest first - X reposters API$0.002
x.retweeters.list· Accounts that reposted an X post - X account followers API$0.002
x.accounts.followers· A page of an X account's followers - X account following API$0.002
x.accounts.following· A page of the accounts an X user follows - X trends API$0.002
x.trends.hot· X trending topics, worldwide or for one country - X media posts API$0.002
x.media.list· Posts with photos or videos from one X account - X community details API$0.002
x.communities.detail· One X community: name, rules, member count - X community posts API$0.002
x.community_posts.list· Posts in an X community - X community members API$0.002
x.community_members.list· Members of an X community - X list posts API$0.002
x.list_posts.list· Posts from the accounts in an X list - X list members API$0.002
x.list_members.list· Accounts in an X list - X list followers API$0.002
x.list_followers.list· Accounts that follow an X list
X questions we answered
- Agent Reach Twitter/X channel stopped working: what changed?
- twikit errors (Cloudflare 403, KEY_BYTE, login 399, rate limits, bans): how do I fix them?
- twscrape errors (404, No account available, XClIdParseError, ct0, bans): how do I fix them?
- How do I convert an X (Twitter) username to its user ID (rest_id)?
- How do I get an X (Twitter) account's follower list, and what is the rate limit?
- How do I get X (Twitter) trending topics for a country through the API?
Questions
Do I need an X developer account or a paid tier?
No. You pay per call here, with no monthly tier.
Can it see who retweeted a post?
Yes, page by page.
What does it cost to use X through MCP?
find and describe are free; each call costs the endpoint's price, $0.002 for every X endpoint. Each question above shows roughly what it costs. You pay only when the platform answers; errors are free, and new accounts get $0.50 of trial credit.
Does X have an official API for this?
The X API is paid. Reading posts needs a paid tier, and how much you can read depends on the tier you buy.