Claude Desktop / Claude Code
将 Scrapeless MCP 连接到 Anthropic 的 Claude 客户端。您需要准备好 Scrapeless API 令牌。
Claude Desktop
- 打开 Claude Desktop。
- 前往
Settings→Developer→Edit Config(这将打开claude_desktop_config.json)。 - 将 Scrapeless 服务器添加到
mcpServers:
{
"mcpServers": {
"Scrapeless MCP Server": {
"command": "npx",
"args": ["-y", "scrapeless-mcp-server"],
"env": {
"SCRAPELESS_API_KEY": "YOUR_SCRAPELESS_API_KEY"
}
}
}
}- 保存文件并重启 Claude Desktop。
- 现在,Scrapeless 工具将出现在工具(🔨)菜单下 —— Claude 可根据请求执行搜索、抓取、爬取及操控浏览器。
Claude Code
在终端中,使用 Claude Code CLI 注册该服务器:
claude mcp add scrapeless \
--env SCRAPELESS_API_KEY=YOUR_SCRAPELESS_API_KEY \
-- npx -y scrapeless-mcp-server若要使用托管的 Streamable HTTP 端点而非本地进程:
claude mcp add --transport http scrapeless https://api.scrapeless.com/mcp \
--header "x-api-token: YOUR_SCRAPELESS_API_KEY"运行 claude mcp list 以确认服务器已连接。
偏好托管模式?请参阅 Authentication and Transports 获取 Streamable HTTP 配置。