自定义连接器
任何 MCP 客户端把一个 URL 粘贴到任何支持远程 MCP 的客户端,并在 X-API-Key 请求头中发送你的 Scrapier API 密钥。
https://mcp.scrapier.io/mcp- ClaudeSettings → Connectors → Add
- ChatGPTSettings → Apps → Developer mode → Create
- CursorSettings → MCP → Add new server
为 Claude、Cursor 和 ChatGPT 提供读取任何公开 YouTube 评论串的工具。一条命令即可连接;每次调用都返回类型化 JSON。每个评论串 10 积分。
免费 API 密钥 · 每个评论串 10 积分 · 失败的调用免费
claude mcp add -t http scrapier \ https://mcp.scrapier.io/mcp \ --header "X-API-Key: YOUR_API_KEY"
{ "mcpServers": { "scrapier": {
"command": "npx", "args": ["-y", "mcp-remote", "https://mcp.scrapier.io/mcp",
"--header", "X-API-Key: YOUR_API_KEY"] } } }
{ "mcpServers": { "scrapier": {
"url": "https://mcp.scrapier.io/mcp",
"headers": { "X-API-Key": "YOUR_API_KEY" } } } }
{ "mcpServers": { "scrapier": {
"serverUrl": "https://mcp.scrapier.io/mcp",
"headers": { "X-API-Key": "YOUR_API_KEY" } } } }
# Settings → Connectors → Add custom connector Name: Scrapier URL: https://mcp.scrapier.io/mcp Auth: API key → YOUR_API_KEY
用一个 URL 和你的 API 密钥连接任何支持远程 MCP 的客户端。
把一个 URL 粘贴到任何支持远程 MCP 的客户端,并在 X-API-Key 请求头中发送你的 Scrapier API 密钥。
https://mcp.scrapier.io/mcp选择你的客户端。三步,不到一分钟。
/mcp 查看这些工具。claude mcp add -t http scrapier https://mcp.scrapier.io/mcp --header "X-API-Key: YOUR_API_KEY"
claude_desktop_config.json。{ "mcpServers": { "scrapier": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.scrapier.io/mcp", "--header", "X-API-Key: YOUR_API_KEY"] } } }~/.cursor/mcp.json。{ "mcpServers": { "scrapier": { "url": "https://mcp.scrapier.io/mcp", "headers": { "X-API-Key": "YOUR_API_KEY" } } } }search_endpointsrun_scrapemcp_config.json。{ "mcpServers": { "scrapier": { "serverUrl": "https://mcp.scrapier.io/mcp", "headers": { "X-API-Key": "YOUR_API_KEY" } } } }URL: https://mcp.scrapier.io/mcp Auth: API key → YOUR_API_KEY
问一句 “列出你的 YouTube 工具”。智能体应能找到 run_scrape 和 search_endpoints。
用 search_endpoints 发现,用 run_scrape 调用。
| 工具 | 返回 | 输入 | 关键字段 | 积分 |
|---|---|---|---|---|
run_scrape | 运行评论串爬虫 | endpoint="youtube-comment-replies", continuation_tokens="..." | input_continuation_token, video_id, channel_id, parent_comment_id, video_title | 10 |
{
"success": true,
"data": {
"continuation_tokens": "Eg0SC3Y5UXRNNnFuRzUwGAYygwEaUBIaVWd4SHlJbmw3SXluZ1d2UjhnTjRBYUFCQWci...",
"thread": {
"input_continuation_token": "Eg0SC3Y5UXRNNnFuRzUwGAYygwEaUBIaVWd4SHlJbmw3SXluZ1d2UjhnTjRBYUFCQWci...",
"video_id": "v9QtM6qnG50",
"channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"parent_comment_id": "UgxHyInl7IyngWvR8gN4AaABAg",
"video_title": "I Built A City To Save Kids From Illegal Labor",
"success": true,
"error": null,
"comments": [
{
"id": "UgxHyInl7IyngWvR8gN4AaABAg.AawtXymnHK1AawtnXUJNIO",
"content": "excellent job.",
"published_time_text": "3 days ago",
"published_time": "2026-09-20T08:08:34.750Z",
"reply_level": 1,
"author": {
"name": "@flow1n26",
"channel_id": "UCINudLBlbZCxSEugSRR7dCw",
"is_verified": false,
"is_creator": false,
"avatar_url": "https://yt3.ggpht.com/ytc/AIdro_lHq7nyOQOfims3HaL7WVdERI9RRMCkFIh5R21icJiVxc15lI8jurnAjKeeUVvfLfAcZw=s88-c-k-c0x00ffffff-no-rj",
"channel_url": "https://youtube.com/@flow1n26"
},
"engagement": {
"likes": 524,
"replies": 9
}
}
],
"reply_count": 1,
"next_continuation_token": null,
"has_more": false,
"scraped_at": "2026-09-23T08:08:42.049Z"
},
"next_cursor": null
}
}
提示词、工具调用、JSON 和回答。
{
"input_continuation_token": "Eg0SC3Y5UXRNNnFuRzUwGAYygwEaUBIaVWd4SHlJbmw3SXluZ1d2UjhnTjRBYUFCQWci...",
"video_id": "v9QtM6qnG50",
"channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"parent_comment_id": "UgxHyInl7IyngWvR8gN4AaABAg"
}输入一份列表,逐个获取评论串,按条件筛选,导出结果。
| Scrapier YouTube MCP本页 | 官方 YouTube API | 通过 MCP 的 Apify actor | |
|---|---|---|---|
| 返回的数据 | 任何公开评论串,类型化 JSON | 你自己的账户和洞察数据 | 因 actor 而异 |
| 所需认证 | 一个 Scrapier 密钥 | YouTube 应用 + 商业账号 | Apify 令牌 |
| 计费模式 | 每次调用 10 积分 | 获批后免费 | 每次运行消耗计算单元 |
| 速率限制 | 无 | 每用户每小时配额 | 按 actor |
| 最适合 | 研究、数据补全、监控 | 自有账户分析 | 定制的一次性抓取 |
编辑客户端配置后重启客户端。在 Claude Code 中运行 /mcp;在 Cursor 中检查服务器开关是否已打开。
密钥缺失或输错了。请从控制台重新复制。
API 暂时繁忙。智能体应等待 Retry-After 指定的时间后重试。
分成更小的批次,或把客户端超时提高到 210 秒。
有。Scrapier 的 MCP 服务器向 Claude、Cursor、Windsurf 和 ChatGPT 提供 YouTube 评论串工具。一条命令即可连接,每次调用都返回类型化 JSON。
用你的 API 密钥运行 <code>claude mcp add -t http scrapier https://mcp.scrapier.io/mcp</code>,然后让 Claude 获取任何公开的评论串。它会调用 <code>run_scrape</code> 并直接读取 JSON。
不需要。该服务器只读取公开数据,不使用 YouTube 账号或 Cookie。
每次调用 10 积分,在 Pro 套餐下每 1,000 个评论串约 $1.58。失败的调用免费。
可以。在 ChatGPT 的开发者模式中把 Scrapier 添加为自定义连接器,同样的工具就会出现在对话中。