Skip to content

X Use

MCP server for X (Twitter). Research profiles, read inboxes, and review posts, replies and outreach with AI clients. Python, multi-account, no X API key required.

Install: npx skills add ihuzaifashoukat/x-use

Works with Claude Code, Codex, Cursor · 181 GitHub stars

Install

$npx skills add ihuzaifashoukat/x-use

Install command taken from the project's README or registry entry. Always review code before running it.

x-use — MCP server for X (Twitter)

Connect your AI client to X research, inbox reads, and reviewed publishing.

x-use is an open-source Python Model Context Protocol (MCP) server and CLI for X (Twitter). Connect Claude, Codex, Cursor or another local MCP client to profile research, inbox management and reviewed publishing. It uses your authenticated browser session, supports multiple accounts and runs locally without official X API credentials.

Quickstart · Documentation · Tool reference · Discussions · Contribute

What can you do with x-use?

  • Research before replying: search X, inspect a profile, read posts and bounded thread context, and prepare a relevant reply.
  • Work through your inbox: inspect visible conversations, unread messages, requests and notifications; prepare individual messages and supported conversation actions for review.
  • Publish with context: stage posts or multi-post threads, inspect the exact text, and approve the draft when it is ready.
  • Organize outreach locally: maintain leads, opt-outs and campaign drafts with per-account limits and delivery tracking.

Your AI client supplies the reasoning and text. An optional OpenAI-compatible LLM configuration supports server-side generation; ordinary explicit-text MCP workflows do not need that extra key.

Quickstart

Requires Python 3.10+ and Chromium. The CI matrix covers Python 3.10–3.14 on Windows, macOS and Linux.

Version 3.2.0 provides 82 tools for research, inbox management, reviewed publishing and account operations. Upgrade the package and restart your MCP client to load the current tools.

1. Install the server and browser

python -m pip install --upgrade x-use-mcp
python -m patchright install chromium

2. Choose a private data directory and initialize

Windows PowerShell:

$env:X_USE_HOME = "$env:LOCALAPPDATA\x-use"
x-use init
x-use doctor

macOS / Linux:

export X_USE_HOME="$HOME/.local/share/x-use"
x-use init
x-use doctor

The wizard configures your account and imports your own X session cookies from a local JSON export. Keep cookies and inbox PINs private. Use the same absolute data directory in your client configuration below; shell environment settings alone do not configure a desktop client.

3. Connect your MCP client

Use this stdio configuration in clients that accept an mcpServers object, such as Claude Desktop:

{
  "mcpServers": {
    "x-use": {
      "command": "/absolute/path/to/x-use",
      "args": ["mcp"],
      "env": {
        "X_USE_HOME": "/absolute/path/to/x-use-data"
      }
    }
  }
}

Replace both paths. On Windows, use the installed x-use.exe path and forward slashes in JSON, for example C:/Users/you/AppData/Local/x-use for the data directory. Locate the executable with Get-Command x-use in PowerShell or command -v x-use on macOS/Linux.

Claude Code, Codex, Cursor and Windsurf have their own registration locations or commands. Follow the client setup instructions, then reload the client if required. Ask it to call list_accounts before starting browser work.

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+105 this week

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related