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 集成