
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@kaitoinfra/twitterapi-io-mcp-server
Advanced tools
Official Model Context Protocol (MCP) server for twitterapi.io — Twitter / X data API. Search tweets, get user profiles, followers, replies, trends — all via Claude Desktop, Cursor, or any MCP-compatible client.
Official Model Context Protocol server for twitterapi.io — Twitter / X data API for AI agents and applications.
Connect Claude Desktop, Cursor, VS Code Copilot, or any MCP client to twitterapi.io and search tweets, fetch user profiles, get followers, replies, trends, and more — all from natural language.
12 read-only tools mapped 1:1 to twitterapi.io's verified production endpoints:
| Tool | What it does |
|---|---|
search_tweets | Advanced search with Twitter operators (from:, since:, lang:, has:, …) |
get_user_info | User profile basics by screen name |
get_user_about | Extended profile / about page |
get_user_followers | Followers with full profile metadata (paginated) |
get_user_followings | Following list with profile metadata (paginated) |
get_user_last_tweets | A user's recent tweets (timeline) |
get_user_mentions | Tweets that mention a user |
get_tweets_by_ids | Batch fetch tweets by ID (up to 100) |
get_tweet_replies | Replies to a tweet |
get_tweet_quotes | Quote-tweets of a tweet |
get_tweet_retweeters | Users who retweeted a tweet |
get_trends | Trending topics by location (WOEID) |
Sign up at twitterapi.io — free tier available.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"twitterapi-io": {
"command": "npx",
"args": ["-y", "@kaitoinfra/twitterapi-io-mcp-server"],
"env": {
"TWITTERAPI_IO_API_KEY": "your_key_here"
}
}
}
}
Restart Claude Desktop. The 12 tools will be available in any chat — Claude will pick the right one based on your prompt.
Open Settings → MCP → Add new MCP Server:
{
"mcpServers": {
"twitterapi-io": {
"command": "npx",
"args": ["-y", "@kaitoinfra/twitterapi-io-mcp-server"],
"env": {
"TWITTERAPI_IO_API_KEY": "your_key_here"
}
}
}
}
Add to your MCP servers config — same shape as Claude Desktop / Cursor.
claude mcp add twitterapi-io npx -- -y @kaitoinfra/twitterapi-io-mcp-server -e TWITTERAPI_IO_API_KEY=your_key_here
In any MCP-enabled chat:
"Find recent tweets from @elonmusk about AI in the last week"
"Get the follower list of @sama and show me the top 20 by follower count"
"What are the current trending topics in Japan?"
Claude (or your client) will automatically pick search_tweets / get_user_followers / get_trends and call them with the right parameters.
Authentication is via the TWITTERAPI_IO_API_KEY environment variable, injected by your MCP client. The server never stores or logs the key. Each tool call sends the key in the X-API-Key header to https://api.twitterapi.io.
Tools that return lists (followers, replies, search results, etc.) return a next_cursor field. Pass it back as the cursor argument on the next call to page through. Each page is typically ~20 items.
Each tool's input schema is exposed via MCP's tools/list and follows JSON Schema. Run npx @kaitoinfra/twitterapi-io-mcp-server with mcp-inspector to browse interactively:
npx @modelcontextprotocol/inspector npx -y @kaitoinfra/twitterapi-io-mcp-server
By design, this server exposes read-only endpoints. The following are intentionally excluded to keep the server safe for autonomous agent use:
These features are available in the full twitterapi.io REST API — use it directly if you need write access.
@modelcontextprotocol/sdk v1mcp-inspector, Claude Desktop, Cursor, Claude Codegit clone https://github.com/kaitoInfra/twitterapi-io-mcp-server.git
cd twitterapi-io-mcp-server
npm install
npm run build
TWITTERAPI_IO_API_KEY=xxx npm run inspect # opens mcp-inspector
MIT © twitterapi.io
FAQs
Official Model Context Protocol (MCP) server for twitterapi.io — Twitter / X data API. Search tweets, get user profiles, followers, replies, trends — all via Claude Desktop, Cursor, or any MCP-compatible client.
The npm package @kaitoinfra/twitterapi-io-mcp-server receives a total of 76 weekly downloads. As such, @kaitoinfra/twitterapi-io-mcp-server popularity was classified as not popular.
We found that @kaitoinfra/twitterapi-io-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.