TwtAPI

io.github.TonyGJJ由 GitHub 帳號 TonyGJJ 發布v1.0.0更新於 Nov 2, 2026

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

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取資料與分析

概覽

AI 產生的概覽

託管式 TwtAPI MCP 伺服器,讓助理搜尋與研究 Twitter/X 公開資料,包括推文、使用者、時間軸、追蹤者與趨勢。

可以做什麼
  • 搜尋 Twitter/X 內容並查看推文詳情
  • 查詢使用者個人檔案、其時間軸與追蹤者名單
  • 取得熱門趨勢與研究類結果
  • 透過託管端點從 Cursor、Claude Code、Codex CLI 或 Grok 等 MCP 用戶端連線
適用情境
適合助理需要公開 Twitter/X 資料進行研究、追蹤話題或帳號、蒐集社群脈絡,而不想自行建置爬取或 API 整合時使用。
執行需求
遠端託管端點(Streamable HTTP,另提供 SSE),不需本機執行環境。需要免費 TwtAPI 帳號與 sk- 開頭的 MCP 金鑰,以 Authorization bearer 權杖送出。需能連線至 TwtAPI 服務。
安裝前請注意
MCP 金鑰屬於機密:不要提交到程式碼儲存庫,優先使用環境變數或用戶端的密鑰儲存,外洩後應在儀表板重新產生。SSE 方式會把金鑰放在 URL 查詢參數中,較容易外洩。請求會送往第三方託管服務,費用依服務商方案計算。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 TwtAPI,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.TonyGJJ%2Ftwtapi/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "twtapi": {
      "type": "http",
      "url": "https://mcp.twtapi.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

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:

text
https://mcp.twtapi.com/mcp

Send the MCP key as a bearer token:

text
Authorization: Bearer sk-your-mcp-key

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

text
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

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

Expected response:

json
{"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.

來源:README.md,提交 b4590f5

工具

0
該伺服器需要 API 金鑰等憑證,因此 SourceWeft 無法在沒有憑證的情況下讀取其工具,也未收錄。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 75%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。