Web Scraping for AI Agents · Streamable HTTP Transport
服务运行中| 端点 URL | https://scrapling.xxsfluy.com/mcp |
| 传输方式 | Streamable HTTP(SSE 流式) |
| 鉴权方式 | Authorization: Bearer <token> — 缺失或错误一律返回 401 |
| 版本 | Scrapling v0.5 · Playwright 1.64.0 · Chromium 1248 |
| 健康检查 | GET /healthz → 200 |
// mcpServers 配置(Codex / Claude Code / Cursor / Cherry Studio 等通用)
{
"mcpServers": {
"Scrapling": {
"url": "https://scrapling.xxsfluy.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}
/root/scrapling_mcp_token.txt(权限 600)。cat /root/scrapling_mcp_token.txt 获取。
更换令牌:修改 compose 中的 SCRAPLING_MCP_AUTH_TOKEN 后重启容器即可(单一共享密钥,所有客户端共用)。
TOKEN=$(cat /root/scrapling_mcp_token.txt)
curl -s -X POST https://scrapling.xxsfluy.com/mcp \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"c","version":"1"}}}'