自定义连接器
任何 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 一个可读取任意公开 X (Twitter) 推文页面的工具。一条命令即可连接;每次调用都返回带类型的 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
问 “列出你的 X (Twitter) 工具”。智能体应能找到 run_scrape 和 search_endpoints。
用 search_endpoints 发现,用 run_scrape 调用。
| 工具 | 返回 | 输入 | 关键字段 | 积分 |
|---|---|---|---|---|
run_scrape | 运行推文页抓取器 | endpoint="twitter-tweets", usernames="..." | id, tweet_id, url, verified, username | 10 |
{
"success": true,
"data": {
"usernames": "BillGates",
"user_id": "50393960",
"screen_name": "BillGates",
"page": 1,
"page_size": 20,
"tweets": [
{
"id": "1948167071684231344",
"tweet_id": "1948167071684231344",
"url": "https://x.com/BillGates/status/1948167071684231344",
"verified": true,
"username": "@BillGates",
"fullname": "Bill Gates",
"timestamp": "Wed Jul 23 23:43:19 +0000 2025",
"text": "Learning how many kids were dying from diarrhea back in 1997 ... https://t.co/NYitqiRY38",
"links": [
"https://gatesnot.es/46lTfBz"
],
"isPinned": false,
"isQuote": false,
"isRetweet": false,
"isReply": false,
"likes": 5219,
"replies": 0,
"retweets": 1816,
"quotes": 598,
"bookmarks": 334,
"views": 2828080,
"lang": "en",
"user": {
"avatar": "https://pbs.twimg.com/profile_images/1879013694367252480/Gxa-Pspq_normal.jpg",
"username": "BillGates",
"userFullName": "Bill Gates",
"description": "Sharing things I'm learning through my foundation work and other interests.",
"location": "Seattle, WA",
"website": "https://gatesnot.es/tgn",
"joinDate": "Wed Jun 24 18:44:10 +0000 2009",
"verified": true,
"totalLikes": 542,
"totalTweets": 4521,
"totalFollowing": 571,
"totalFollowers": 65231300,
"url": "https://t.co/TiXXwOGE95",
"userId": "50393960",
"totalMediaCount": 1530
},
"media": [],
"tweetUserId": "50393960",
"input_username": "BillGates",
"scraped_at": "2026-10-03T03:35:53.722Z"
}
],
"next_cursor": "eyJoIjoiLi4uIiwiaW4iOiJCaWxsR2F0ZXMiLCJsdCI6IjE5MjYwNDY2MzQ0NDc1NTg1NjYiLCJwIjoyLCJyIjp0cnVlLCJzbiI6IkJpbGxHYXRlcyIsInUiOiI1MDM5Mzk2MCIsInVpIjp0cnVlfQ"
}
}
提示词、工具调用、JSON 和回答。
{
"id": "1948167071684231344",
"tweet_id": "1948167071684231344",
"url": "https://x.com/BillGates/status/1948167071684231344",
"verified": true
}输入一份列表,逐个拉取推文页,按条件筛选,导出结果。
| Scrapier X (Twitter) MCP本页 | 官方 X (Twitter) API | 通过 MCP 的 Apify actor | |
|---|---|---|---|
| 返回的数据 | 任意公开推文页,带类型的 JSON | 你自己的账户和洞察数据 | 因 actor 而异 |
| 所需认证 | 一个 Scrapier 密钥 | X (Twitter) 应用 + 商业账号 | Apify 令牌 |
| 计费模式 | 每次调用 10 积分 | 获批后免费 | 每次运行消耗计算单元 |
| 速率限制 | 每个密钥 3 个并行 | 每用户每小时配额 | 按 actor |
| 最适合 | 研究、数据补全、监控 | 自有账户分析 | 定制的一次性抓取 |
编辑客户端配置后重启客户端。在 Claude Code 中运行 /mcp;在 Cursor 中检查服务器开关是否已打开。
密钥缺失或输错了。请从控制台重新复制。
你超出了套餐的并行请求数。智能体应等待 Retry-After。
分成更小的批次,或把客户端超时提高到 210 秒。
是的。Scrapier's 的 MCP 服务器向 Claude、Cursor、Windsurf 和 ChatGPT 提供 X (Twitter) 推文页面工具。一条命令即可连接,每次调用都返回带类型的 JSON。
带上你的 API 密钥运行 <code>claude mcp add -t http scrapier https://mcp.scrapier.io/mcp</code>,然后向 Claude 索要任意公开的推文页面。它会调用 <code>run_scrape</code> 并直接读取 JSON。
不需要。该服务器只读取公开数据,不使用 X (Twitter) 账号或 cookie。
每次调用 10 积分,Pro 套餐下每 1,000 页推文约 $1.58。失败的调用免费。
可以。在 ChatGPT 的开发者模式中把 Scrapier 添加为自定义连接器,同样的工具就会出现在对话中。