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

Managing AI Context with a SQLite Knowledge Store and MCP Tools
One developer built RunawayContext, an MIT-licensed system that stores project lessons in SQLite with FTS5 and optional sqlite-vec, keeping per-session context under 3K tokens via MCP query tools and hard-coded caps.

MemAware benchmark shows RAG-based agent memory fails on implicit context retrieval
The MemAware benchmark tests whether AI agents can surface relevant past context when users don't explicitly ask for it, revealing that current memory systems score only 2.8% accuracy on hard implicit queries versus 0.8% with no memory.

Open-source local hook automatically switches Claude models to cut AI costs
A developer created a local hook for Cursor and Claude Code that analyzes prompts and automatically selects the appropriate Claude model (Haiku, Sonnet, or Opus) before sending requests. The tool uses keyword rules to classify tasks and block overpaying scenarios, with retroactive analysis showing 50-70% cost reduction.

RUNE Protocol: Save AI Session Memory Across Platforms
RUNE (Relational User Notation for Entities) is an open-source protocol that saves your AI relationship to an encrypted .rune file, solving the cold-start problem where AI assistants forget you between sessions. Created with Claude Opus 4.6, it works across Claude and GPT platforms.