Skip to content
appsgit

X-Use - X (Twitter) MCP Server

X-Use - X (Twitter) MCP Server is an MCP server that adds web browsing tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Research X (Twitter), read inboxes and review publishing through MCP. It has 179 GitHub stars, is released under the MIT license and runs locally with uvx x-use-mcp.

github.com/ihuzaifashoukat/x-use (opens in a new tab)

Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error

Install X-Use - X (Twitter) MCP Server

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "x-use-x-twitter-mcp-server": {
      "command": "uvx",
      "args": [
        "x-use-mcp"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env OPENAI_API_KEY=your-value --transport stdio x-use-x-twitter-mcp-server -- uvx x-use-mcp

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "x-use-x-twitter-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "x-use-mcp"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "openai_api_key",
      "description": "OPENAI_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "x-use-x-twitter-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "x-use-mcp"
      ],
      "env": {
        "OPENAI_API_KEY": "${input:openai_api_key}"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
X_USE_HOMENoAbsolute private directory for configuration, cookies, action journals and account state. Keep this stable across MCP client working directories.
OPENAI_API_KEYsecretNoOptional. Only needed for server-side text generation ('auto' replies, composite draft tools, background automation). Interactive MCP use is keyless because…
OPENAI_BASE_URLNoOptional. OpenAI-compatible endpoint, for example https://openrouter.ai/api/v1 or http://localhost:11434/v1 for Ollama. Defaults to api.openai.com.

About X-Use - X (Twitter) MCP Server

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.

  • twitter-automation
  • ai-agents
  • browser-automation
  • claude-desktop
  • cursor
  • mcp-server
  • model-context-protocol
  • python
  • twitter
  • x-twitter

FAQ

X-Use - X (Twitter) MCP Server FAQ

Still curious? Email info@appsgit.com.

How do I install the X-Use - X (Twitter) MCP Server MCP server?

Add the command uvx x-use-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is X-Use - X (Twitter) MCP Server free?

The server is open source under the MIT license, so running it is free. It does not declare any required API key.

Is X-Use - X (Twitter) MCP Server actively maintained?

The most recent commit was on Oct 25, 2026. The latest release is v3.2.0, published Oct 13, 2026. appsgit only lists MCP servers with a commit in the last six months.