twitterapi
v0.1.2Read/write X (Twitter) via twitterapi.io: mentions, thread context, create and delete tweets.
Values you need
| Variable | What it is | |
|---|---|---|
TWITTERAPI_IO_KEY | required secret | twitterapi.io API key (x-api-key). Required for all tools. |
TWITTERAPI_IO_AUTH_TOKEN | optional secret | auth_token cookie from a logged-in X session. Write tools only. |
TWITTERAPI_IO_CT0 | optional secret | ct0 cookie from the same logged-in X session. Write tools only. |
TWITTERAPI_IO_PROXY | optional secret | Residential proxy (http://user:pass@ip:port). Write tools only. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add twitterapi -e 'TWITTERAPI_IO_KEY=<TWITTERAPI_IO_KEY>' -- npx -y @pedrot95dev/twitterapi.mcp@0.1.2Add to
claude_desktop_config.json{
"mcpServers": {
"twitterapi": {
"args": [
"-y",
"@pedrot95dev/twitterapi.mcp@0.1.2"
],
"command": "npx",
"env": {
"TWITTERAPI_IO_KEY": "<TWITTERAPI_IO_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"twitterapi": {
"args": [
"-y",
"@pedrot95dev/twitterapi.mcp@0.1.2"
],
"command": "npx",
"env": {
"TWITTERAPI_IO_KEY": "<TWITTERAPI_IO_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "TWITTERAPI_IO_KEY",
"id": "twitterapi-io-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"twitterapi": {
"args": [
"-y",
"@pedrot95dev/twitterapi.mcp@0.1.2"
],
"command": "npx",
"env": {
"TWITTERAPI_IO_KEY": "${input:twitterapi-io-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.twitterapi]
command = "npx"
args = ["-y", "@pedrot95dev/twitterapi.mcp@0.1.2"]
env = { "TWITTERAPI_IO_KEY" = "<TWITTERAPI_IO_KEY>" }For AI agents
- Ask the user for: TWITTERAPI_IO_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_user_mentions, get_tweet_thread_context, create_tweet, delete_tweet.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json