Twitter MCP
Integrates with X (Twitter) API v2 to post tweets, search discussions, reply to messages, and analyze social engagement trends.
About this Server
Twitter MCP connects AI assistants directly with X (Twitter) using the X API v2. It enables LLMs to publish tweets and multi-post threads, search public discussions and hashtags, analyze tweet performance metrics, track viral trends, map follower networks, and execute deep research on public social conversations with enhanced research capabilities.
Direct low-latency RPC protocol communication with structured JSON schemas.
Restricted capability bounds to prevent accidental modifications or leakage.
Security & Best Practices
When to Use (and When Not To)
- •Social media managers automating content calendars, scheduled threads, and multi-post campaigns on X
- •Developers building automated notification bots, support reply assistants, and social listening workflows
- •Researchers and analysts tracking public sentiment, brand mentions, and viral developer discussions
- •Content creators monitoring engagement metrics, quote retweets, and follower network graphs
- •Mass spamming, unsolicited automated mentions, or aggressive mass-following behaviors violating X Developer Policies
- •Large-scale continuous firehose streaming of millions of real-time posts (use X Enterprise Streaming API)
- •Private direct message bulk messaging or non-public community group operations
Install & Setup
claude mcp add -e API_KEY=your_api_key_here -e API_SECRET_KEY=your_api_secret_key_here -e ACCESS_TOKEN=your_access_token_here -e ACCESS_TOKEN_SECRET=your_access_token_secret_here twitter-mcp -- npx -y @enescinar/twitter-mcpExposed Tools & Endpoints
8 toolsFunctions your AI agent can invoke via this Model Context Protocol server
Publish a new status update or tweet to X (Twitter) with text, media attachments, and optional reply parameters.
Reply directly to an existing tweet thread on X with targeted commentary.
Search recent tweets and historical discussions across X using query keywords, hashtags, and language filters.
Retrieve recent posts, replies, and pinned tweets published by a specific user handle.
Analyze engagement metrics including impressions, retweets, likes, and reply counts for a tweet or thread.
Monitor trending hashtags, viral topics, and sentiment velocity across social conversations.
Inspect follower connections, mentions, and mutual relationship graphs for user accounts.
Deep academic and social trend research querying public conversations without requiring Enterprise API tiers.
