X(Twitter) MCP Server
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
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., "@X(Twitter) MCP Server Tweet 'Just launched our new AI feature - check it out! 🚀 #AI #Tech'"
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.
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 claudeManual Installation
Clone the repository:
git clone https://github.com/yourusername/x-mcp.gitInstall UV globally using Homebrew in Terminal:
brew install uvCreate 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:
{
"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 pathAdd your X/Twitter API credentials
Quit Claude completely and reopen it
Related MCP server: thread-storm
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 pathVerify all X/Twitter credentials are correct
Check if the x-mcp path in config matches your actual repository location
Available Tools
5 toolscreate_draft_threadC
Create a draft tweet thread
Inputs: contents (required).
create_draft_tweetC
Create a draft tweet
Inputs: content (required).
delete_draftC
Delete a draft tweet or thread
Inputs: draft_id (required).
list_draftsB
List all draft tweets and threads
Inputs: no named parameters.
publish_draftC
Publish a draft tweet or thread
Inputs: draft_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Every tool has a clearly distinct purpose with no ambiguity. Tools are clearly separated by action (create, delete, list, publish) and target (draft tweet vs. draft thread where specified), making misselection unlikely.
All tools follow a consistent verb_noun pattern (e.g., create_draft_thread, list_drafts). The naming is predictable and readable throughout the set, with no deviations in style.
With 5 tools, the count is well-scoped for managing draft tweets and threads. Each tool earns its place, covering essential operations without bloat or thinness for this focused domain.
The toolset provides complete CRUD/lifecycle coverage for drafts (create, list, delete, publish), with minor gaps such as the inability to edit or update existing drafts, but agents can work around this by recreating drafts.
Related MCP Connectors
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Draft and schedule social media posts on your connected channels from Claude or any MCP client.
Hosted X Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
PostHero MCP server — schedule and publish social media posts from any MCP-compatible AI tool
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP server that enables Claude to interact with Twitter, allowing for posting tweets and searching Twitter content.31,017 npm408MIT
- AlicenseAqualityDmaintenanceMCP server for publishing threads to Threads and Twitter/X simultaneously from Claude Code. Journal your thoughts, convert them to viral threads, and post everywhere at once.13MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables Claude to automate Twitter posting with AI-generated images and thread support.14 npmMIT
- AlicenseAqualityDmaintenanceA local MCP server that lets Claude post to social media via upload-post.com — text, photos, and videos across 13 platforms.17MIT