Twitterapi MCP server
io.github.pedrot95dev/twitterapi·v0.1.2Read/write X (Twitter) via twitterapi.io: mentions, thread context, create and delete tweets.
0 stars27 downloads/wk
Reviews
Write oneNobody has reviewed Twitterapi yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Twitterapi tools (4, 2 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
create_tweetwrite actionCreate or reply to a tweet via the v2 endpoint. Uses `login_cookies` built from the
delete_tweetwrite actionDelete a tweet by ID (must be owned by the logged-in account). Uses `login_cookies` built
get_tweet_thread_contextFetch one page of the conversation thread around a tweet (to find links in context).
get_user_mentionsFetch tweets mentioning a specific X/Twitter user. Makes a single request per call.
Public scan report
scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 85 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Twitterapi compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 78/100
- higher than 57% of 48,255 servers
- Tools
- 4
- the typical server has 7
- Tools that change things
- 50%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 27
- more than 14% of 12,191 servers with a package
What its tools let an agent do: 2 read · 1 create · 1 delete
Install Twitterapi in Claude Code, Cursor or VS Code
Runs npx -y @pedrot95dev/twitterapi.mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add twitterapi -- npx -y @pedrot95dev/twitterapi.mcp
What the publisher says
From the Twitterapi repository's README, as published. We do not edit it. Read it on GitHub
twitterapi.mcp
MCP server that exposes twitterapi.io endpoints as tools for AI agents and MCP hosts. Written in TypeScript, distributed on npm, runnable with a single npx command.
Current Tools
Quick Start
1. Get an API key
Visit https://twitterapi.io/dashboard and obtain your x-api-key.
2. Cookies + proxy for write actions
createtweet and deletetweet authenticate with your account's own session cookies. From a browser logged into X, open DevTools → Application → Cookies → https://x.com and copy the auth_token and ct0 values.
The server derives the logincookies value twitterapi.io expects from authtoken + ct0. These cookies expire over time (typically weeks); when a write starts returning an auth error, refresh them from the browser.
The API key alone is enough for the read tools. Add the cookie/proxy vars only if you need write actions.
3. Add to your MCP host
Claude Desktop (%APPDATA%\Claude\claudedesktopconfig.json on Windows, ~/Library/Application Support/Claude/claudedesktopconfig.json on macOS):
{
"mcpServers": {
"twitterapi": {
"command": "npx",
"args": ["-y", "@pedrot95dev/twitterapi.mcp"],
"env": {
"TWITTERAPI_IO_KEY": "your_key_here",
"TWITTERAPI_IO_AUTH_TOKEN": "your_auth_token_cookie",
"TWITTERAPI_IO_CT0": "your_ct0_cookie",
"TWITTERAPI_IO_PROXY": "http://user:pass@ip:port"
}
}
}
}npx -y @pedrot95dev/twitterapi.mcp downloads and runs the latest published version. Only Node.js (>= 18) is required — no global install needed.
Other MCP hosts (e.g. Cursor): add the same npx command + env vars in the host's MCP settings UI or config file.
Tool: getusermentions
Fetch tweets that mention or reply to a user. Makes a single request per call; page by passing cursor from a previous response's next_cursor.
{
"tweets": [ ... ],
"count": 12,
"has_next_page": true,
"next_cursor": "DAADDAAB...",
"status": "success",
"msg": null
}Tool: gettweetthread_context
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Twitterapi: common questions
- Is Twitterapi MCP server safe?
- Mostly: it is graded B (78/100). Read the Twitterapi safety report
- How do I install Twitterapi?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Twitterapi need an API key?
- Yes. The registry entry asks for
TWITTERAPI_IO_KEY,TWITTERAPI_IO_AUTH_TOKEN,TWITTERAPI_IO_CT0,TWITTERAPI_IO_PROXY. - Is Twitterapi maintained?
- The last commit was 124 days ago (2026-07-03). The latest release is v0.1.2.
- How does Twitterapi compare with other MCP servers?
- safety score 78/100 (higher than 57% of 48,255 servers); tools 4 (the typical server has 7); tools that change things 50% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.