MCP
X (Twitter) MCP server: live reads and account insights
Updated by the Handles API team
Live X tools: timelines, search, followers, replies, trends
The live tools read X at request time, so an answer reflects the platform right now. Each call costs 2 credits and returns a page of results with a cursor for the next page.
| Tool | What it does | Credits |
|---|---|---|
handles_x_user | Live X (Twitter) profile of one user, as X reports it right now: counters, verification flags, join date, images. | 2 (live) |
handles_x_user_tweets | Live timeline of one X account, newest first, with engagement counts per post. | 2 (live) |
handles_x_search_tweets | Search X posts with X advanced-search syntax (for example: from:nasa filter:media min_faves:1000). product picks Latest, Top or Media. | 2 (live) |
handles_x_search_users | Search X accounts by name, handle or bio words, live, as X's people search returns them. | 2 (live) |
handles_x_user_followers | Live list of an X account's followers, newest first, with their profile data. | 2 (live) |
handles_x_tweet | One X post by id, live: text, author, media, and like, repost, reply, quote and view counts. | 2 (live) |
handles_x_tweet_replies | Direct replies to one X post, live, with their authors and engagement. | 2 (live) |
handles_x_trends | What is trending on X right now for one location, by Yahoo WOEID (1 = worldwide, 23424977 = United States, 23424975 = United Kingdom). | 2 (live) |
handles_x_search_tweets takes X's own advanced-search syntax, for example from:nasa filter:media min_faves:1000, and a product of Latest, Top or Media. That makes it a good fit for brand monitoring: see social listening on X for the polling version.
Example: what did an account post, and what worked
The assistant maps a plain question to one tool call. The response below is the real body that call returns, captured from the live API.
Show me NASA's two latest posts on X with their likes, reposts and views.
{
"name": "handles_x_user_tweets",
"arguments": {
"handle": "nasa",
"limit": 2
}
}curl "https://api.handlesapi.com/v1/x/users/nasa/tweets?limit=2" \
-H "Authorization: Bearer $HANDLES_API_KEY"const res = await fetch("https://api.handlesapi.com/v1/x/users/nasa/tweets?limit=2", {
headers: { Authorization: `Bearer ${process.env.HANDLES_API_KEY}` },
});
const { data, meta } = await res.json();import os
import requests
res = requests.get(
"https://api.handlesapi.com/v1/x/users/nasa/tweets?limit=2",
headers={"Authorization": f"Bearer {os.environ['HANDLES_API_KEY']}"},
timeout=30,
)
body = res.json(){
"data": {
"tweets": [
{
"tweet_id": "2125915027819446402",
"url": "https://x.com/NASA/status/2125915027819446402",
"text": "LIVE: Watch the Progress 97 spacecraft arrive and dock to the @space_station after a two-day trip...",
"created_at": "2026-11-26T11:30:14+00:00",
"lang": "en",
"source": null,
"likes": 833,
"retweets": 151,
"replies": 73,
"quotes": 16,
"bookmarks": 50,
"views": 276360,
"is_reply": false,
"is_retweet": false,
"is_quote": false,
"conversation_id": "2125915027819446402",
"in_reply_to_tweet_id": null,
"quoted_tweet_id": null,
"retweeted_tweet_id": null,
"hashtags": [],
"mentions": [
"Space_Station"
],
"links": [
"https://x.com/i/broadcasts/2onVBonVMMWjaV"
],
"media": [],
"author": {
"user_id": "11348282",
"handle": "NASA",
"display_name": "NASA",
"bio": "Making the seemingly impossible, possible. ✨",
"followers": 92086892,
"following": 115,
"tweets": 74588,
"media_count": 28267,
"likes_given": 17125,
"is_verified": false,
"is_blue_verified": true,
"is_protected": false,
"location": "Pale Blue Dot",
"avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
"header_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
"created_at": "2007-12-19T20:20:32+00:00",
"profile_url": "https://x.com/NASA"
}
}
],
"has_next_page": false
},
"meta": {
"page": {
"limit": 2,
"next_cursor": null,
"count": 2
},
"source": "live:xlookup",
"request_id": "req_503bc38c7610cc00",
"generated_at": "2026-11-26T13:54:58.874Z",
"took_ms": 1696
}
}Real response from the live API, captured Nov 26, 2026. Long strings and arrays are shortened.
The assistant reads the counts from the JSON and answers in prose. The same data over REST is the X API; the tool is a wrapper over that endpoint, so there is no separate data to learn.
Catalog insights and checks
The catalog tools answer questions that need history, not the latest post. handles_insights_x_account returns a dossier in one call: profile, engagement rates, posting volume, best posts and where the account sits against peers. They cost 1 credit, except the checks and calculators, which sample live data.
| Tool | What it does | Credits |
|---|---|---|
handles_insights_x_account | Intelligence dossier for one X account in a single call: catalog profile, engagement rates, posting volume, best posts, virality patterns and where its engagement lands against peers. | 1 |
handles_x_top_tweets | The best-performing posts the engine keeps for one X account (up to 20), sortable by engagement, likes, retweets, replies or recency. 1 credit per call. | 1 |
handles_x_compare | Side-by-side metrics for 2 to 10 X accounts in one call: audience, engagement rates, posting volume and growth, ranked on the metric you pick. 1 credit per call. | 1 |
handles_x_audience_overlap | How much two X accounts share their audience: shared followers, overlap percentages each way and examples of shared followers. 1 credit per call. | 1 |
handles_x_similar_accounts | X accounts whose followers overlap most with one account: lookalikes for competitor research, partnerships and audience expansion. 1 credit per call. | 1 |
handles_tool_shadowban_check | Check an X account for visibility filtering (search ban, search suggestion ban, reply deboosting) with a clean, flagged or inconclusive verdict per check. | 2 (live) |
handles_tool_follower_audit | Audit a sample of an X account's followers for fake, inactive and low-quality accounts, with the share of each and the signals behind it. | 2 (live) |
handles_tool_valuation | Estimate what an X account is worth in dollars: a low, expected and high range with the multiplier behind each factor (followers, engagement, account age, authority, activity). | 2 (live) |
handles_tool_engagement_calculator | Compute the true engagement rate of an X account from its recent posts: per-interaction rates, size-adjusted benchmarks, best and worst post and recent trend. | 2 (live) |
The server includes an audit_x_account prompt that runs the dossier, the shadowban check and the follower audit in order. handles_batch runs up to ten calls in parallel, which suits comparing several competitors in one question.
What the X MCP server does not do
- It is read-only. No posting, replying, liking, following or direct messages, and it never acts for an X user.
- It reads public data only. Protected accounts and private posts are not returned.
- Live reads take 2 to 25 seconds and can return 503 under load. Catalog reads are fast.
- The follower graph from the catalog is partial: it holds edges between accounts already in the catalog. The live follower list is a separate tool.
Compared with the official X API
The official X API is pay-per-use: $0.005 per post read and $0.010 per user read, as of November 2026. Handles API bills per call instead of per resource returned.
| Official X API | Handles API MCP server | |
|---|---|---|
| Billing unit | Per resource returned: a post, a user | Per tool call: 2 credits live, 1 catalog |
| Per 1,000 live calls | Not comparable: priced per resource | $3.87 on Starter down to $1.33 on Scale |
| Post, reply, like, DM | Yes, with an authorized app | No, read-only |
| Your own account data | Owned Reads at $0.001 each | Not the use case |
| Setup | Developer app on console.x.com and prepaid credit | OAuth sign-in or an API key |
Choose the official API whenever the job is to act on X. Choose this server when an assistant needs to read it. The two also combine: read here, post there.
Connect it to your assistant
The server URL is https://api.handlesapi.com/mcp. A client that supports remote MCP servers connects with OAuth: it opens a Handles API sign-in page, you approve the connection, and the assistant is ready to answer questions about X accounts, posts and trends. You can revoke the connection in the dashboard under API keys, Connected apps. A client without OAuth support takes your API key as a request header instead.
claude mcp add --transport http handles https://api.handlesapi.com/mcpRun /mcp inside Claude Code afterwards and follow the sign-in in your browser. To use a key instead, add a header:
claude mcp add --transport http handles https://api.handlesapi.com/mcp \
--header "Authorization: Bearer hk_live_..."- Claude and Claude Code: custom connector with OAuth, or one command.
- ChatGPT: custom MCP server with OAuth.
- Cursor and VS Code: a short JSON file.
Every tool call spends the same credits as the matching REST request, and the free trial is a one-time balance with no card. Setup details for all clients are in the MCP server docs, plans are on the pricing page, and you can create a free key in a minute.
Related pages
The X API page lists every X endpoint with its credit cost, the Twitter scraper guide compares ways to get X data, and the free shadowban checker runs one of these tools without code. Other networks use the same connection: LinkedIn, YouTube, TikTok. Everything is on the MCP overview, with plans on the pricing page.
Frequently asked questions
What can an X MCP server do for me?
Can the X MCP server post tweets or send direct messages?
Is this the official Twitter MCP server?
How much does an X tool call cost?
Why does a live X call take several seconds?
Can the X tools post, like or send direct messages?
Connect it to your assistant
The free trial gives you 100 credits for every endpoint, once, with no card. Paid plans start at $29 a month.