twitterapi-docs-mcp (also known in the GitHub repository as twitterapi-io-mcp) is an MCP (Model Context Protocol) server that provides offline documentation access to TwitterAPI.io for AI assistants such as Claude, Cursor, and VS Code Copilot. It is independently maintained by community developers and is not affiliated with TwitterAPI.io officially.
Purpose The core purpose of this tool is to let AI assistants instantly access the complete TwitterAPI.io documentation locally, avoiding the need for developers to switch back and forth between their editor and the documentation website. When your AI assistant supports MCP, it can directly read the packaged documentation snapshot, with no network requests and no need to configure any API keys.
Main capabilities Repository materials show that this MCP server packages the following locally:
- 67 active API endpoints, including complete HTTP methods, request body/query parameters, cURL examples, and response structures.
- 32 guide pages, covering topics such as pricing, authentication, rate limits, Webhook, and streaming.
- 24 blog posts, providing tutorials and use cases.
- All v2 write endpoints document the login_cookies, proxy, and body parameters.
- All deprecated v1 endpoints have been removed, retaining only the current v2 endpoints.
The tools provided by this server include functions for querying guides, endpoints, authentication, pricing, endpoint lists, and documentation search. The available tool types mentioned in the materials are: get_twitterapi_guide, get_twitterapi_endpoint, get_twitterapi_auth, get_twitterapi_pricing, list_twitterapi_endpoints, search_twitterapi_docs. Search supports fuzzy matching and typo tolerance, and it is recommended to use max_results: 5 to get focused results.
Usage Requires Node.js 18.18.0 or higher. The npm package name is twitterapi-io-mcp.
In Claude Code, add the configuration to the config file for the corresponding system: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json
In Cursor, add the configuration to .cursor/mcp.json in the project root directory. In VS Code / VS Code Insiders, add the configuration to .vscode/mcp.json in the project root directory. In Windsurf, add the configuration to ~/.codeium/windsurf/mcp_config.json. It can also be built from source.
If the AI tool does not support MCP (such as OpenClaw), you can use the Skill version: dorukardahan/twitterapi-io-skill, which is a single markdown file containing all 67 active endpoints, suitable for OpenClaw, Claude, GPT, Gemini, and any LLM.
Typical question examples (from the materials):
- "What is the rate limit for TwitterAPI.io?" triggers get_twitterapi_guide
- "Show the tweet advanced search endpoint" triggers get_twitterapi_endpoint
- "How do I authenticate via the API?" triggers get_twitterapi_auth
- "What is the pricing?" triggers get_twitterapi_pricing
- "List all user-related endpoints" triggers list_twitterapi_endpoints, category: "user"
- "How do Webhook filter rules work?" triggers search_twitterapi_docs
- "Which write endpoints require login?" triggers search_twitterapi_docs, query: "login_cookies"
- "How do I upload media and create a tweet?" triggers sequential calls to get_twitterapi_endpoint
Use cases Suitable for those currently using TwitterDevelopers doing Twitter/X API development with API.io can, while writing code, use an AI assistant to quickly look up documentation information such as endpoint parameters, authentication methods, rate limits, pricing, and Webhook configuration. It is also suitable for scenarios where you need to consult documentation offline and do not want to configure API keys or make real-time API calls.
Limitations and Notes
- This server only provides documentation snapshots and does not proxy real-time API calls, so you cannot directly call the TwitterAPI.io interface through it.
- The documentation content is based on a snapshot at packaging time and may lag behind the latest official documentation; be mindful of version updates before use.
- The project is an independent community project and is not officially affiliated with TwitterAPI.io.
- Requires Node.js 18.18.0 or higher.
- The first run of npx will download the package from npm and may take time; if it gets stuck, you can try installing it globally: npm install -g twitterapi-io-mcp.
- After adding the server configuration in an MCP client, most clients need to be restarted to detect the new server.
- The materials mention a platform recommendation: Twitter has disabled the since:/until: search operators, so use since_time:UNIX / until_time:UNIX instead.
Version History Summary
- v1.2.0: OpenAPI-first scraper rewrite, structured parameter types, response structures, eliminating Vercel checkpoint issues.
- v1.1.x: Added list_timeline and get_user_timeline, removed 7 deprecated V1 endpoints, security fixes (hono, ajv, express-rate-limit).
- v1.0.23: Platform recommendation - Twitter disabled the since:/until: search operators, so use since_time:UNIX / until_time:UNIX instead.
- v1.0.22: Added 7 endpoints (get_space_detail, get_tweet_replies_v2, get_user_about, etc.).