This repository provides an MCP server that enables users to create, manage, and publish posts directly to X/Twitter through Claude chat. It offers both automated and manual installation options for seamless integration.
An MCP server designed to enable users to create, manage, and publish X/Twitter posts directly through Claude chat.
<a href="https://glama.ai/mcp/servers/jsxr09dktf"> <img width="380" height="200" src="https://glama.ai/mcp/servers/jsxr09dktf/badge" alt="X(Twitter) Server MCP server" /> </a>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
claude_desktop_config.json
:~/Library/Application Support/Claude/
and create the file.%APPDATA%/Claude/
and create the file.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"
}
}
}
}
http://localhost/
and Website URL to http://example.com/
.claude_desktop_config.json
file:/path/to/x-mcp
with the repository path.If not working:
brew install uv
if needed).which uv
to find UV's path and update the "command"
in the config.vidhupv/x-mcp
December 4, 2024
March 28, 2025
Python