by vidhupv
x-mcp is an MCP server that allows users to create, manage, and publish X/Twitter posts directly through Claude chat.
x-mcp is a server that enables direct interaction with X (formerly Twitter) for creating, managing, and publishing posts, all through the Claude chat interface. It acts as a bridge between your Claude AI assistant and your X/Twitter account, streamlining your social media workflow.
There are two primary ways to install and use x-mcp:
For automatic installation with Claude Desktop, use the Smithery CLI:
npx -y @smithery/cli install x-mcp --client claude
git clone https://github.com/yourusername/x-mcp.git
brew install uv
(for macOS)claude_desktop_config.json
: Located in ~/Library/Application Support/Claude/
(macOS) or %APPDATA%/Claude/
(Windows).claude_desktop_config.json
with the provided JSON structure, ensuring to replace /path/to/x-mcp
with your actual repository path.http://localhost/
and Website URL to http://example.com/
. Copy all generated keys and tokens.claude_desktop_config.json
.Q: What if x-mcp is not working? A: Here are some troubleshooting steps:
pip uninstall uv
) and reinstalling (brew install uv
).which uv
and update the command
in your config if necessary.claude_desktop_config.json
are accurate.x-mcp
repository path in your configuration matches the actual location on your system.An MCP server to create, manage and publish X/Twitter posts directly through Claude chat.
To install X(Twitter) MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install x-mcp --client claude
git clone https://github.com/yourusername/x-mcp.git
brew install uv
Create claude_desktop_config.json:
~/Library/Application Support/Claude/
and create the file inside it%APPDATA%/Claude/
and create the file inside itAdd this configuration to claude_desktop_config.json:
{
"mcpServers": {
"x_mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/x-mcp",
"run",
"x-mcp"
],
"env": {
"TWITTER_API_KEY": "your_api_key",
"TWITTER_API_SECRET": "your_api_secret",
"TWITTER_ACCESS_TOKEN": "your_access_token",
"TWITTER_ACCESS_TOKEN_SECRET": "your_access_token_secret"
}
}
}
}
Get your X/Twitter API credentials:
http://localhost/
and Website URL to http://example.com/
Update the config file:
/path/to/x-mcp
with your actual repository pathQuit Claude completely and reopen it
If not working:
pip uninstall uv
and reinstall with brew install uv
)which uv
and replace "command": "uv"
with the full pathReviews feature coming soon
Stay tuned for community discussions and feedback