# 如何让 Dify 读小红书、抖音和 TikTok

Dify 可以通过 SocialToAI 托管的 MCP 服务读 18 个平台（包括小红书、抖音和 TikTok）上公开可见的内容：填一个地址和一把 API Key，由 Dify 放在请求头里发出。每次调用 1 积分起（≈ $0.002–$0.0033），失败不扣。

- 页面：https://socialtoai.com/zh/connect/dify/
- 最近更新：2026-10-25

## 接入 Dify

Dify 把 SocialToAI 的 API Key 放在请求头里发出。Key 只放在下面步骤说的地方，不要写进地址，也不要贴进对话。

- 在控制台创建一把 Key。
- 在 Dify 打开“工具 → MCP”，添加一个 HTTP 服务并填入这些值；请求头在高级设置里。
- 把 <YOUR_API_KEY> 换成你的 Key 并保存，之后就能把这些工具加进 Agent 或工作流。

| 工具 → MCP → 添加 MCP 服务（HTTP） | 填什么 |
| --- | --- |
| 服务端点 URL | `https://mcp.socialtoai.com/mcp` |
| 名称 | `SocialToAI` |
| 服务器标识符 | `socialtoai` |
| 请求头 | `Authorization: Bearer <YOUR_API_KEY>` |

## 确认接好了

问 Dify：“你能用哪些 SocialToAI 工具？”它会列出 18 个工具，查找和列出它们不扣积分。之后直接用大白话问，不用点名工具或参数，客户端会自己选。

## 可以这样问

每个平台一个可以先试的问题，以及它会发出的调用。积分按每次调用算；一个回答可能要调用几次。

| 平台 | 提问 | 价格键 | 积分 |
| --- | --- | --- | --- |
| [TikTok](https://socialtoai.com/zh/platforms/tiktok.md) | 在 TikTok 上搜和“space station”有关的视频。 | `tiktok.search` | 2 |
| [Reddit](https://socialtoai.com/zh/platforms/reddit.md) | 在 Reddit 上搜和“saturn rings”有关的帖子。 | `reddit.search` | 2 |
| [X](https://socialtoai.com/zh/platforms/x.md) | 在 X 上搜和“weather forecast”有关的帖子。 | `x.search` | 2 |
| [YouTube](https://socialtoai.com/zh/platforms/youtube.md) | 在 YouTube 上搜和“meteor shower”有关的视频。 | `youtube.search` | 2 |
| [小红书](https://socialtoai.com/zh/platforms/xiaohongshu.md) | 在小红书上搜和“咖啡”有关的笔记。 | `xiaohongshu.search` | 12 |
| [抖音](https://socialtoai.com/zh/platforms/douyin.md) | 在抖音上搜和“露营”有关的视频。 | `douyin.search` | 12 |
| [Instagram](https://socialtoai.com/zh/platforms/instagram.md) | 在 Instagram 上找和“nike”有关的账号。 | `instagram.search:user` | 3 |
| [LinkedIn](https://socialtoai.com/zh/platforms/linkedin.md) | 在 LinkedIn 上搜和“ai agents”有关的帖子。 | `linkedin.search` | 2 |

## 花多少

每次调用 1 积分起（≈ $0.002–$0.0033），每次返回都写明扣了多少、还剩多少。调用失败不扣；搜索正常执行但没搜到，照常按一次调用扣。注册送 100 积分，不用绑卡。积分不过期，不订阅。详见[价格](https://socialtoai.com/zh/pricing.md)。

## 常见问题

### 需要各平台的账号吗？

不需要。SocialToAI 读的是各平台上公开可见的内容，你不用登录这些平台，也不用提供 Cookie。

### Key 放在哪？

放在上面步骤说的地方（工具 → MCP → 添加 MCP 服务（HTTP））。Key 在控制台创建，只显示一次，不要写进地址。

### 能读哪些平台？

18 个平台：[全部平台和每次调用的积分](https://socialtoai.com/zh/platforms.md)。

- [全部客户端](https://socialtoai.com/zh/mcp.md)：所有客户端同一个地址，以及服务列出的工具。
- [Claude](https://socialtoai.com/zh/connect/claude.md)：登录即可，不用 Key。
- [ChatGPT](https://socialtoai.com/zh/connect/chatgpt.md)：登录即可，不用 Key。
- [Claude Code](https://socialtoai.com/zh/connect/claude-code.md)：登录即可，不用 Key。
