x-mcp-server
This is an MCP server for the X Platform
Documentation
X MCP Server
This tool is an MCP server for interacting with the X platform via an MCP client such as Claude, Cursor AI, Windsurf AI, etc.
Prerequisites
1. Node.js (>=18.0.0)
2. npm (>=8.0.0)
3. X Developer API keys
Important Notes regarding to the rate limits of the X APIs
- There is a rate limit on the number of requests per minute for the X APIs, which is set by the X platform.
- You can refer to this page for knowing the limits: https://developer.x.com/en/portal/products
Getting Started
1. Clone this repository:
git clone2. Install the dependencies:
npm install3. Build the project:
npm run buildThis will compile the `index.ts` file in the `src` folder and create the `build` directory.
Configuration
1. You will need your X Developer API keys to use this tool. You will need these 4 keys/tokens:
In case you are not aware of how to get these keys/tokens, you can follow the instructions on the X Developer website: https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api
2. Set the environment variables:
You will have to setup the MCP server for your client.
1. For Claude:
{
"x-mcp-server": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/x-mcp-server/build/index.js"
],
"env": {
"X_API_KEY": "your-x-api-key",
"X_API_KEY_SECRET": "your-x-api-key-secret",
"X_ACCESS_TOKEN": "your-x-access-token",
"X_ACCESS_TOKEN_SECRET": "your-x-access-token-secret"
}
}
}2. For Cursor AI:
3. For Windsurf AI:
{
"mcpServers": {
"x-mcp-server": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/x-mcp-server/build/index.js"
],
"env": {
"X_API_KEY": "your-x-api-key",
"X_API_KEY_SECRET": "your-x-api-key-secret",
"X_ACCESS_TOKEN": "your-x-access-token",
"X_ACCESS_TOKEN_SECRET": "your-x-access-token-secret"
}
}
}
}4. For other MCP clients:
Now you can connect to this MCP server locally using your preferred MCP client and interact with the X platform.
Frequently asked questions
What is x-mcp-server?
x-mcp-server is This is an MCP server for the X Platform
How do I install x-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is x-mcp-server open source?
Yes — it is hosted on GitHub at https://github.com/siddheshutd/x-mcp-server and has 5 stars.
Related MCP tools
Playwright MCP server TypeScript-based implementation. Trusted by 22000+ developers. Trusted by 22000+ developers. Trusted by 22000+ developers.
Official Notion MCP Server TypeScript-based implementation. Trusted by 3400+ developers. Trusted by 3400+ developers. Trusted by 3400+ developers.
Directory for Awesome MCP Servers TypeScript-based implementation. Trusted by 1900+ developers. Trusted by 1900+ developers.
🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes.
MCP Aggregator, Orchestrator, Middleware, Gateway in one docker TypeScript-based implementation. Trusted by 1400+ developers.
MCP Server for kubernetes management commands TypeScript-based implementation. Trusted by 1100+ developers. Trusted by 1100+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP