drio
Open app

Twitter MCP Server

Source

A repository for the Twitter MCP server

Catalog onlyCatalog onlySTDIO

Overview

Twitter MCP Server is a powerful integration tool that allows AI agents to interact with Twitter using the Model Context Protocol (MCP) standard, providing a comprehensive set of Twitter functionalities through a clean interface.

To use the Twitter MCP Server, install the necessary dependencies, build the server, configure your Twitter account credentials, and add the server configuration to your MCP client.

  • Basic reading capabilities: fetch tweets, user profiles, and search tweets. - User interactions: like, retweet, and post tweets with media. - Advanced features: access different timeline types and trending topics. - Media handling: upload images and videos, create threads, and manage user relationships.
  1. Integrating Twitter functionalities into AI assistants.
  2. Automating social media interactions for businesses.
  3. Analyzing Twitter data for research purposes.

Add to your AI client

Use these steps to connect Twitter MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "twitter-mcp-server-taazkareem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-twitter-mcp-server-taazkareem"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "twitter-mcp-server-taazkareem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-twitter-mcp-server-taazkareem"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "twitter-mcp-server-taazkareem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-twitter-mcp-server-taazkareem"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "twitter-mcp-server-taazkareem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-twitter-mcp-server-taazkareem"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "twitter-mcp-server-taazkareem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-twitter-mcp-server-taazkareem"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "twitter-mcp-server-taazkareem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-twitter-mcp-server-taazkareem"
      ]
    }
  }
}

FAQ

What is the Model Context Protocol (MCP)?

MCP is a standard that allows seamless communication between AI agents and various services, including Twitter.

Is there a limit on the number of tweets I can fetch?

Yes, the server has a rate limit of 50 tweets per request.

Can I use this server for commercial purposes?

Yes, the server is open-source and can be used for commercial applications under the MIT License.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1416,"uuid":"537885fd-1fe7-4638-990b-2d6d256e2202","name":"twitter-mcp-server","title":"Twitter MCP Server","description":"A repository for the Twitter MCP server","avatar_url":"https://avatars.githubusercontent.com/u/4195036?v=4","created_at":"2025-02-20T15:40:28.616Z","updated_at":"2025-02-23T07:21:39.753Z","status":"created","author_name":"TaazKareem","author_avatar_url":"https://avatars.githubusercontent.com/u/4195036?v=4","tags":"twitter,mcp,server,ai-integration","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/TaazKareem/twitter-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]