mcp-x
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-x post a tweet: 'Learning about MCP servers today!'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-x MCP server
MCP project to connect Claude with X API. Built on top of X API v2
Demo
Supported Features
Post tweets
Configuration
Getting Started with X
Go to X Developer Platform and login with your X account
Start with Basic plan
Store the Access Token, Secret, Client ID, Client Secret and Bearer token Docs: x-api-start
Related MCP server: X MCP Server
Set up
On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonOn Windows:
%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"x": {
"command": "uv",
"args": [
"--directory",
"PROJECT_PATH/src/mcp_x",
"run",
"mcp-x"
],
"env": {
"X_API_KEY": "YOUR_API_KEY",
"X_API_KEY_SECRET": "YOUR_API_KEY_SECRET",
"X_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN",
"X_ACCESS_TOKEN_SECRET": "YOUR_ACCESS_TOKEN_SECRET",
"X_BEARER_TOKEN": "YOUR_BEARER_TOKEN",
"LOGGING_PATH": "PROJECT_PATH/src/mcp_x/logs"
}
}
}
}TODO
Tests
Add Get tweets
Add Delete tweets
...
Deployment
(todo)
Building and Publishing
To prepare the package for distribution:
Sync dependencies and update lockfile:
uv syncBuild package distributions:
uv buildThis will create source and wheel distributions in the dist/ directory.
Available Tools
1 toolx_PostTweetB
Post a tweet using the X API
Inputs: tweet_content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusing it with another. The purpose of x_PostTweet is clear and unambiguous.
The tool name combines a prefix 'x_' with CamelCase 'PostTweet', which mixes conventions but is still readable and suggests a consistent pattern if more tools existed. As a single tool, its name is clear and not chaotic.
A single tool is too few for a server purportedly for the X (Twitter) API, which has many operations. The server feels critically under-scoped, offering only posting functionality.
The tool surface covers only posting tweets, leaving out essential operations like reading, searching, or deleting tweets. This is severely incomplete for a server meant to interact with X.
Maintenance
Related MCP Connectors
Publish and schedule tweets and threads on X (Twitter) from your AI assistant.
Analyze X (Twitter) posts, then draft and schedule from Claude or ChatGPT. OAuth; paid plans.
Draft, schedule and publish posts on X, Threads and Bluesky from ChatGPT, Claude or any MCP client.
Post, thread, schedule and upload media to 9 social platforms from Claude, Cursor or any AI agent.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables interaction with X (formerly Twitter), allowing for posting tweets, searching content, managing accounts, and organizing lists.113MIT
- AlicenseBqualityDmaintenanceEnables users to interact with X (Twitter) through the X API. Supports posting tweets, retrieving user timelines, searching tweets, and replying to tweets with comprehensive error handling.3MIT
- AlicenseBqualityDmaintenanceEnables creating, managing, and publishing X/Twitter posts, threads, and replies directly through Claude chat. Supports draft management with the ability to create, list, publish, and delete tweet drafts.101MIT
- AlicenseAqualityCmaintenanceEnables seamless interaction with Twitter/X platform through Claude AI, allowing users to post tweets with images, search for tweets, and engage in conversations using natural language commands.1055 npm27MIT