MCP · Updated 27 November 2026
X (Twitter) MCP server: what's available in 2026
Is there an official X MCP server?
Yes. X runs a hosted MCP server at https://api.x.com/mcp, documented on docs.x.com. It speaks Streamable HTTP and uses OAuth 2.0 with PKCE. Because it doesn't support dynamic client registration, you first create an app in the X Developer Console and give your MCP client that app's Client ID. For read-only use without acting as you, you can send an app-only Bearer token instead, and adding ?read_only=true to the URL limits any connection to read tools.
X also hosts a docs server at https://docs.x.com/mcp for searching the API documentation, and publishes xmcp, an open-source server you run locally against the same API.
What the X API costs behind it
The official servers call the X API with your developer app, so you pay X for what they read and write. X's pricing page describes pay-per-use credits with no subscription. Rates on 27 November 2026:
- Followers or following: $0.01 per record read
- Users: $0.01 per user read
- Posts: $0.01 per post read, capped at 3 million post reads per monthly billing cycle
- Owned reads: $0.00 per record when your own app reads your own data, including your followers and following
For a sense of scale: reading the 4,026 followers and following of someone else's account comes to about $40.26 at the standard rate, or about $4.03 for your own account as an owned read. Those lists don't say who lives where, so mapping them by city is still up to you. X notes that prices can change; the Developer Console has the current rates.
X MCP servers you can use today
Checked against each project's own README and docs on 27 November 2026.
X MCP (hosted by X)
Official. Hosted by X at api.x.com/mcp.
- What it does
- Searches posts (full archive), users and news, looks up users and their posts, timeline and mentions, manages bookmarks, reads trends and drafts or publishes Articles.
- How it gets in
- Streamable HTTP with OAuth 2.0. There is no dynamic client registration, so you create your own app in the X Developer Console and give your client its Client ID. An app-only Bearer token also works, read-only and without acting as you.
- Your account
- Official API, with the scopes you grant. Calls are billed to your X developer account.
xdevplatform/xmcp
Open source, in X's xdevplatform GitHub organization.
- What it does
- A local server that turns the X API's OpenAPI spec into tools, including
getUsersFollowersandgetUsersFollowing. You can allowlist only the tools you want. - How it gets in
- Your X developer app's keys and tokens, with an OAuth 1.0a consent step in the browser at startup. It runs on your machine; remote clients need a tunnel.
- Your account
- Official API. Calls are billed to your X developer account.
EnesCinr/twitter-mcp
Open source.
- What it does
- Three tools: post (with replies and images), search posts and read your home timeline.
- How it gets in
- Your own X API key, secret and access tokens from the developer portal.
- Your account
- Official API. Calls are billed to your X developer account.
rafaljanicki/x-twitter-mcp-server
Open source.
- What it does
- Profiles, followers and following lists, posting, deleting and liking, search, trends, bookmarks and timelines.
- How it gets in
- X API v2 with your own API keys and tokens. Bookmarks also need an OAuth 2.0 user token.
- Your account
- Its README says it avoids username and password logins to lower the risk of suspension.
gkydev/twitter-mcp-server
Open source. Built on the unofficial twikit library.
- What it does
- Timeline, search, posting, likes, reposts, follows and direct messages.
- How it gets in
- Your logged-in session: you copy the
ct0andauth_tokencookies from your browser, and the model passes them in each tool call. - Your account
- Its README warns that unofficial APIs carry risks including account restrictions or suspension.
Servers built on the X API act with the permissions of your developer app. Cookie-based servers act as your logged-in account outside the API, and their authors warn about restrictions and suspension.
What City Contacts' MCP server does
City Contacts answers one question: who do you know in a city? It maps the followers and following of any public X handle by where they live, mutuals first, and adds your LinkedIn connections if you import them.
- No X login and no X API key from you. Give it a handle, yours or any public account, and it fetches the lists for you.
- Locations are resolved for you. Free-text profile locations like “Lisboa” or “SF” are matched to real cities, so the answer comes back by city.
- It does not post, reply, like, send DMs, read timelines or search posts.
Tools
list_cities: list citiesget_city_contacts: get contacts in a citysync_handle: sync an x handle (starts a paid background job)import_linkedin_connections: import linkedin connections (starts a paid background job)get_sync_status: get sync status
sync_handle costs 100 credits per started 1,000 contacts (minimum 100), up to 25,000 per sync, and uses one of your plan's tracked-handle slots. The same 4,026 contacts as above come to 500 credits, about $5.00, with locations already matched to cities.
Connect it
Create an API key in Settings, API & MCP, then add this to your client's MCP config. The server speaks Streamable HTTP and takes your key as a Bearer token. Client steps: Claude and Cursor.
{
"mcpServers": {
"city-contacts": {
"type": "http",
"url": "https://citycontacts.app/api/mcp",
"headers": {
"Authorization": "Bearer cc_live_YOUR_KEY"
}
}
}
}Ask it
I'm in Lisbon next week. Who do I know there?
list_cities{"search":"Lisbon"}get_city_contacts{"city":"lisbon-pt"}You know 41 people in Lisbon: 12 mutuals, 17 followers, 9 people you follow and 3 LinkedIn connections. Start with your mutuals, Marta Silva (@martabuilds) and João Pereira (@jp_design). Inês Costa, a product lead you're connected to on LinkedIn, is there too.
What it costs
| Call | Cost |
|---|---|
| List cities | Free |
| Read 10 contacts | 1 credit |
| Sync 1,000 X contacts | 100 credits |
| Look up 1,000 new LinkedIn profiles | 500 credits |
Packs: $5 for 500 · $10 for 1,000 · $25 for 2,500. Credits never expire.
Looking for LinkedIn instead? See LinkedIn MCP servers.
Questions
Is there an official X MCP server?
Yes. X hosts one at https://api.x.com/mcp for its API, plus a documentation server at https://docs.x.com/mcp. X also publishes xmcp, an open-source server you run yourself. Both API servers need your own X developer app.
What does the X API cost to back an MCP server?
X bills per use from prepaid credits. On 27 November 2026 its pricing page listed $0.01 per follower or following record read, $0.01 per user read and $0.01 per post read, with $0.00 per record when your own app reads your own followers or following. X says prices can change, so check the Developer Console.
Do I need an X developer account for City Contacts?
No. You don't sign in to X, create an X app or paste an X key. You give City Contacts a public handle and it fetches the follower and following lists for you, paid with City Contacts credits or your plan.
Can City Contacts post or send DMs on X?
No. It has no tools for posting, replies, likes, DMs, timelines or post search. It only maps the people around a handle by city.