X MCP Server

Browser-native AI agents for X (Twitter): multi-account, MCP-ready, no X API key required.

Local serverstdioPython

What is the X MCP server?

Browser-native AI agents for X (Twitter): multi-account, MCP-ready, no X API key required. That is what the x mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

x-use drives a real, stealth-hardened browser instead of the paid X API. It posts, replies, searches, and engages across as many accounts as you configure, writes content with your own LLM, and exposes everything as MCP tools, so Claude Desktop, Claude Code, Cursor, and other MCP clients can run your X presence directly.

They are the same project. twitter-automation-ai was renamed to x-use for the v2 relaunch, which added the MCP server, the x-use CLI, draft mode, and the PyPI package. Old URLs still redirect, and stars, forks, and issues came across intact.

The tools it exposes

The server publishes 5 tools. What each one is for:

  • Group — Tools
  • Multi-account — Built-in: per-account config, cookies, proxies
  • Proxies — Per-account proxies, named pools, hash/round-robin rotation
  • Stealth — undetected-chromedriver + selenium-stealth, randomized user agents
  • Metrics — Per-account counters + JSONL event logs, readable via MCP

Getting it running

The server ships on npm as skills, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What it needs from you

Configuration is passed through the environment: OPENAI_API_KEY, OPENAI_BASE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Among the browser automation options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. X's toolset — Group, Multi-account, Proxies and 2 more — is a fair guide to whether it matches your workflow. It is maintained by ihuzaifashoukat; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against X's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
GroupTools
Multi-accountBuilt-in: per-account config, cookies, proxies
ProxiesPer-account proxies, named pools, hash/round-robin rotation
Stealthundetected-chromedriver + selenium-stealth, randomized user agents
MetricsPer-account counters + JSONL event logs, readable via MCP

How to install the X MCP server

{
  "mcpServers": {
    "x-use": {
      "command": "npx",
      "args": ["-y", "skills"],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "OPENAI_BASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes
OPENAI_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use X to Group.
  • Use X to Multi-account.
  • Use X to Proxies.

Frequently asked questions

It connects X to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Group, Multi-account, Proxies, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with X directly.