X (Twitter)

X (Twitter)

enescinr

Integrates with X (Twitter) API v2 to post tweets, search content, and reply to messages. Includes enhanced research tools that bypass some API restrictions.

Interact with X (Twitter) by posting tweets and searching for tweets through the X API.

3721,702 views53Local (stdio)

What it does

  • Post tweets and replies
  • Search tweets and user content
  • Analyze thread performance and engagement
  • Track viral content and sentiment
  • Map social networks and connections
  • Access enhanced research tools without Pro tier

Best for

Social media managers automating Twitter workflowsResearchers analyzing Twitter data and trendsDevelopers building Twitter integrationsContent creators tracking engagement metrics
53 total tools including enhanced research capabilitiesBypasses some API restrictionsRequires Twitter API Basic tier ($200/month)

About X (Twitter)

X (Twitter) is a community-built MCP server published by enescinr that provides AI assistants with tools and capabilities via the Model Context Protocol. Interact with X (formerly Twitter) using the Twitter API to post tweets, search content, and explore Twitter API pricing It is categorized under communication.

How to install

You can install X (Twitter) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

X (Twitter) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

MseeP.ai Security Assessment Badge

Twitter MCP Server

smithery badge

This MCP server allows Clients to interact with Twitter, enabling posting tweets and searching Twitter.

Twitter Server MCP server

Quick Start

  1. Create a Twitter Developer account and get your API keys from Twitter Developer Portal

  2. Add this configuration to your Claude Desktop config file:

Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "twitter-mcp": {
      "command": "npx",
      "args": ["-y", "@enescinar/twitter-mcp"],
      "env": {
        "API_KEY": "your_api_key_here",
        "API_SECRET_KEY": "your_api_secret_key_here",
        "ACCESS_TOKEN": "your_access_token_here",
        "ACCESS_TOKEN_SECRET": "your_access_token_secret_here"
      }
    }
  }
}
  1. Restart Claude Desktop

That's it! Claude can now interact with Twitter through two tools:

  • post_tweet: Post a new tweet
  • search_tweets: Search for tweets

Example Usage

Try asking Claude:

  • "Can you post a tweet saying 'Hello from Claude!'"
  • "Can you search for tweets about Claude AI?"

Troubleshooting

Logs can be found at:

  • Windows: %APPDATA%\Claude\logs\mcp-server-twitter.log
  • macOS: ~/Library/Logs/Claude/mcp-server-twitter.log

Development

If you want to contribute or run from source:

  1. Clone the repository:
git clone https://github.com/EnesCinr/twitter-mcp.git
cd twitter-mcp
  1. Install dependencies:
npm install
  1. Build:
npm run build
  1. Run:
npm start

Running evals

The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentation can be found here.

OPENAI_API_KEY=your-key  npx mcp-eval src/evals/evals.ts src/index.ts

License

MIT

Alternatives

Related Skills

Browse all skills
latex-posters

Create professional research posters in LaTeX using beamerposter, tikzposter, or baposter. Support for conference presentations, academic posters, and scientific communication. Includes layout design, color schemes, multi-column formats, figure integration, and poster-specific best practices for visual communication.

19
social-content

When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, Facebook, or other platforms. Also use when the user mentions 'LinkedIn post,' 'Twitter thread,' 'social media,' 'content calendar,' 'social scheduling,' 'engagement,' or 'viral content.' This skill covers content creation, repurposing, and platform-specific strategies.

14
tweet-crafter

Craft tweets, threads, and long-form X posts optimized for the December 2025 algorithm.Use when creating individual posts for X/Twitter, adapting newsletter content for X,writing thread hooks, or optimizing post format (thread vs long-form). Includes currentalgorithm signals, Premium features, and Spanish-language patterns for LATAM audiences.

12
bird

X/Twitter CLI for reading, searching, posting, and engagement via cookies.

12
paid-ads

When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ad copy,' 'ad creative,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' or 'audience targeting.' This skill covers campaign strategy, ad creation, audience targeting, and optimization.

10
unity-editor-toolkit

Automate and control Unity Editor with 500+ commands, real-time WebSocket communication, and SQLite integration for efficient game development.

9