X-Use - X (Twitter) MCP Server
MCP server by ihuzaifashoukat Community
Connects AI assistants to X (Twitter) for profile and post research, inbox reads and reviewed publishing. It runs locally through a browser session and does not need an official X API key. It suits people who want an MCP client to work with their own X account.
Install X-Use - X (Twitter) MCP Server
Built from the published package, never by AI.
claude mcp add x-use-x-twitter-mcp-server -- uvx x-use-mcpRun in your terminal. Add --scope user to use it in every project.
Step-by-step: install X-Use - X (Twitter) MCP Server in Claude Code
{
"mcpServers": {
"x-use-x-twitter-mcp-server": {
"args": [
"x-use-mcp"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install X-Use - X (Twitter) MCP Server in Claude Desktop
{
"mcpServers": {
"x-use-x-twitter-mcp-server": {
"args": [
"x-use-mcp"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
Step-by-step: install X-Use - X (Twitter) MCP Server in Cursor
{
"servers": {
"x-use-x-twitter-mcp-server": {
"args": [
"x-use-mcp"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
Step-by-step: install X-Use - X (Twitter) MCP Server in VS Code
codex mcp add x-use-x-twitter-mcp-server -- uvx x-use-mcpStep-by-step: install X-Use - X (Twitter) MCP Server in Codex
{
"mcpServers": {
"x-use-x-twitter-mcp-server": {
"args": [
"x-use-mcp"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install X-Use - X (Twitter) MCP Server in Antigravity CLI
gemini mcp add x-use-x-twitter-mcp-server uvx x-use-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
Step-by-step: install X-Use - X (Twitter) MCP Server in Gemini CLI
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the x-use-x-twitter-mcp-server block.
About
x-use is an open-source Python MCP server and CLI for X (Twitter). It connects clients such as Claude, Codex, Cursor and Windsurf to profile research, inbox management and reviewed publishing. It uses your authenticated browser session and supports multiple accounts. The server runs locally without official X API credentials.
Drafts are staged and shown with their exact text before publishing. Draft mode is on by default for ordinary publishing, and message drafts, follows and thread starts need individual approval. Local records cover leads, opt-outs and campaign drafts. Version 3.2.0 provides 82 tools, seven prompts and seven bundled skills. The project is aimed at users who want their AI assistant to research, triage and publish on X with a review step.
Written from the project's README and checked against it.
Tools it gives your assistant
get_profile_contextReads visible profile context for research before replying.search_tweetsSearches visible posts on X.get_threadReads bounded thread context for a post.get_inboxInspects visible inbox and request folders.get_notificationsReads notifications from the account.prepare_replySupplies context for a reply draft.reply_to_tweetStages a reply draft under the default policy.prepare_threadStages a multi-post thread with resumable progress.approve_draftApproves a staged draft when authorized.prepare_outreachPrepares individual outreach messages for review.
What you need
- Python 3.11 or newer
- Chromium, installed through patchright
- An X account with session cookies exported to a local JSON file
- Windows, macOS or Linux
- An optional OpenAI-compatible LLM key for server-side text generation
| Setting | Needed | What it is |
|---|---|---|
X_Environment variable | Optional | Absolute private directory for configuration, cookies, action journals and account state. Keep this stable across MCP client working directories. |
OPENAI_Environment variable, secret | Optional | Optional. Only needed for server-side text generation ('auto' replies, composite draft tools, background automation). Interactive MCP use is keyless because the calling agent writes the text. |
OPENAI_Environment variable | Optional | Optional. OpenAI-compatible endpoint, for example https://openrouter.ai/api/v1 or http://localhost:11434/v1 for Ollama. Defaults to api.openai.com. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Research this profile and summarize its recent visible posts.
- Triage my X inbox and list unread conversations that need a reply.
- Draft a reply to this post and show me the exact text before publishing.
Good to know
- Browser reads are bounded by visible X content, so followers, inboxes and threads are not complete exports.
- Opening conversations or notifications can change their native read state.
- Encrypted inboxes may need the account owner's PIN again after a browser restart.
- Per-message editing and deletion, attachment sending and group administration are not implemented.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to X-Use - X (Twitter) MCP Server
All alternatives →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
Compare with Jitsu, Vexa or Linkedin MCP server
X-Use - X (Twitter) MCP Server: common questions
Does x-use require an X API key?
No. It operates visible X pages through a browser authenticated with your session cookies. Optional server-side text generation may need an LLM provider key.
Does x-use send messages automatically?
No. Message drafts require individual approval, and draft mode is enabled by default for ordinary publishing.
Is x-use affiliated with X?
No. The source describes x-use as an independent community project.
How do I install X-Use - X (Twitter) MCP Server?
In Claude Code run claude mcp add x-use-x-twitter-mcp-server -- uvx x-use-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is X-Use - X (Twitter) MCP Server the official server?
X-Use - X (Twitter) MCP Server is a community project by ihuzaifashoukat, not verified by a company domain.
Is X-Use - X (Twitter) MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is X-Use - X (Twitter) MCP Server safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to X-Use - X (Twitter) MCP Server?
Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.
Does X-Use - X (Twitter) MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
