Dashboard

Manage your account, API usage, and subscription plan

Connect TwtAPI with MCP

Use Twitter/X data tools directly from Cursor, Claude Code, Codex, Python, Grok, and other AI clients.

Choose client2Add configuration

MCP Key

Server URL

https://mcp.twtapi.com/mcp

Add to Codex

export TWTAPI_MCP_KEY="sk-your-mcp-key"
codex mcp add twtapi --url "https://mcp.twtapi.com/mcp" --bearer-token-env-var TWTAPI_MCP_KEY

This command contains a private key. Do not commit or share it.

Configuration check

After configuring your client, run one tool call locally to verify it.

ClientCodex
TransportStreamable HTTP
AuthenticationBearer Token
Servermcp.twtapi.com

Available tools

search_tweets
get_user_by_username
get_user_tweets
get_tweet_detail

The console does not assume your local client is connected; verify against the client tool list.