X (Twitter) MCP Server

mcp-x is a Model Context Protocol server written in Go. It exposes the X API v2 to any MCP-compatible client (Claude Desktop, IDE agents, custom LLM apps) as 42 tools covering posts, users, lists…

Local serverstdio

What is the X (Twitter) MCP Server?

mcp-x is an MCP project maintained in the role1776/mcp-x repository. The maintainer describes its purpose as “mcp-x is a Model Context Protocol server written in Go. It exposes the X API v2 to any MCP-compatible client (Claude Desktop, IDE agents, custom…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /absolute/path/to/mcp-x. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
OperatorMeaning
spaceAND
ORexplicit OR
lang:enlanguage
url:example.comlinked domain
conversation_id:123one thread
MessageMeaning
x_posts_search
x_posts_count
x_posts_lookup
x_posts_by_user
x_post_create
x_media_upload

How to install the X (Twitter) MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.