Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 81
  • 187 stars
  • MIT
  • Updated

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-mcp

Run 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

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
SettingNeededWhat it is
X_USE_HOMEEnvironment variableOptionalAbsolute private directory for configuration, cookies, action journals and account state. Keep this stable across MCP client working directories.
OPENAI_API_KEYEnvironment variable, secretOptionalOptional. 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_BASE_URLEnvironment variableOptionalOptional. 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

A

No 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 →

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.

X-Use - X (Twitter) MCP Server Install

Add to stack

Loading.