bigsky77/mcp-x-server
If you are the rightful owner of mcp-x-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
Minimalist X (Twitter) MCP server providing read and write primitives.
MCP X Server
Minimalist X (Twitter) MCP server with 32 tools for Claude Code.
Quick Install (3 Steps)
# 1. Clone and setup
git clone https://github.com/bigsky77/mcp-x-server.git
cd mcp-x-server
./scripts/setup.sh
# 2. Add your cookies (export from browser while logged into twitter.com)
# Save to config/cookies.json
# 3. Add to Claude Code
claude mcp add mcp-x-server "$(pwd)/venv/bin/python" -m src.server
Test it works:
claude mcp call mcp-x-server search_tweets '{"query":"AI", "limit":1}'
What You Get
32 MCP Tools organized by category:
Basic Operations (10 tools)
- Search tweets, get user profiles, timelines, mentions
- Post tweets, reply, like, retweet, delete
Engagement & Context (5 tools)
- Quote tweets with commentary
- Get full conversation threads
- See who retweeted
Relationships (4 tools)
- Follow/unfollow users
- Get followers and following lists
Moderation (6 tools)
- Unlike tweets, remove retweets
- Mute/unmute, block/unblock users
Lists (3 tools)
- Create and manage Twitter lists
- Add/remove users from lists
Discovery (3 tools)
- Search users
- Bookmark tweets
- Check rate limits
See for complete tool parameters.
Usage
Just ask Claude in natural language:
"Search for tweets about AI"
"Get the latest tweets from @sama"
"Post a tweet: Hello from MCP X Server!"
"Quote tweet 1234567890 with: Great insights!"
"Get the full conversation thread for tweet 1234567890"
"Follow @elonmusk and add them to my AI Leaders list"
"Create a private list called AI Researchers"
"Check my rate limits"
Architecture
Simple three-file design:
twikit_client.py- Write operations (posting, liking, etc.)twscrape_client.py- Read operations (searching, fetching)server.py- MCP server with 32 tools
Authentication: Cookie-based (export from browser) Rate Limits: ~300 reads/15min, ~50 writes/24h
Status
✅ All 32 tools fully functional (100% success rate)
Troubleshooting
Server not starting?
# Check Python version (need 3.10+)
python3 --version
# Manually test
cd mcp-x-server
source venv/bin/activate
python -m src.server
# Press Ctrl+C to stop
Cookie issues?
# Validate cookies file
cat config/cookies.json | python -m json.tool
Install from another directory?
# From your project directory
git clone https://github.com/bigsky77/mcp-x-server.git
cd mcp-x-server
./scripts/setup.sh
# Add cookies to config/cookies.json
claude mcp add mcp-x-server "$(pwd)/venv/bin/python" -m src.server
Requirements
- Python 3.10+
- X (Twitter) account cookies
- Claude Code installed
Project Structure
mcp-x-server/
├── config/
│ ├── config.yaml # Server configuration
│ └── cookies.json # Auth cookies (you provide)
├── src/
│ ├── server.py # MCP server (32 tools)
│ ├── auth/ # Cookie authentication
│ ├── clients/ # TwiKit + Twscrape clients
│ └── utils/ # Rate limiting
├── scripts/
│ ├── setup.sh # Install dependencies
│ └── verify.sh # Test installation
└── docs/
└── API_REFERENCE.md # Complete tool documentation
Documentation
- - Complete tool list with parameters
- GitHub Issues - Report bugs
Contributing
Contributions welcome! Focus areas:
- Add more engagement tools
- Improve error handling
- Add media upload support
License
MIT License - See LICENSE file for details
Built with: TwiKit, Twscrape, MCP SDK Compatible with: Claude Code (Anthropic)