MCP.so
Sign In

Twitter Cookie mcpServer

@dewkiks

About Twitter Cookie mcpServer

Twitter MCP Server

Basic information

Category

Other

Transports

stdio

Publisher

dewkiks

Submitted by

dewkiks

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "twitter": {
      "command": "python",
      "args": [
        "./path/to/server.py"
      ],
      "env": {
        "TWITTER_CT0": "your_ct0_here",
        "TWITTER_AUTH_TOKEN": "your_auth_token_here"
      }
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Twitter Cookie mcpServer?

A Model Context Protocol (MCP) server that enables AI assistants to interact with Twitter using cookie-based authentication. It leverages the unofficial twikit library for Twitter integration and is intended for educational/experimental use.

How to use Twitter Cookie mcpServer?

Install via Smithery or manually clone the repository and install dependencies with pip install -r requirements.txt. Obtain the ct0 and auth_token cookies from your logged-in Twitter/X browser session, then configure Claude Desktop by adding environment variables TWITTER_CT0 and TWITTER_AUTH_TOKEN to the server entry in claude_desktop_config.json.

Key features of Twitter Cookie mcpServer

  • Post, like, retweet, and search tweets
  • Get user profiles and follow/unfollow users
  • Access your timeline or other user timelines
  • Send, read, and react to direct messages
  • Retrieve trending topics by category

Use cases of Twitter Cookie mcpServer

  • Post tweets about AI developments
  • Search for tweets and display the top results
  • Send direct messages to users
  • Get your latest timeline tweets
  • Like or retweet specific tweet IDs
  • Get trending topics in sports

FAQ from Twitter Cookie mcpServer

Is this an official Twitter API?

No, it uses the unofficial twikit library and is not endorsed by Twitter/X. It may break without notice and is intended for educational/experimental purposes only.

What cookies are required for authentication?

You need the ct0 (CSRF token) and auth_token (authentication token) from your Twitter/X browser session, accessible via Developer Tools > Application/Storage > Cookies.

How do I install Twitter Cookie mcpServer?

You can install automatically via Smithery using npx -y @smithery/cli install @dewkiks/twitter-mcp-server --client claude, or manually by cloning the repository and running pip install -r requirements.txt.

What tools are available with Twitter Cookie mcpServer?

Available tools include tweet, like_tweet, retweet, search_tweets, get_user_info, get_timeline, send_dm, get_dm_history, add_reaction_to_message, delete_dm, get_tweet_replies, and get_trends.

What are the risks of using this server?

Account restrictions are possible. The server uses an unofficial API that may break without notice. Use at your own risk.

Comments

More Other MCP servers