X.com MCP Server
@tiovikram
About X.com MCP Server
MCP server implementation for X.com API with OAuth 2.0 support
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"x.com-mcp-server": {
"command": "node",
"args": [
"dist/index.js"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is X.com MCP Server?
A Model Context Protocol server that provides access to X.com's API capabilities. It enables LLMs to interact with X.com (formerly Twitter) through OAuth 2.0 authentication, supporting all major Post-related operations including reading, writing, searching, and managing posts, likes, retweets, and bookmarks.
How to use X.com MCP Server?
Install via pnpm or Docker, then set the required X_COM_ACCESS_TOKEN environment variable with an OAuth 2.0 Bearer token obtained from an X.com Developer account. After building and running the server, configure your MCP client (e.g., Claude.app) to use the server and start making tool calls.
Key features of X.com MCP Server
- OAuth 2.0 Bearer token authentication
- 21 tools covering all major X.com operations
- Type safety with TypeScript and Zod validation
- Lookup, manage, search, timeline, and counts
- Manage retweets, likes, and bookmarks
- Docker and pnpm installation options
Use cases of X.com MCP Server
- Search recent posts about a specific topic and analyze engagement metrics.
- Create, delete, hide replies, and manage user posts.
- Retrieve user timelines and mentions for monitoring.
- Manage likes, retweets, and bookmarks programmatically.
- Get time‑bucketed post counts for trend analysis.
FAQ from X.com MCP Server
What authentication does X.com MCP Server require?
It requires an OAuth 2.0 Bearer access token, set as the X_COM_ACCESS_TOKEN environment variable. Obtain this token from your X.com Developer account after implementing the Authorization Code with PKCE flow.
Which X.com API endpoints are covered?
The server implements all Post-related endpoints from X.com API v2, including lookup, manage posts, timelines, search, post counts, retweets, likes, and bookmarks.
What rate limits apply to X.com MCP Server?
Most read operations: 300 requests per 15 minutes; write operations: 50 per 15 minutes; bookmark operations: 50 write and 180 read per 15 minutes.
What OAuth 2.0 scopes are required?
Required scopes: tweet.read, tweet.write, tweet.moderate.write, users.read, like.read, like.write, bookmark.read, bookmark.write.
Can I search the full archive of posts?
Yes, via the searchAll tool, but it requires Academic or Enterprise access to the X.com API.
More Developer Tools MCP servers
MCP-Bridge
SecretiveShellA middleware to provide an openAI compatible endpoint that can call MCP tools
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
Hello World MCP Server (Reference Extension)
anthropicsDesktop Extensions: One-click local MCP server installation in desktop apps

Sentry
modelcontextprotocolModel Context Protocol Servers
MCP Containers
metorialConnect any AI model to 1200+ integrations (MCP, CLI, API)
Comments