Skip to content
MCP server

Twitterapi

Read/write X (Twitter) via twitterapi.io: mentions, thread context, create and delete…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.2
Listing updated
5 days ago

About Twitterapi

Twitterapi is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Read/write X (Twitter) via twitterapi.io: mentions, thread context, create and delete tweets.

Install

Run in a terminal

claude mcp add twitterapi --env TWITTERAPI_IO_KEY='<TWITTERAPI_IO_KEY>' --env TWITTERAPI_IO_AUTH_TOKEN='<TWITTERAPI_IO_AUTH_TOKEN>' --env TWITTERAPI_IO_CT0='<TWITTERAPI_IO_CT0>' --env TWITTERAPI_IO_PROXY='<TWITTERAPI_IO_PROXY>' -- npx -y @pedrot95dev/twitterapi.mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "twitterapi": {
      "command": "npx",
      "args": [
        "-y",
        "@pedrot95dev/twitterapi.mcp"
      ],
      "env": {
        "TWITTERAPI_IO_KEY": "<TWITTERAPI_IO_KEY>",
        "TWITTERAPI_IO_AUTH_TOKEN": "<TWITTERAPI_IO_AUTH_TOKEN>",
        "TWITTERAPI_IO_CT0": "<TWITTERAPI_IO_CT0>",
        "TWITTERAPI_IO_PROXY": "<TWITTERAPI_IO_PROXY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "twitterapi": {
      "command": "npx",
      "args": [
        "-y",
        "@pedrot95dev/twitterapi.mcp"
      ],
      "env": {
        "TWITTERAPI_IO_KEY": "<TWITTERAPI_IO_KEY>",
        "TWITTERAPI_IO_AUTH_TOKEN": "<TWITTERAPI_IO_AUTH_TOKEN>",
        "TWITTERAPI_IO_CT0": "<TWITTERAPI_IO_CT0>",
        "TWITTERAPI_IO_PROXY": "<TWITTERAPI_IO_PROXY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "twitterapi": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pedrot95dev/twitterapi.mcp"
      ],
      "env": {
        "TWITTERAPI_IO_KEY": "<TWITTERAPI_IO_KEY>",
        "TWITTERAPI_IO_AUTH_TOKEN": "<TWITTERAPI_IO_AUTH_TOKEN>",
        "TWITTERAPI_IO_CT0": "<TWITTERAPI_IO_CT0>",
        "TWITTERAPI_IO_PROXY": "<TWITTERAPI_IO_PROXY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "twitterapi": {
      "command": "npx",
      "args": [
        "-y",
        "@pedrot95dev/twitterapi.mcp"
      ],
      "env": {
        "TWITTERAPI_IO_KEY": "<TWITTERAPI_IO_KEY>",
        "TWITTERAPI_IO_AUTH_TOKEN": "<TWITTERAPI_IO_AUTH_TOKEN>",
        "TWITTERAPI_IO_CT0": "<TWITTERAPI_IO_CT0>",
        "TWITTERAPI_IO_PROXY": "<TWITTERAPI_IO_PROXY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "twitterapi": {
      "command": "npx",
      "args": [
        "-y",
        "@pedrot95dev/twitterapi.mcp"
      ],
      "env": {
        "TWITTERAPI_IO_KEY": "<TWITTERAPI_IO_KEY>",
        "TWITTERAPI_IO_AUTH_TOKEN": "<TWITTERAPI_IO_AUTH_TOKEN>",
        "TWITTERAPI_IO_CT0": "<TWITTERAPI_IO_CT0>",
        "TWITTERAPI_IO_PROXY": "<TWITTERAPI_IO_PROXY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • TWITTERAPI_IO_KEYtwitterapi.io API key (x-api-key). Required for all tools.Required
  • TWITTERAPI_IO_AUTH_TOKENauth_token cookie from a logged-in X session. Write tools only.
  • TWITTERAPI_IO_CT0ct0 cookie from the same logged-in X session. Write tools only.
  • TWITTERAPI_IO_PROXYResidential proxy (http://user:pass@ip:port). Write tools only.

Pricing

Open source

Twitterapi FAQ

Is Twitterapi free?

Yes. Twitterapi is open source, so you can use and self-host it for free.

How do I add Twitterapi to Claude Code?

Run this command in your terminal: claude mcp add twitterapi --env TWITTERAPI_IO_KEY='<TWITTERAPI_IO_KEY>' --env TWITTERAPI_IO_AUTH_TOKEN='<TWITTERAPI_IO_AUTH_TOKEN>' --env TWITTERAPI_IO_CT0='<TWITTERAPI_IO_CT0>' --env TWITTERAPI_IO_PROXY='<TWITTERAPI_IO_PROXY>' -- npx -y @pedrot95dev/twitterapi.mcp

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers