X-MCP 2.0: MCP Server for X/Twitter API Access from Claude

X-MCP 2.0 is an MCP server that enables Claude (both Desktop and Claude Code) to interact with the X/Twitter API v2 using OAuth 2.0 PKCE authentication. It replaces the older OAuth 1.0a approach that required managing multiple API keys.
Key Features
The server provides 10 tools for interacting with X/Twitter:
- Post tweets
- Search X/Twitter
- Get timeline
- Like tweets
- Retweet
- Reply to tweets
- View user profiles
- Additional functionality (as mentioned in "and more")
Setup Process
Setup requires three steps:
- Create a Twitter app at developer.x.com
- Run
npm run authto complete the OAuth flow (opens browser) - Add the MCP server configuration to Claude
The GitHub repository is available at: https://github.com/JFan5/X-MCP-2.0
Technical Details
The server uses OAuth 2.0 with PKCE authentication, which eliminates the need to manage four separate API keys as required by the old OAuth 1.0a approach. It includes automatic token refresh, so users don't need to manually re-authenticate every 2 hours.
The developer built this tool because existing twitter-mcp solutions only supported posting and searching with OAuth 1.0a. X-MCP 2.0 provides full read/write access to the X API from Claude, including timeline access, likes, retweets, replies, and user lookups with modern authentication.
The developer has already used the tool to tweet about itself from Claude Code, demonstrating its functionality.
📖 Read the full source: r/ClaudeAI
👀 See Also

OpenClaw Setup on Ubuntu UTM VM with LLM API and Ollama Access
A user successfully configured OpenClaw in a sandboxed Ubuntu VM on an M3 Mac, with access to both local Ollama on macOS and external LLM APIs like Gemini, Claude, and DeepSeek. Sample configuration files and troubleshooting notes are available on GitHub.

Four ClawHub Skills for Real-Time Search Data in AI Agents
Four ClawHub skills provide structured search capabilities for AI agents: Google (web, news, images, maps), Amazon (product search across 12 marketplaces), Walmart (product search with delivery filters), and YouTube (video search with transcripts). Install via clawhub install commands with one API key.

Solitaire: Open-Source Identity Infrastructure for AI Agents
Solitaire is an open-source identity infrastructure for AI agents that focuses on improving how agents work with users over time, not just recall. It's local-first, model-agnostic, and available via pip install solitaire-ai.

OpenClaw Browser Relay Chrome Extension Alternative to Manual Configs
A Reddit user reports success with a Chrome extension for OpenClaw browser relay after manual configuration attempts caused system crashes and debugging headaches.