Developer Tools · Social Media

X Twitter MCP Server logo

X Twitter MCP Server

rafaljanicki/x-twitter-mcp-server

A Model Context Protocol (MCP) server for interacting with Twitter (X) via AI tools. This server allows you to fetch tweets, post tweets, search Twitter, manage followers, and more, all through natural language commands in AI Tools.

Install

pip install x-twitter-mcp

Client configuration

{
  "mcpServers": {
    "x-twitter-mcp": {
      "command": "x-twitter-mcp-server",
      "env": {
        "PYTHONUNBUFFERED": "<PYTHONUNBUFFERED>",
        "TWITTER_API_KEY": "<TWITTER_API_KEY>",
        "TWITTER_API_SECRET": "<TWITTER_API_SECRET>",
        "TWITTER_ACCESS_TOKEN": "<TWITTER_ACCESS_TOKEN>",
        "TWITTER_ACCESS_TOKEN_SECRET": "<TWITTER_ACCESS_TOKEN_SECRET>",
        "TWITTER_BEARER_TOKEN": "<TWITTER_BEARER_TOKEN>",
        "TWITTER_OAUTH2_USER_ACCESS_TOKEN": "<TWITTER_OAUTH2_USER_ACCESS_TOKEN>"
      }
    }
  }
}

Environment variables

TWITTER_API_KEYTWITTER_API_SECRETTWITTER_ACCESS_TOKENTWITTER_ACCESS_TOKEN_SECRETTWITTER_BEARER_TOKENTWITTER_OAUTH2_USER_ACCESS_TOKEN
GitHub stars
3
Category
Developer Tools, Social Media
License
MIT
Updated
Oct 6, 2026

Features

  • Fetch user profiles, followers, and following lists.

  • Post, delete, and favorite tweets.

  • Search Twitter for tweets and trends.

  • Manage bookmarks and timelines.

  • Built-in rate limit handling for the Twitter API.

  • Uses Twitter API v2 with proper authentication (API keys and tokens), avoiding the username/password hack to minimize the risk of account suspensions.

  • Provides a complete implementation of Twitter API v2 endpoints for user management, tweet management, timelines, and search functionality.

Tools (24)

  • get_user_profile

  • get_user_by_screen_name

  • get_user_by_id

  • get_user_followers

  • get_user_following

  • get_user_followers_you_know

  • get_user_subscriptions

  • post_tweet

  • delete_tweet

  • get_tweet_details

  • create_poll_tweet

  • vote_on_poll

  • favorite_tweet

  • unfavorite_tweet

  • bookmark_tweet

  • delete_bookmark

  • delete_all_bookmarks

  • get_bookmarks

  • get_timeline

  • get_latest_timeline

  • search_twitter

  • get_trends

  • get_highlights_tweets

  • get_user_mentions

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS

Related MCP servers

More servers
Playwright logo

Playwright

microsoft/playwright

72.2k

Playwright is a framework for web automation and testing. It drives Chromium, Firefox, and WebKit with a single API — in your tests, in your scripts, and as a tool for AI agents.

Developer Tools
repomix logo

repomix

yamadashy/repomix

15.2k

Repomix is a tool that packs a codebase into an AI-friendly format, supporting local and remote repository processing and providing code compression, security checks and multiple output formats.

Developer Tools
UI-TARS-desktop logo

UI-TARS-desktop

bytedance/UI-TARS-desktop

12.9k

TARS is ByteDance's multimodal AI agent stack, shipping two projects: Agent TARS (a CLI and Web UI agent built on MCP) and UI-TARS-desktop (a desktop GUI agent).

Developer Tools
blender logo

blender

ahujasid/blender-mcp

10.6k

formerly blender-mcp — the PyPI package is now mcp-for-blender. Existing setups keep working; no config change is required. Read more.

Developer Tools
Playwright Browser Automation logo

Playwright Browser Automation

microsoft/playwright-mcp

9.2k

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

Developer Tools
2344 logo

2344

comet-ml/opik

7k

Opik is the open-source LLM observability and evaluation platform for AI agent tracing, LLM evaluation, prompt management, and production monitoring. Built by Comet. Apache-2.0 licensed, free to self-host the full platform, with 20,000+ GitHub stars.

Developer Tools