X/Twitter MCP Server

A Model Context Protocol (MCP) server that provides unofficial X/Twitter API access through browser automation using Playwright. This server enables AI agents and applications to interact with…

Local serverstdioMIT

What is the X/Twitter MCP Server?

X/Twitter MCP Server is an MCP project maintained in the barresider/x-mcp repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that provides unofficial X/Twitter API access through browser automation using Playwright. This server enables AI agents and applications to…”. Read the project documentation for the complete scope.

Installation

The documented npm package is @barresider/x-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares TWITTER_USERNAME, TWITTER_PASSWORD. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

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

How to install the X/Twitter MCP Server

{
  "mcpServers": {
    "x-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@barresider/x-mcp"
      ],
      "env": {
        "TWITTER_USERNAME": "your_twitter_username",
        "TWITTER_PASSWORD": "YOUR_TWITTER_PASSWORD"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
TWITTER_USERNAMEDeclared in the maintainer’s client configuration.Check documentation
TWITTER_PASSWORDDeclared in the maintainer’s client configuration.Check documentation