TwtAPI

السجل الرسمي البحث والويب

Hosted Twitter/X tools for search, users, timelines, followers, trends, and research.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http twtapi 'https://mcp.twtapi.com/mcp' --header 'Authorization: <Bearer token using your TwtAPI MCP key, for example: Bearer sk-your-mcp-key>'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "twtapi": {
            "type": "http",
            "url": "https://mcp.twtapi.com/mcp",
            "headers": {
                "Authorization": "<Bearer token using your TwtAPI MCP key, for example: Bearer sk-your-mcp-key>"
            }
        }
    }
}
Remote (sse)
Claude Code
claude mcp add --transport sse twtapi 'https://mcp.twtapi.com/sse?mcp_key={mcp_key}'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "twtapi": {
            "type": "sse",
            "url": "https://mcp.twtapi.com/sse?mcp_key={mcp_key}"
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. TwtAPI MCP Server
  2. Quick start
  3. Client setup
  4. Available tools
  5. Documentation
  6. Health check
  7. Security

TwtAPI MCP Server

Use public Twitter/X data from Cursor, Claude Code, Codex CLI, Grok, or any compatible MCP client. TwtAPI hosts the server, so there is no local runtime to install or maintain.

Quick start

  1. Create a free TwtAPI account at twtapi.com.
  2. Open the MCP page in the dashboard and generate an sk- MCP key.
  3. Pick a client configuration below and replace sk-your-mcp-key.

The recommended transport is Streamable HTTP:

https://mcp.twtapi.com/mcp

Send the MCP key as a bearer token:

Authorization: Bearer sk-your-mcp-key

SSE remains available for clients that do not yet support Streamable HTTP:

https://mcp.twtapi.com/sse?mcp_key=sk-your-mcp-key

Client setup

Available tools

The hosted server currently exposes 10 tools for search, user lookup, timelines, followers, tweet detail, and trends. See docs/tools.md for parameters and example prompts.

Documentation

Health check

curl https://mcp.twtapi.com/health

Expected response:

{"status":"ok","service":"twtapi-mcp"}

Security

Do not commit MCP keys to a repository. Prefer environment variables or your client's secret storage. Regenerate the key from the TwtAPI dashboard if it is exposed.

This repository contains public configuration and documentation for the hosted service. The production server implementation is maintained separately.

الأسئلة الشائعة

ما هو TwtAPI؟

Hosted Twitter/X tools for search, users, timelines, followers, trends, and research.

كيف أثبّت TwtAPI؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http twtapi 'https://mcp.twtapi.com/mcp' --header 'Authorization: <Bearer token using your TwtAPI MCP key, for example: Bearer sk-your-mcp-key>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج TwtAPI إلى مفتاح API؟

نعم. يتطلب Authorization، وتضبطها في إعداداته.

هل TwtAPI مفتوح المصدر؟

شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.

من يصون TwtAPI؟

ينشره TonyGJJ. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.