
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 服务器,让助手无需联网即可检索接口、指南、价格与认证信息。