自定义连接器
任何 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-channel-info", urls="..." | channelUrl, input, scrapedAt, scraped_at, about | 10 |
{
"success": true,
"data": {
"urls": "MrBeast",
"page": 1,
"page_size": 25,
"items": [
{
"channelUrl": "https://www.youtube.com/@MrBeast",
"input": "MrBeast",
"scrapedAt": "2026-10-03T04:17:31",
"scraped_at": "2026-10-03T04:17:31.000Z",
"about": {
"channelDescription": "SUBSCRIBE FOR A COOKIE!\nNew MrBeast or MrBeast Gaming video every single Saturday at noon eastern time!",
"channelJoinedDate": "Feb 19, 2012",
"channelDescriptionLinks": [
{
"text": "Follow",
"url": "https://www.instagram.com/mrbeast/"
},
{
"text": "Twitter",
"url": "https://twitter.com/MrBeast"
}
],
"channelLocation": "United States",
"channelUsername": "MrBeast",
"channelAvatarUrl": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s900-c-k-c0x00ffffff-no-rj",
"channelBannerUrl": "https://yt3.googleusercontent.com/mHMO_eEMp0dPvh0ADwXhPXNYb_GnjSVsLI8biqF1CpxT8OPl7izhNQsDPD3JHhd5y5Mg9GrP=w2560-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"channelTotalVideos": 1004,
"channelTotalViews": 141443077746,
"numberOfSubscribers": "519M",
"numberOfSubscribersInt": 519000000,
"isChannelVerified": true,
"channelName": "MrBeast",
"channelUrl": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA",
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"inputChannelUrl": "http://www.youtube.com/@MrBeast",
"channelKeywords": "mrbeast6000 beast mrbeast Mr.Beast mr",
"isAgeRestricted": false
},
"videos": [
{
"id": "v9QtM6qnG50",
"title": "I Built A City To Save Kids From Illegal Labor",
"duration": "19:03",
"channelName": "MrBeast",
"channelUsername": "MrBeast",
"channelUrl": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA",
"date": "13 days ago",
"url": "https://www.youtube.com/watch?v=v9QtM6qnG50",
"viewCount": 87000000,
"viewCountText": "87M views",
"fromYTUrl": "https://www.youtube.com/@MrBeast/videos",
"type": "video",
"thumbnailUrl": "https://i.ytimg.com/vi/v9QtM6qnG50/hq720.jpg",
"input": "https://www.youtube.com/@MrBeast",
"order": 0
}
],
"shorts": [
{
"videoType": "shorts",
"videoId": "CEJXqm2eiJ0",
"title": "What's Inside My Briefcase?",
"videoUrl": "https://www.youtube.com/shorts/CEJXqm2eiJ0",
"viewsText": "33M views",
"viewCount": 33000000,
"thumbnailUrl": "https://i.ytimg.com/vi/CEJXqm2eiJ0/sardefault.jpg",
"accessibilityText": "What's Inside My Briefcase?, 33 million views - play Short",
"channelName": "MrBeast",
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"channelUsername": "MrBeast",
"fromYTUrl": "https://www.youtube.com/@MrBeast/shorts",
"input": "https://www.youtube.com/@MrBeast",
"order": 0
}
],
"live": [],
"posts": [
{
"postId": "UgkxHIfkQ3K2my65-kPq4VkRv9KrBRyN7alx",
"type": "image",
"textContent": "NO MORE WAITING, this Saturday ... finally goes live!",
"imageUrls": [
"https://yt3.ggpht.com/-gQueci3cQXl50-Tgiv_Ru65aUfw2-6aHe9ny2Iy1KWoU1iAALkCZ9VeiZkH5tcqqiAjaTjb50D7iQ=s1320-rw-nd-v1"
],
"pollOptions": [],
"likesCount": 230000,
"likesCountText": "230K",
"commentsCount": 4900,
"commentsCountText": "4.9K",
"publishedAt": "4 days ago",
"postUrl": "https://www.youtube.com/post/UgkxHIfkQ3K2my65-kPq4VkRv9KrBRyN7alx",
"channelName": "MrBeast",
"channelUrl": "https://www.youtube.com/@MrBeast",
"order": 0
}
],
"stats": {
"totalVideos": 10,
"totalShorts": 10,
"totalLiveStreams": 0,
"totalPosts": 10,
"scrapingTimeSeconds": 2.72
}
}
],
"next_cursor": null
}
}
提示词、工具调用、JSON 和回答。
{
"channelUrl": "https://www.youtube.com/@MrBeast",
"input": "MrBeast",
"scrapedAt": "2026-10-03T04:17:31",
"scraped_at": "2026-10-03T04:17:31.000Z"
}输入一份列表,逐个获取频道,按条件筛选,导出结果。
| Scrapier YouTube MCP本页 | 官方 YouTube API | 通过 MCP 的 Apify actor | |
|---|---|---|---|
| 返回的数据 | 任何公开频道,类型化 JSON | 你自己的账户和洞察数据 | 因 actor 而异 |
| 所需认证 | 一个 Scrapier 密钥 | YouTube 应用 + 商业账号 | Apify 令牌 |
| 计费模式 | 每次调用 10 积分 | 获批后免费 | 每次运行消耗计算单元 |
| 速率限制 | 每个密钥 3 个并行 | 每用户每小时配额 | 按 actor |
| 最适合 | 研究、数据补全、监控 | 自有账户分析 | 定制的一次性抓取 |
编辑客户端配置后重启客户端。在 Claude Code 中运行 /mcp;在 Cursor 中检查服务器开关是否已打开。
密钥缺失或输错了。请从控制台重新复制。
你超出了套餐的并行请求数。智能体应等待 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 添加为自定义连接器,同样的工具就会出现在对话中。