x
This is an MCP server for the X Platform
claude mcp add --transport stdio siddheshutd-x-mcp-server node /ABSOLUTE/PATH/TO/PARENT/FOLDER/x-mcp-server/build/index.js \ --env X_API_KEY="your-x-api-key" \ --env X_ACCESS_TOKEN="your-x-access-token" \ --env X_API_KEY_SECRET="your-x-api-key-secret" \ --env X_ACCESS_TOKEN_SECRET="your-x-access-token-secret"
How to use
This MCP server provides an interface to interact with the X platform via MCP clients such as Claude, Cursor AI, Windsurf AI, and others. After building the project, run the server locally and configure your MCP clients to point to the local MCP server endpoint using the provided command and environment variables. The server expects the X API credentials (three tokens: API key, API key secret, access token, and access token secret) to authenticate requests to X services. Once configured, MCP clients can send model-context protocol requests to the X platform through this server, enabling streamlined interactions and context sharing between tools and the X platform.
How to install
Prerequisites:
- Node.js >= 18.0.0
- npm >= 8.0.0
- X Developer API keys/tokens
Installation steps:
- Clone the repository: git clone <repository-url>
- Navigate into the project directory: cd x-mcp-server
- Install dependencies: npm install
- Build the project: npm run build This will compile the TypeScript source (index.ts) and place the output in the build directory.
- Prepare configuration:
- Obtain your X API credentials: X_API_KEY, X_API_KEY_SECRET, X_ACCESS_TOKEN, X_ACCESS_TOKEN_SECRET
- Set up your MCP client configurations to point to the server as described in the README (Claude, Cursor AI, Windsurf AI, etc.).
Additional notes
Notes and tips:
- Ensure your X API credentials have the necessary permissions for your use case; the README references Twitter/X API access guidelines and keys.
- The server relies on environment variables for credentials; keep these secrets secure and do not commit them to version control.
- If you encounter rate limit issues from the X APIs, review the rate limits at the X developer portal and implement client-side pacing as needed.
- For Claude and Windsurf AI configurations, use the sample config blocks provided in the README and replace placeholders with absolute paths to the built index.js and your credentials.
- If you update dependencies or rebuild, ensure the path in the MCP client configurations still points to build/index.js.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud