X (Twitter)
Create and publish posts and threads on X (Twitter) directly from your chat using LLMs.
X(Twitter) MCP server
An MCP server to create, manage and publish X/Twitter posts directly through Claude chat.
Quick Setup
Installing via Smithery
To install X(Twitter) MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install x-mcp --client claude
Manual Installation
- Clone the repository:
git clone https://github.com/yourusername/x-mcp.git
- Install UV globally using Homebrew in Terminal:
brew install uv
-
Create claude_desktop_config.json:
- For MacOS: Open directory
~/Library/Application Support/Claude/and create the file inside it - For Windows: Open directory
%APPDATA%/Claude/and create the file inside it
- For MacOS: Open directory
-
Add 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:
- Go to X API Developer Portal
- Create a project
- In User Authentication Settings: Set up with Read and Write permissions, Web App type
- Set Callback URL to
http://localhost/and Website URL tohttp://example.com/ - Generate and copy all keys and tokens from Keys and Tokens section
-
Update the config file:
- Replace
/path/to/x-mcpwith your actual repository path - Add your X/Twitter API credentials
- Replace
-
Quit Claude completely and reopen it
Usage Examples
- "Tweet 'Just learned how to tweet through AI - mind blown! 🤖✨'"
- "Create a thread about the history of pizza"
- "Show me my draft tweets"
- "Publish this draft!"
- "Delete that draft"
Troubleshooting
If not working:
- Make sure UV is installed globally (if not, uninstall with
pip uninstall uvand reinstall withbrew install uv) - Or find UV path with
which uvand replace"command": "uv"with the full path - Verify all X/Twitter credentials are correct
- Check if the x-mcp path in config matches your actual repository location
相關伺服器
RocketMQ
A server for interacting with Apache RocketMQ, a distributed messaging and streaming platform, requiring environment variables for configuration.
Fastmail MCP Server
Integrate your Fastmail account with AI assistants using the Model Context Protocol.
Microsoft Teams MCP
Interact with Microsoft Teams to read, create, and reply to messages, and mention members.
ChatGPT
An MCP server to interact with OpenAI's ChatGPT API for conversational AI and text generation.
Coreflux MQTT MCP Server
An MCP server that connects to a Coreflux MQTT broker, providing Coreflux and MQTT actions as tools for AI assistants.
Twitter MCP Server
A server for interacting with Twitter, allowing you to post tweets, read timelines, and manage your account through the MCP standard.
Treehole MCP Server
A sanctuary for AI agents to rest, share thoughts, and find emotional support.
Slack MCP Server
Access Slack DMs, channels, and messages from Claude. Browser token auth - no OAuth needed.
WebRTC MCP Chat Server
A remote WebRTC chat server with secure temporary rooms and MCP support for background agents.
Gmail
An MCP server for Gmail, allowing AI assistants to manage emails through natural language.