The X(Twitter) MCP Server allows you to create, manage, and publish X/Twitter posts directly through Claude chat.
Create single draft tweets
Create draft tweet threads
List all existing drafts
Publish drafts to X/Twitter
Delete drafts from the system
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:
Manual Installation
Clone the repository:
Install UV globally using Homebrew in Terminal:
Create claude_desktop_config.json:
For MacOS: Open directory
~/Library/Application Support/Claude/
and create the file inside itFor Windows: Open directory
%APPDATA%/Claude/
and create the file inside it
Add this configuration to claude_desktop_config.json:
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-mcp
with your actual repository pathAdd your X/Twitter API credentials
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 uv
and reinstall withbrew install uv
)Or find UV path with
which uv
and replace"command": "uv"
with the full pathVerify all X/Twitter credentials are correct
Check if the x-mcp path in config matches your actual repository location
local-only server
The server can only run on the client's local machine because it depends on local resources.
An MCP server that allows Claude to create, manage and publish X/Twitter posts directly through the chat interface.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server for managing social media posts, currently supporting X (formerly Twitter).Last updated -8MIT License
- AsecurityAlicenseAqualityAn MCP server that enables saving and sharing Claude Desktop conversations, allowing users to store chats privately or make them public through a web interface.Last updated -11MIT License
- AsecurityAlicenseAqualityAn MCP server that enables Claude to interact with Twitter, allowing for posting tweets and searching Twitter content.Last updated -164298MIT License
- AsecurityFlicenseAqualityAn MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.Last updated -1911