MCP Server Studio

TwitterAPIs MCP server

Official MCP server for twitterapis.com. Twitter/X search, users, DMs, Grok, monitoring and writes.

Registry name: io.github.TwitterAPIs/twitterapis-mcp

Publisher
TwitterAPIs
Runs
Local or hosted
Package
npm
Version
0.29.1
Category
Search & knowledge
Updated
2026-11-23

Source code on GitHub

Set up TwitterAPIs (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "twitterapis-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@twitterapis/[email protected]"
      ],
      "env": {
        "TWITTERAPIS_KEY": "<TWITTERAPIS_KEY>",
        "TWITTERAPIS_BASE_URL": "<TWITTERAPIS_BASE_URL>",
        "TWITTERAPIS_TIMEOUT_MS": "<TWITTERAPIS_TIMEOUT_MS>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add twitterapis-mcp -e TWITTERAPIS_KEY='<TWITTERAPIS_KEY>' -e TWITTERAPIS_BASE_URL='<TWITTERAPIS_BASE_URL>' -e TWITTERAPIS_TIMEOUT_MS='<TWITTERAPIS_TIMEOUT_MS>' -- npx -y @twitterapis/[email protected]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "twitterapis-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@twitterapis/[email protected]"
      ],
      "env": {
        "TWITTERAPIS_KEY": "<TWITTERAPIS_KEY>",
        "TWITTERAPIS_BASE_URL": "<TWITTERAPIS_BASE_URL>",
        "TWITTERAPIS_TIMEOUT_MS": "<TWITTERAPIS_TIMEOUT_MS>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "twitterapis-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@twitterapis/[email protected]"
      ],
      "env": {
        "TWITTERAPIS_KEY": "<TWITTERAPIS_KEY>",
        "TWITTERAPIS_BASE_URL": "<TWITTERAPIS_BASE_URL>",
        "TWITTERAPIS_TIMEOUT_MS": "<TWITTERAPIS_TIMEOUT_MS>"
      }
    }
  }
}

Windsurf

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

{
  "mcpServers": {
    "twitterapis-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@twitterapis/[email protected]"
      ],
      "env": {
        "TWITTERAPIS_KEY": "<TWITTERAPIS_KEY>",
        "TWITTERAPIS_BASE_URL": "<TWITTERAPIS_BASE_URL>",
        "TWITTERAPIS_TIMEOUT_MS": "<TWITTERAPIS_TIMEOUT_MS>"
      }
    }
  }
}

Set up TwitterAPIs (hosted url)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "twitterapis-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.twitterapis.com/mcp"
      ]
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add --transport http twitterapis-mcp https://api.twitterapis.com/mcp

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "twitterapis-mcp": {
      "url": "https://api.twitterapis.com/mcp"
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "twitterapis-mcp": {
      "type": "http",
      "url": "https://api.twitterapis.com/mcp"
    }
  }
}

Windsurf

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

{
  "mcpServers": {
    "twitterapis-mcp": {
      "serverUrl": "https://api.twitterapis.com/mcp"
    }
  }
}

Settings

NameRequiredWhat it is
TWITTERAPIS_KEYYesYour twitterapis.com API key. Create one at https://www.twitterapis.com/dashboard. Required: every tool call authenticates with it.
TWITTERAPIS_BASE_URLNoOverride the API base URL. Defaults to https://api.twitterapis.com. Only set this if you were given a different endpoint.
TWITTERAPIS_TIMEOUT_MSNoPer-request timeout in milliseconds. Raise it if you page through large follower lists on a slow link.

More search & knowledge MCP servers