Twitterapi
Overview
Description from the maker (original English)
Read/write X (Twitter) via twitterapi.io: mentions, thread context, create and delete tweets.
PopNx MCP’s three pillars
These three are never merged into one score: opinions, measurements and popularity are different things.
- User voiceiNo reviews yetReviews open together with accounts in a later step
- Our basic checksi1 of 1 passedChecked from public information; code not scanned yet
- UsageiVery new↓ 29/wk · ★ –
What you can do with it
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
- Connection: Runs on your computer
- Transport: stdio
- Category: Marketing & social media
- You need to fill in: TWITTERAPI_IO_KEY, TWITTERAPI_IO_AUTH_TOKEN, TWITTERAPI_IO_CT0, TWITTERAPI_IO_PROXY
Install
Pick the AI app you use, then copy the settings.
Before you install
- Basic checks: 1 of 1 passed
- Runs on your computer with your user’s permissions (files, network, apps).
- You fill in yourself:
TWITTERAPI_IO_KEY,TWITTERAPI_IO_AUTH_TOKEN,TWITTERAPI_IO_CT0,TWITTERAPI_IO_PROXY
Values marked secret are keys to your account. Never share them or paste them into a chat.
You need
- npmNode.js installed (for the npx command)
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"twitterapi": {
"command": "npx",
"args": [
"-y",
"@pedrot95dev/twitterapi.mcp"
],
"env": {
"TWITTERAPI_IO_KEY": "your-value",
"TWITTERAPI_IO_AUTH_TOKEN": "your-value",
"TWITTERAPI_IO_CT0": "your-value",
"TWITTERAPI_IO_PROXY": "your-value"
}
}
}
}Run this in your terminal
claude mcp add twitterapi --env TWITTERAPI_IO_KEY=your-value --env TWITTERAPI_IO_AUTH_TOKEN=your-value --env TWITTERAPI_IO_CT0=your-value --env TWITTERAPI_IO_PROXY=your-value -- npx -y @pedrot95dev/twitterapi.mcpFill in the empty values before running it.
Or copy the settings yourself
Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"twitterapi": {
"command": "npx",
"args": [
"-y",
"@pedrot95dev/twitterapi.mcp"
],
"env": {
"TWITTERAPI_IO_KEY": "your-value",
"TWITTERAPI_IO_AUTH_TOKEN": "your-value",
"TWITTERAPI_IO_CT0": "your-value",
"TWITTERAPI_IO_PROXY": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Or copy the settings yourself
Paste into .vscode/mcp.json in your project
{
"servers": {
"twitterapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@pedrot95dev/twitterapi.mcp"
],
"env": {
"TWITTERAPI_IO_KEY": "your-value",
"TWITTERAPI_IO_AUTH_TOKEN": "your-value",
"TWITTERAPI_IO_CT0": "your-value",
"TWITTERAPI_IO_PROXY": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
Values you fill in
- twitterapi.io API key (x-api-key). Required for all tools.
- auth_token cookie from a logged-in X session. Write tools only.
- ct0 cookie from the same logged-in X session. Write tools only.
- Residential proxy (http://user:pass@ip:port). Write tools only.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account pedrot95dev, which owns the repo
- … Not checked yet
Still maintained
We have not read this repo from GitHub yet
- … Not checked yet
Has a licence
We have not read this repo from GitHub yet
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Compared with others in Marketing & social mediai
- More stars than 0% of the other 3592 servers in this category
- Published to the registry more recently than 15% of the other 3592 servers in this category
- Basic checks equal to or better than 100% of the other 3592 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is Twitterapi safe?
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
You need to fill in: TWITTERAPI_IO_KEY, TWITTERAPI_IO_AUTH_TOKEN, TWITTERAPI_IO_CT0, TWITTERAPI_IO_PROXY
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed –, and the latest version (0.1.2) reached the registry 4 months ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
What can I use instead?
In the same category: MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
Alternatives
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Google Analytics MCP
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
BibiGPT YouTube Video Summarizer
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
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
| Tool | Description | API Endpoint | Auth |
|---|---|---|---|
get_user_mentions | Fetch tweets mentioning a user. | GET /twitter/user/mentions | API key |
get_tweet_thread_context | Fetch a page of the conversation thread around a tweet. | GET /twitter/tweet/thread_context | API key |
create_tweet | Create a tweet or reply. | POST /twitter/create_tweet_v2 | API key + cookies + proxy |
delete_tweet | Delete one of your tweets. | POST /twitter/delete_tweet_v2 | API key + cookies + proxy |
Quick Start
1. Get an API key
Visit https://twitterapi.io/dashboard and obtain your x-api-key.
2. Cookies + proxy for write actions
create_tweet and delete_tweet 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.
| Variable | Required | Description |
|---|---|---|
TWITTERAPI_IO_KEY | always | twitterapi.io API key |
TWITTERAPI_IO_AUTH_TOKEN | writes | auth_token cookie from a logged-in X session |
TWITTERAPI_IO_CT0 | writes | ct0 cookie from the same session |
TWITTERAPI_IO_PROXY | writes | Residential proxy, http://user:pass@ip:port (required by the write endpoints) |
The server derives the login_cookies value twitterapi.io expects from auth_token + 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\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.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: get_user_mentions
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.
| Parameter | Type | Default | Description | |
|---|---|---|---|---|
user_name | string | (required) | X username, with or without @ | |
since_time | string | — | Start time filter (e.g. 2025-06-01 or ISO datetime) | |
until_time | string | — | End time filter | |
cursor | string | — | Pagination cursor from a previous next_cursor | |
query_type | "Latest" \ | "Relevance" | "Latest" | Sort mode |
limit | integer | 50 | Max tweets to return from this single request |
{
"tweets": [ ... ], "count": 12, "has_next_page": true, "next_cursor": "DAADDAAB...", "status": "success", "msg": null }
Tool: get_tweet_thread_context
Fetch the conversation thread around a tweet. Returns the original tweet, the intermediate replies up the chain, the tweet itself, and its direct replies. Each returned tweet includes entities.urls with expanded links — useful for scanning a mention's surrounding conversation for URLs.
Makes exactly one request per call (1-to-1 with the endpoint — no internal pagination). Page through longer threads with cursor.
| Parameter | Type | Default | Description |
|---|---|---|---|
tweet_id | string | (required) | The tweet ID to get the thread context for |
cursor | string | — | Pagination cursor from a previous next_cursor |
{
"tweets": [ ... ], "count": 6, "has_next_page": false, "next_cursor": "", "status": "success", "msg": "success" }
Note: this endpoint paginates unevenly — a page may return few or zero tweets while has_next_page is still true. Follow next_cursor until has_next_page is false to collect the whole thread.
Tool: create_tweet
Post a new tweet or reply. Supports quotes, media, communities, and scheduling. Requires the cookie + proxy env vars (see step 2).
| Parameter | Type | Default | Description |
|---|---|---|---|
tweet_text | string | (required) | The text content of the tweet |
reply_to_tweet_id | string | — | Tweet ID to reply to (makes this a reply) |
quote_tweet_id | string | — | Tweet ID to quote |
attachment_url | string | — | URL for quote (alternative to quote_tweet_id) |
community_id | string | — | Post inside a specific community |
is_note_tweet | boolean | false | Allow >280 chars (Premium accounts) |
media_ids | string[] | — | Media IDs from a prior /twitter/upload_media_v2 |
schedule_for | string | — | ISO-8601 future time, e.g. 2026-01-20T10:00:00.000Z |
{ "tweet_id": "1234567890123456789", "status": "success", "msg": "success" }
Tool: delete_tweet
Delete one of your tweets by ID. Requires the cookie + proxy env vars.
| Parameter | Type | Default | Description |
|---|---|---|---|
tweet_id | string | (required) | The ID of the tweet to delete |
{ "status": "success", "msg": "success" }
Contributing
Local development, build, and testing instructions are in CONTRIBUTING.md.
License
MIT — see LICENSE.
Credits
Based on the official twitterapi-io agent skill: https://github.com/kaitoInfra/twitterapi-io API service: https://twitterapi.io