getxapi-mcp
OfficialThis server provides comprehensive read and write access to the Twitter/X API. The main capabilities are:
Search & Discovery: Search tweets with advanced operators, search users by keyword/username/topic, and search your own bookmarks.
Tweet Operations: Get tweet details, threads, replies, and retweeters; post tweets (text, images, videos, reply, quote); like, retweet, bookmark/unbookmark; delete tweets.
User & Profile Operations: Get user info (profile, metadata, about, affiliates); get followers and following lists (standard, v2 with canDM, verified); get user tweets, tweets & replies, complete threads, media, mentions, likes; check follow relationships and mutual followers; follow/unfollow; update profile, avatar, and banner.
Articles (Long-form): Create, update, publish/unpublish, delete, list your articles (drafts or published), and get article content.
Direct Messages: List conversations (inbox, requests, spam), get DM conversation history, send direct messages.
Timeline & Bookmarks: Get the home timeline (For You/Following), list and search bookmarks.
Lists & Communities: Get members of a public list, join X communities.
Account & Authentication: Log into an X account (with optional 2FA) to enable write actions; upload media (image, video, GIF); get GetXAPI account info and payment/top-up history.
GetXAPI MCP: Twitter/X API for Claude, Cursor and any MCP client
The official GetXAPI MCP server. Give your AI assistant direct access to the Twitter/X API: search tweets, look up users, read replies and followers, and post tweets, send DMs, manage articles, and more, through one Model Context Protocol server.
Unlike read-only Twitter MCP servers, GetXAPI MCP can act: post tweets, reply, like, retweet, send DMs, and publish articles, not just read.
→ Get a free API key at getxapi.com · API docs · Pricing ($0.001/call, $0.05 per 1,000 tweets)
Install
Add it to your MCP client config (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"getxapi": {
"command": "npx",
"args": ["-y", "@getxapi/mcp@latest"],
"env": {
"GETXAPI_KEY": "get-x-api-..."
}
}
}
}Get your GETXAPI_KEY from your GetXAPI dashboard. That's
all the read tools need.
Or via the Claude Code CLI:
claude mcp add getxapi -- npx -y @getxapi/mcp@latestRelated MCP server: x-mcp
What you can do
Once installed, just ask your assistant naturally:
"Find Elon Musk's latest tweets" "Search tweets about OpenAI from the last week" "Who are @vercel's verified followers?" "Get the replies to this tweet: 1799…" "Post 'shipping 🚀' to my X account" (requires X auth, see below)
Read vs. write tools
Needs | Examples | |
Read |
| search tweets, user info, followers/following, replies, mentions, user tweets, lists |
Write / private |
| post / reply / like / retweet / bookmark / delete tweet, send DM, read DMs/timeline/bookmarks, publish articles, update profile |
Enabling write tools
Write and private tools act on a real X account, so they need that account's auth. Two ways to provide it:
Option A, log in through the assistant (convenient):
"Log in to my X account"
The assistant calls the x_login tool with your credentials and keeps the
session for write tools.
⚠️ Your X password is passed as tool arguments, so it transits the AI model's
context. For sensitive accounts, prefer Option B.
Option B, set credentials in config (recommended for sensitive accounts):
{
"mcpServers": {
"getxapi": {
"command": "npx",
"args": ["-y", "@getxapi/mcp@latest"],
"env": {
"GETXAPI_KEY": "get-x-api-...",
"X_AUTH_TOKEN": "...",
"X_CT0": "...",
"X_TWID": "...",
"X_PROXY": "http://user:pass@host:port"
}
}
}
}X_CT0, X_TWID, and X_PROXY are optional. X_AUTH_TOKEN alone is enough
for most write tools; the others improve reliability on some accounts.
Your X password never touches the model. The credential fields are never shown to the AI. The server injects them only into the calls that need them.
How billing works
Every tool call is a normal GetXAPI API call authenticated with your
GETXAPI_KEY, metered exactly like direct API usage. No separate MCP billing.
See pricing.
Links
🌐 Website: getxapi.com
📚 API docs: docs.getxapi.com
💳 Pricing: getxapi.com/pricing
🔑 Get an API key: getxapi.com
GetXAPI is an independent third-party API for developers and researchers. Not affiliated with, endorsed by, or sponsored by X Corp.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables AI models and applications to interact directly with Twitter/X, providing capabilities to create posts, reply to tweets, retrieve user data, and manage account actions.1011MIT
- FlicenseAqualityDmaintenanceAn MCP server that provides AI agents with full access to the X (Twitter) API for posting, searching, and managing engagement through natural language. It supports comprehensive tools for tweet management, media uploads, and account analytics across multiple MCP-compatible clients.1551
- AlicenseAqualityDmaintenanceMCP server for Twitter/X enabling AI agents to search, post, reply, and engage with tweets.14131MIT
- AlicenseBqualityDmaintenanceMCP server for interacting with the X platform (Twitter) via MCP clients like Claude, Cursor AI, and Windsurf AI.2076MIT
Related MCP Connectors
X (formerly Twitter) posts, profiles, and search for AI agents. Free key, self-minted, no signup.
FastMCP server for posting formatted content to X (Twitter) — Tollbooth-monetized, DPYC-native
Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/getxapi/getxapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server