
Twitterapi
io.github.pedrot95dev由 GitHub 帳號 pedrot95dev 發布v0.1.2更新於 Oct 24, 2026
Read/write X (Twitter) via twitterapi.io: mentions, thread context, create and delete tweets.
發布方自己的服務:Twitterapi
概覽
本機 MCP 伺服器,讓助理透過 twitterapi.io 讀取 X(Twitter)提及與推文串脈絡,並建立或刪除推文。
- 可以做什麼
- 取得提及或回覆某位使用者的推文,支援時間篩選、排序方式與游標分頁,並用 next_cursor 翻頁。取得某則推文周遭的對話串,包含原推文、中間回覆與直接回覆,並附上展開的連結。發布新推文或回覆,支援引用、社群、媒體、長文與排程發布。依 ID 刪除自己的推文。
- 適用情境
- 適合讓助理在 Claude Desktop、Cursor 等 MCP 宿主中監控或彙整 X 上的提及、檢視某則推文周遭的對話,或在自己的帳號上草擬、發布與刪除貼文。
- 執行需求
- 透過 npx 在本機執行,需要 Node.js 18 或更新版本。所有工具都需要 TWITTERAPI_IO_KEY;唯讀工具僅需該金鑰。寫入工具還需要 TWITTERAPI_IO_AUTH_TOKEN 與 TWITTERAPI_IO_CT0(已登入 X 工作階段的 Cookie)以及 TWITTERAPI_IO_PROXY(住宅代理)。需要連線至 twitterapi.io 的網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Twitterapi,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
twitterapi.mcp
MCP server that exposes twitterapi.io endpoints as tools for AI agents and MCP hosts. Written in TypeScript, distributed on npm, runnable with a single npx command.
Current Tools
Quick Start
1. Get an API key
Visit https://twitterapi.io/dashboard and obtain your x-api-key.
2. Cookies + proxy for write actions
create_tweet and delete_tweet authenticate with your account's own session
cookies. From a browser logged into X, open DevTools → Application → Cookies →
https://x.com and copy the auth_token and ct0 values.
The server derives the login_cookies value twitterapi.io expects from
auth_token + ct0. These cookies expire over time (typically weeks); when a
write starts returning an auth error, refresh them from the browser.
The API key alone is enough for the read tools. Add the cookie/proxy vars only if you need write actions.
3. Add to your MCP host
Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json on Windows,
~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
npx -y @pedrot95dev/twitterapi.mcp downloads and runs the latest published version. Only
Node.js (>= 18) is required — no global install needed.
Other MCP hosts (e.g. Cursor): add the same npx command + env vars in the
host's MCP settings UI or config file.
Tool: get_user_mentions
Fetch tweets that mention or reply to a user. Makes a single request per call;
page by passing cursor from a previous response's next_cursor.
Tool: get_tweet_thread_context
Fetch the conversation thread around a tweet. Returns the original tweet, the
intermediate replies up the chain, the tweet itself, and its direct replies.
Each returned tweet includes entities.urls with expanded links — useful for
scanning a mention's surrounding conversation for URLs.
Makes exactly one request per call (1-to-1 with the endpoint — no internal
pagination). Page through longer threads with cursor.
Note: this endpoint paginates unevenly — a page may return few or zero tweets
while has_next_page is still true. Follow next_cursor until
has_next_page is false to collect the whole thread.
Tool: create_tweet
Post a new tweet or reply. Supports quotes, media, communities, and scheduling. Requires the cookie + proxy env vars (see step 2).
Tool: delete_tweet
Delete one of your tweets by ID. Requires the cookie + proxy env vars.
Contributing
Local development, build, and testing instructions are in CONTRIBUTING.md.
License
MIT — see LICENSE.
Credits
Based on the official twitterapi-io agent skill: https://github.com/kaitoInfra/twitterapi-io API service: https://twitterapi.io
來源:README.md,提交 7ba84eb
工具
0版本歷史
1- v0.1.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Twitterapi 整合

Twitterapi
io.twitterapi官方發布者
twitterapi.io 的託管 MCP 伺服器,讓助理搜尋推文、查看 X 使用者、追蹤者、回覆與熱門話題。

Twitterapi Mcp Server
由 GitHub 帳號 kaitoInfra 發布
面向 Twitter/X 的遠端唯讀 MCP 伺服器:可搜尋推文、查詢使用者、追蹤者、時間軸、回覆、引用、轉推者和熱門趨勢。

Twitterapi Io Mcp Server
由 GitHub 帳號 kaitoInfra 發布
twitterapi.io 官方 MCP 伺服器,讓助理搜尋推文並查詢 Twitter/X 使用者、追蹤者、回覆、引用、轉推者和熱門話題。

Twitterapi Io Mcp
由 GitHub 帳號 dorukardahan 發布
內建 TwitterAPI.io 文件離線快照的 MCP 伺服器,讓助理在本機檢索端點、指南、價格與驗證資訊。

Twitterapi Docs Mcp
由 GitHub 帳號 dorukardahan 發布
內建 TwitterAPI.io 文件離線快照的 MCP 伺服器,讓助理不必連網就能查詢端點、指南、價格與驗證資訊。