---
title: "X（推特）MCP 服务器：不用 X API 也能读 · SocialToAI"
canonical: https://socialtoai.app/zh/mcp/x/
updated: 2026-11-01
---

# X MCP 服务器

SocialToAI 是一个托管的 MCP 服务，让你的 AI 直接读 X：搜帖子，读帖子详情、评论、账号资料、账号发布的帖子和热榜。在 Claude、ChatGPT 或 Cursor 里填一个地址就能用，不用 X 账号，不用提供 Cookie，本机也不用装任何东西。每次调用 1 到 6 积分（低至 $0.002），失败不扣。最近实测：2026-11-19。

- 页面：https://socialtoai.app/zh/mcp/x/
- 最近更新：2026-11-01
- 最近实测：2026-11-19

## 接入 SocialToAI

地址：`https://socialtoai.app/mcp`

在你的 AI 里添加 MCP 服务器，填这个地址。弹出登录页就用邮箱登录、点“允许”。需要填 Key 的工具，去控制台复制一把 Key，放进请求头：`Authorization: Bearer <YOUR_API_KEY>`。 [去拿 Key](https://socialtoai.app/console/keys/)

在终端里：运行命令，再登录：

Claude Code：

```
claude mcp add --transport http socialtoai https://socialtoai.app/mcp
```

然后在 Claude Code 里输入 /mcp，选 socialtoai，登录。

Codex：

```
codex mcp add socialtoai --url https://socialtoai.app/mcp
```

然后在打开的浏览器里登录。

写程序直接调接口：用 Key，见 [API 文档](https://socialtoai.app/zh/docs.md)。

## 按客户端看详细步骤

同一个地址。每个客户端一页，写明在哪里填、怎么登录，以及接好后可以先问什么。

- [Claude Code](https://socialtoai.app/zh/connect/claude-code.md)：运行命令，再登录、点“允许”
- [Claude app](https://socialtoai.app/zh/connect/claude.md)：粘贴地址，登录后点“允许”
- [ChatGPT](https://socialtoai.app/zh/connect/chatgpt.md)：粘贴地址，登录后点“允许”
- [Cursor](https://socialtoai.app/zh/connect/cursor.md)：填地址，登录后点“允许”
- [Codex](https://socialtoai.app/zh/connect/codex.md)：运行命令，再登录、点“允许”
- [Trae](https://socialtoai.app/zh/connect/trae.md)：几行配置加一把 Key
- [Cherry Studio](https://socialtoai.app/zh/connect/cherry-studio.md)：表单里填地址和 Key
- [Dify](https://socialtoai.app/zh/connect/dify.md)：表单里填地址和 Key
- [n8n](https://socialtoai.app/zh/connect/n8n.md)：表单里填地址和 Key

MCP 页：https://socialtoai.app/zh/mcp.md

## 你的 AI 在 X 上能调用什么

| 工具 | 返回什么 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- |
| `search` | 按关键词找帖子：正文、作者、点赞数、评论数、播放或阅读数和发布时间。 | `x.search` | 2 | https://socialtoai.app/zh/x-search-api.md |
| `trending` | 现在的热榜：标题、名次和热度。 | `x.trending` | 6 | https://socialtoai.app/zh/x-trending-api.md |
| `detail` | 用编号或链接取一条帖子：正文、作者、点赞数、评论数、播放或阅读数和发布时间。 | `x.detail` | 1 | https://socialtoai.app/zh/x-detail-api.md |
| `comments` | 一条帖子下的评论：正文、点赞数、回复数和时间。 | `x.comments` | 2 | https://socialtoai.app/zh/x-comments-api.md |
| `user_profile` | 一个账号：名称、简介、粉丝数、关注数和作品数。 | `x.user_profile` | 1 | https://socialtoai.app/zh/x-user-profile-api.md |
| `user_posts` | 一个账号最近发布的帖子。 | `x.user_posts` | 2 | https://socialtoai.app/zh/x-user-posts-api.md |

### X 独有的接口（通过 call 工具）

| 接口 | 做什么 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- |
| `community` | 按社群编号取 X 社群的资料。 | `x.community` | 1 | https://socialtoai.app/zh/x-community-api.md |
| `community_posts` | 按社群编号取一页这个 X 社群里的帖子。 | `x.community_posts` | 4 | https://socialtoai.app/zh/x-community-posts-api.md |
| `list_posts` | 按列表编号取一页这个 X 列表时间线上的帖子，从最新的开始，每页约 100 条。 | `x.list_posts` | 2 | https://socialtoai.app/zh/x-list-posts-api.md |
| `article` | 按帖子编号取这条 X 帖子附带的长文。 | `x.article` | 2 | https://socialtoai.app/zh/x-article-api.md |
| `quotes` | 按帖子编号取一页引用它的 X 帖子，可按时间或按热门排。 | `x.quotes` | 4 | https://socialtoai.app/zh/x-quotes-api.md |
| `retweeters` | 按帖子编号取一页转推了这条 X 帖子的账号。 | `x.retweeters` | 2 | https://socialtoai.app/zh/x-retweeters-api.md |
| `thread` | 按对话串里任意一条帖子的编号，取这条对话串的帖子。 | `x.thread` | 9 | https://socialtoai.app/zh/x-thread-api.md |
| `followers` | 按账号名取一页关注该 X 用户的账号，每页最多 200 个，从最新关注的开始。 | `x.followers` | 12 | https://socialtoai.app/zh/x-followers-api.md |
| `following` | 按账号名取一页该 X 用户关注的账号，每页最多 200 个。 | `x.following` | 12 | https://socialtoai.app/zh/x-following-api.md |
| `mentions` | 按账号名取一页提及该 X 用户的帖子，从最新的开始。 | `x.mentions` | 4 | https://socialtoai.app/zh/x-mentions-api.md |
| `community_members` | 按社群编号取一页加入了这个 X 社群的账号，每页约 20 个。 | `x.community_members` | 5 | https://socialtoai.app/zh/x-community-members-api.md |
| `list_followers` | 按列表编号取关注了这个 X 列表的账号，最多 20 个。 | `x.list_followers` | 5 | https://socialtoai.app/zh/x-list-followers-api.md |
| `list_members` | 按列表编号取一页这个 X 列表收录的账号，每页 20 个。 | `x.list_members` | 5 | https://socialtoai.app/zh/x-list-members-api.md |

## 一次录制的对话

### 产品口碑

> Reddit 和 X 上，大家对升降桌有哪些不满？

| 平台 | 工具 | 发了什么 | 请求数 | 返回 | 积分 |
| --- | --- | --- | --- | --- | --- |
| Reddit | [`search`](https://socialtoai.app/zh/reddit-search-api.md) | `query: "standing desk"` | 1 | 7 帖 | 2 |
| X | [`search`](https://socialtoai.app/zh/x-search-api.md) | `query: "standing desk"` | 1 | 11 帖 | 2 |
| Reddit | [`comment_insights`](https://socialtoai.app/zh/tools/comment-insights.md) | `targets: ["https://www.reddit.com/r/BuyItForLife/comments/1ntedtv/do_standing_desks_actually_help_or_are_they/","https://www.reddit.com/r/WFH/comments/1q1ia5q/i_bought_an_expensive_standing_desk_6_months_ago/","https://www.reddit.com/r/StandingDesk/comments/qd8b8v/was_your_standing_desk_worth_it_in_the_long_run/"] · focus: "what people complain about with their standing desk" · scale: "small"` | 1 | 173 条评论 | 84 |
| **合计** |  |  | 3 | 191 条 | **88** |

录制于 2026-10-18

两边都搜了，再读了 Reddit 上讨论最多的 3 帖下的 173 条评论。能判断的 162 条里有 55 条在抱怨，集中在这几点：

1. **腰背和脖子疼** (12%，20 条评论)：[“Either position for 8 hours solid leaves my back hurting.”](https://www.reddit.com/r/BuyItForLife/comments/1ntedtv/do_standing_desks_actually_help_or_are_they/ngv5bws/)
2. **忘了在坐和站之间切换** (11%，18 条评论)：[“I forget I have it most of the time...”](https://www.reddit.com/r/BuyItForLife/comments/1ntedtv/do_standing_desks_actually_help_or_are_they/ngt2t43/)
3. **站久了脚疼** (8%，13 条评论)：[“My feet do get tired by the end of the day it’s better than the back pain.”](https://www.reddit.com/r/WFH/comments/1q1ia5q/i_bought_an_expensive_standing_desk_6_months_ago/nx6mz78/)

本次共 88 积分 · $0.29。每个结论都能点回原帖。

### 品牌口碑

> 最近 X 上大家怎么说 Notion？

| 平台 | 工具 | 发了什么 | 请求数 | 返回 | 积分 |
| --- | --- | --- | --- | --- | --- |
| X | [`brand_buzz`](https://socialtoai.app/zh/tools/brand-buzz.md) | `brand: "Notion" · about: "a note-taking and workspace app" · platforms: ["x"] · window: "30d" · scale: "small"` | 1 | 34 帖 | 16 |
| **合计** |  |  | 1 | 34 条 | **16** |

录制于 2026-10-18

找到的 34 条里有 15 条确实在说它：正面 87%，中性 7%，负面 7%。提到最多的是：

1. **功能** (100%，15 帖)：[“Got @… Plus or Pro? That subscription now covers your AI usage in Notion.”](https://x.com/NotionHQ/status/2104994569964388738)
2. **价格** (13%，2 帖)：[“Notion Plus Free for Students & Teachers 😳”](https://x.com/0xranjeet/status/2108545032181666075)
3. **易用性** (13%，2 帖)：[“Button automations can now message your agents.”](https://x.com/NotionHQ/status/2110853125389029437)

本次共 16 积分 · $0.053。每个结论都能点回原帖。

### 爆款内容

> 这周 X 上哪些讲 AI agents 的帖子火了？

| 平台 | 工具 | 发了什么 | 请求数 | 返回 | 积分 |
| --- | --- | --- | --- | --- | --- |
| X | [`research viral_finder`](https://socialtoai.app/zh/tools/viral-finder.md) | `query: "AI agents" · window: "7d" · scale: "small"` | 1 | 31 帖 | 24 |
| **合计** |  |  | 1 | 31 条 | **24** |

录制于 2026-10-18

找到 31 条，7 条达到平时的 3 倍以上。起量最多的几种形式，占比是占能判断形式的 31 条的比例：

1. **展示** (23%，7 帖)：[“transformed an ordinary academic reading list into an interactive research lab right inside the browser”](https://x.com/Bober_smart/status/2110080979742192101)
2. **故事** (10%，3 帖)：[“Grok Bot built me a completely autonomous business which has already generated $1,100”](https://x.com/AlexFinn/status/2110181971280433613)
3. **盘点** (29%，9 帖)：[“10 GitHub skills + tools that make Hermes instantly more useful.”](https://x.com/BentoBoiNFT/status/2110111219172712922)

本次共 24 积分 · $0.08。每个结论都能点回原帖。

## 可以这样问

- 这周 X 上，家用咖啡和抹茶哪个更火？ → search, search：4 积分 ($0.013)
- 读一下这条 X 帖子的评论，告诉我大家在抱怨什么。 → detail, comments × 3：7 积分 ($0.023)
- 在 X 上找 5 个发露营咖啡内容的账号，看看他们最近发了什么。 → search, user_posts × 5：15 积分 ($0.05)

## 做不到什么

- **X 给不了的字段**：这些字段返回 null，并列在返回的 unavailable 里，你的 AI 会把它读成“平台没给”，不会当成 0。 `title`, `metrics.shares`, `is_pinned`, `id`, `heat`, `url`, `parent_id`, `root_id`
- **只读，不代你发布**：你的 AI 不能通过 SocialToAI 在 X 上发帖、评论、点赞、关注或发私信。
- **只有公开可见的内容**：X 上任何人都能看到的内容和账号信息。登录后才看得到的都没有：私密账号、私信、你自己的推荐流。

## 常见问题

**X 有官方 API 吗？这个 MCP 是官方的吗？**

有：X 提供读取帖子、用户和搜索结果的官方 API，按调用量从预付额度扣费。这个 MCP 服务由 SocialToAI 运行，不是平台官方的，和平台没有关联。来源：docs.x.com，核对于 2026-10-17。

**Claude 和 ChatGPT 能用吗？**

能。在 Claude 或 ChatGPT 的网页版或桌面版里，把上面的地址粘贴为自定义连接器，用邮箱验证码登录后点“允许”。Claude Code、Codex 是一条命令，Cursor 是一段配置，之后同样登录；只能填请求头的工具用一把 Key。

**要 X 账号吗？会牵连我的账号吗？**

不用。不用你的账号，不会牵连你的账号：不用登录 X，不用 Cookie，本机不用装东西。它只读 X 上公开可见的内容，不能发布。

**多少钱？**

每次调用 1 积分起，按第一档约 ¥0.02（$0.0033）。失败不扣，每次调用都写明扣了多少。注册送 100 积分，不用绑卡。

## 相关页面

- [X API](https://socialtoai.app/zh/platforms/x.md)
- [怎么用 AI 看 X（推特）上大家怎么说一个品牌？](https://socialtoai.app/zh/docs/guides/track-brand-mentions-on-x.md)
- [怎么让 AI 去 Reddit 和 X 上读用户对一类产品的吐槽？](https://socialtoai.app/zh/docs/guides/read-reddit-and-x-for-product-complaints.md)
- [怎么用 AI 找 X（推特）上一个话题里火起来的帖子？](https://socialtoai.app/zh/docs/guides/find-viral-posts-on-x.md)
- [TikTok MCP 服务器](https://socialtoai.app/zh/mcp/tiktok.md)
- [Instagram MCP 服务器](https://socialtoai.app/zh/mcp/instagram.md)
- [Reddit MCP 服务器](https://socialtoai.app/zh/mcp/reddit.md)
- [YouTube MCP 服务器](https://socialtoai.app/zh/mcp/youtube.md)
- [Facebook MCP 服务器](https://socialtoai.app/zh/mcp/facebook.md)
- [LinkedIn MCP 服务器](https://socialtoai.app/zh/mcp/linkedin.md)
- [Threads MCP 服务器](https://socialtoai.app/zh/mcp/threads.md)
- [Telegram MCP 服务器](https://socialtoai.app/zh/mcp/telegram.md)
- [Pinterest MCP 服务器](https://socialtoai.app/zh/mcp/pinterest.md)
- [小红书 MCP 服务器](https://socialtoai.app/zh/mcp/xiaohongshu.md)
- [抖音 MCP 服务器](https://socialtoai.app/zh/mcp/douyin.md)
- [微博 MCP 服务器](https://socialtoai.app/zh/mcp/weibo.md)
- [公众号 MCP 服务器](https://socialtoai.app/zh/mcp/wechat.md)
- [B 站 MCP 服务器](https://socialtoai.app/zh/mcp/bilibili.md)
- [知乎 MCP 服务器](https://socialtoai.app/zh/mcp/zhihu.md)
- [快手 MCP 服务器](https://socialtoai.app/zh/mcp/kuaishou.md)
- [视频号 MCP 服务器](https://socialtoai.app/zh/mcp/wechat-channels.md)
