TwitterAPIs
MCP server by TwitterAPIs Community
Gives AI assistants access to Twitter and X data through the TwitterAPIs service, with no X developer account needed. It covers search, profiles, timelines, DMs, Grok, monitoring and posting actions for developers and AI agents.
Install TwitterAPIs
Built from the published package, never by AI.
claude mcp add twitterapis -e TWITTERAPIS_KEY=YOUR_TWITTERAPIS_KEY -- npx -y @twitterapis/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"twitterapis": {
"env": {
"TWITTERAPIS_KEY": "YOUR_TWITTERAPIS_KEY"
},
"args": [
"-y",
"@twitterapis/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"twitterapis": {
"env": {
"TWITTERAPIS_KEY": "YOUR_TWITTERAPIS_KEY"
},
"args": [
"-y",
"@twitterapis/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"twitterapis": {
"env": {
"TWITTERAPIS_KEY": "YOUR_TWITTERAPIS_KEY"
},
"args": [
"-y",
"@twitterapis/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add twitterapis --env TWITTERAPIS_KEY=YOUR_TWITTERAPIS_KEY -- npx -y @twitterapis/mcp{
"mcpServers": {
"twitterapis": {
"env": {
"TWITTERAPIS_KEY": "YOUR_TWITTERAPIS_KEY"
},
"args": [
"-y",
"@twitterapis/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add twitterapis npx -y @twitterapis/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the twitterapis block.
About
TwitterAPIs is the official MCP server for twitterapis.com. It lets an AI assistant in clients such as Claude, Cursor, Windsurf or VS Code search tweets, read profiles, timelines, followers, threads and lists, and query X's Grok. With a linked X account, it can also post, reply, like, retweet or follow.
Each tool maps to one REST endpoint at api.twitterapis.com, and the server holds no state. Public reads need only an API key. Account-only reads and most write actions act as an authenticated X account, which requires a linked session or inline credentials. The server suits developers and AI agents that need Twitter or X data without their own X developer account.
Written from the project's README and checked against it.
Tools it gives your assistant
twitter_advanced_searchSearch tweets with X operators such as from:, min_faves: and since:.twitter_user_infoReturns a full profile by handle, including bio, counts and verification.twitter_user_tweetsReturns a user's recent original tweets, with replies excluded.twitter_tweet_threadReturns the full author thread, read forward from the first tweet.twitter_user_followersLists accounts that follow a user.twitter_list_tweetsReturns posts by a List's members, filterable by date and product.twitter_dm_listLists your DM conversations in read-only mode, using a linked session.twitter_grok_chatAsks X's Grok, grounded in live X data, and returns the answer with cited sources.twitter_trendsReturns current top trends for a location, category or business and finance.twitter_account_meShows your twitterapis.com account credits, usage and email.
What you need
- A TwitterAPIs API key from twitterapis.com
- An MCP client such as Claude Desktop, Cursor, Windsurf or VS Code
- A linked X session or inline credentials for account-only reads and write actions
- A residential proxy is recommended for write actions
| Setting | Needed | What it is |
|---|---|---|
TWITTERAPIS_Environment variable, secret | Required | Your twitterapis.com API key. Create one at https://www.twitterapis.com/dashboard. Required: every tool call authenticates with it. |
TWITTERAPIS_Environment variable | Optional | Override the API base URL. Defaults to https://api.twitterapis.com. Only set this if you were given a different endpoint. Default: https://api.twitterapis.com |
TWITTERAPIS_Environment variable | Optional | Per-request timeout in milliseconds. Raise it if you page through large follower lists on a slow link. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Search recent tweets from @anthropic that have over 500 likes.
- Show me the full thread that starts with this tweet URL.
- Ask Grok what people are saying about this topic today, with sources.
Good to know
- Account-only reads and most write actions need a linked X session, otherwise they return HTTP 409.
- X soft-blocks writes sent from datacenter IPs, so a residential proxy is recommended for writes.
- Reads and writes are metered per call, so each call has a cost.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to TwitterAPIs
All alternatives →Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.
Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.
Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.
Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.
Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.
Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.
Compare with Agent Skills Search Server, Exa or Apify
TwitterAPIs: common questions
Does this need an X developer account?
No. The source says the server works with no X developer account, using a twitterapis.com API key.
Can it post to X?
Yes, through write actions such as post, reply, like, retweet and follow. These act as an X account you link to your key.
How much does it cost?
The source says most reads cost $0.0008 per call and creating a tweet costs $0.0016. New accounts get $0.50 of free credit with no card.
How do I install TwitterAPIs?
In Claude Code run claude mcp add twitterapis -e TWITTERAPIS_KEY=YOUR_TWITTERAPIS_KEY -- npx -y @twitterapis/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is TwitterAPIs the official server?
TwitterAPIs is a community project by TwitterAPIs, not verified by a company domain.
Is TwitterAPIs free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is TwitterAPIs safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to TwitterAPIs?
Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).
Does TwitterAPIs work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
