X

X (Twitter) MCP Server

Post tweets, search mentions, and manage social media from AI agents.

freemium 24/100 Low Quality Communication twitter x social-media tweets marketing brand-monitoring

A Model Context Protocol server for the X (Twitter) API v2. Enables AI agents to post tweets with text and media, search tweets, manage engagements, and monitor brand mentions.

Community-maintained. Useful for social media management, brand monitoring, and content publishing workflows.

⚠️ Note: OAuth tokens grant full account access beyond what this server uses. Consider using a dedicated X account. The MCP SDK dependency is outdated (0.6.0 vs 1.27+).

Install

npx -y @enescinar/twitter-mcp

MCP Client Config

{
  "mcpServers": {
    "twitter": {
      "command": "npx",
      "args": [
        "-y",
        "@enescinar/twitter-mcp"
      ],
      "env": {
        "TWITTER_API_KEY": "<your-api-key>",
        "TWITTER_API_SECRET": "<your-api-secret>",
        "TWITTER_ACCESS_TOKEN": "<your-access-token>",
        "TWITTER_ACCESS_SECRET": "<your-access-secret>"
      }
    }
  }
}

Required Environment Variables

  • TWITTER_API_KEY
  • TWITTER_API_SECRET
  • TWITTER_ACCESS_TOKEN
  • TWITTER_ACCESS_SECRET

Capabilities

Tools

post_tweetsearch_tweetsget_mentionslike_tweetretweet

Compatible With

Claude Desktop Claude Code Cursor Windsurf

Pricing

Server is free. X API has free, basic, and pro tiers.

Metrics

386

GitHub Stars

0

Installs

0

Weekly

2

Open Issues