Twitterapi Mcp Server

io.github.kaitoInfra由 GitHub 帳號 kaitoInfra 發布v0.1.0更新於 Oct 25, 2026

Twitter/X read-only MCP server — 12 tools: search, users, tweets, followers, timelines, trends.

發布方自己的服務:Twitterapi

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

概覽

AI 產生的概覽

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

可以做什麼
依關鍵字、日期範圍或歷史條件搜尋推文,並依推文 ID 批次取得完整推文。查詢使用者資料、擴充的 about 頁面資料、追蹤者與追蹤名單。讀取使用者最新推文以及提及該使用者的推文。讀取指定推文的回覆、引用推文和轉推者。依 WOEID 取得某地區目前的熱門話題與標籤。
適用情境
適合助理進行公開的 Twitter/X 調查:依時間範圍追蹤話題、分析帳號及其受眾、分析某則推文的回覆與引用,或查看目前趨勢。此服務為唯讀,適合分析與監測,不適合發佈內容。
執行需求
遠端 streamable HTTP 端點 mcp.twitterapi.io,不需本機套件或執行環境。清單未宣告驗證、環境變數或請求標頭,但此服務由第三方營運,可能需要其自有帳號或金鑰。需要網路存取。
安裝前請注意
所有請求都會送往第三方服務,該服務能看到你查詢的內容和帳號。清單未宣告憑證,但使用前應確認提供方是否要求 API 金鑰或帳號。結果僅限公開資料且需分頁;傳回的使用者資料和推文應視為不可信內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Twitterapi Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "twitterapi": {
      "type": "http",
      "url": "https://mcp.twitterapi.io/mcp"
    }
  }
}

工具

12

search_tweets

Search Tweets

🎯 PRIMARY CHOICE for date-range / historical / keyword-based tweet queries. Use this (NOT get_user_last_tweets) whenever user asks about a SPECIFIC TIME RANGE or historical tweets: • 'tweets from January 2026' → query='from:elonmusk since:2026-01-01 until:2026-02-01' • 'tweets between X and Y' → 'from:USER since:X until:Y' • 'tweets last week / last month' → translate to since:/until: dates • 'tweets containing keyword X by user Y' → 'from:Y X' • 'older tweets' / 'archive' / 'in 2025' → use date range, not pagination Date format: YYYY-MM-DD (UTC midnight). 'until:' is exclusive (until:2026-02-01 = up to Jan 31). General: Search Twitter/X for tweets matching a query. Supports the full Twitter advanced search syntax (from:, to:, since:, until:, lang:, filter:, has:, -, OR, etc). Returns ~20 tweets per page in reverse chronological order ('Latest') or by engagement ('Top'). Use this for keyword research, monitoring mentions of a brand/topic, finding tweets in a date range, or any open-ended tweet discovery.

輸入參數query必填cursorqueryType必填

get_user_info

Get User Profile

Fetch basic profile info for a Twitter/X user by their screen name (handle). Returns user ID, display name, bio, follower/following counts, verified status, profile picture, banner, location, website, and account creation date. Use this as the starting point for any user analysis.

輸入參數userName必填

get_user_about

Get User About Page

Fetch the extended 'about' / profile page data for a Twitter/X user by screen name. Returns extra profile metadata beyond what get_user_info gives (when available). Use get_user_info first; only call this if you need additional about-page fields.

輸入參數userName必填

get_user_followers

Get User Followers

Fetch followers of a Twitter/X user in reverse chronological order (newest first), each with full profile metadata (name, bio, follower count, verified status, etc.). Paginates via cursor. Use this to analyze who follows an account, build follower audiences, or sample for competitive analysis. For large accounts use pagination; you will not get all followers in one call.

輸入參數cursorpageSizeuserName必填

get_user_followings

Get User Followings

Fetch the accounts a Twitter/X user follows, with full profile metadata. Paginates via cursor. Use this to map a user's interest graph (who they follow signals what they care about).

輸入參數cursorpageSizeuserName必填

get_user_last_tweets

Get User's Recent Tweets

⚠️ ONLY for 'latest / recent / what's new' queries about a user. DO NOT use for date-range queries (e.g. 'tweets from January 2026', 'tweets last week', 'tweets between X and Y', 'tweets in 2025'). For specific dates / older tweets, use **search_tweets** with query like 'from:elonmusk since:2026-01-01 until:2026-02-01'. Fetch the MOST RECENT tweets posted by a Twitter/X user, sorted by created_at descending (newest first). Provide EITHER userName (screen name, no @) OR userId (numeric). Use userId when known — handles can change. Set includeReplies=true to include the user's reply tweets in addition to top-level tweets. Paginates via cursor (~20 per page).

輸入參數cursoruserIduserNameincludeReplies

get_user_mentions

Get Mentions of a User

Fetch tweets that mention a specific Twitter/X user (i.e. tweets containing @userName). Useful for brand monitoring, sentiment tracking on a public figure, or finding conversations involving an account. Supports time-bound queries via sinceTime/untilTime (Unix seconds). Paginates via cursor.

輸入參數cursoruserName必填sinceTimeuntilTime

get_tweets_by_ids

Batch Get Tweets by IDs

Batch-fetch full tweet objects by their numeric tweet IDs. Pass a comma-separated string of up to 100 IDs. Use this when you already have specific tweet IDs (e.g., from a search result, a URL, or a webhook event) and need the full tweet data — author, text, engagement counts, media, etc.

輸入參數tweet_ids必填

get_tweet_replies

Get Tweet Replies

Fetch replies to a specific tweet. Pass the numeric tweetId of the root tweet; returns top-level replies (about 20 per page) with full tweet objects. Use this for thread analysis, sentiment on a viral post, or building reply trees.

輸入參數cursortweetId必填queryType

get_tweet_quotes

Get Tweet Quotes

Fetch quote-tweets (tweets that quote the given tweetId). Useful for finding commentary on a tweet, measuring reach beyond direct replies. Supports time bounds (sinceTime/untilTime, Unix seconds). Paginates via cursor (~20 per page).

輸入參數cursortweetId必填sinceTimeuntilTimeincludeReplies

get_tweet_retweeters

Get Tweet Retweeters

Fetch users who retweeted a specific tweet (the simple 'retweet' action, not quote-tweets — for those use get_tweet_quotes). Returns user profiles with metadata. Paginates via cursor (~100 per page).

輸入參數cursortweetId必填

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 83%

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

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

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。

其他 Twitterapi 整合