mcpField
P
Piloterr

Piloterr

远程服务
piloterr.com浏览器自动化01 周前更新

关于 Piloterr

Piloterr MCP Server 将 MCP 客户端连接到 Piloterr 网页抓取 API,可从 300 多个网站获取结构化数据。其精简工具目录允许 Agent 在发起 API 调用前查询端点参数。

主要功能

  1. 01搜索端点目录
  2. 02查看端点参数
  3. 03调用抓取 API 端点
  4. 04检查 API 用量和额度
  5. 05返回 JSON、内嵌图像及嵌入文件

适用场景

  1. 01从支持的网站收集结构化数据
  2. 02抓取前查找合适的端点
  3. 03使用 API 时查看剩余额度

MCP 相关

提供四种工具,用于搜索端点、查看参数、调用 Piloterr API 和查询用量。支持 stdio 与 Streamable HTTP,可使用托管服务或本地部署。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://mcp.piloterr.com/
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

全部服务地址
Streamable HTTPhttps://mcp.piloterr.com/需要授权
安装包
npm@piloterr/mcp0.1.0

工具

详细介绍

Piloterr MCP 服务

Model Context Protocol 官方服务,适用于 Piloterr 网页抓取 API。

使用一个 API,即可将 300 多个网站(Amazon、LinkedIn、Google、Zillow、Crunchbase……)抓取为结构化 JSON。

它可让 Claude、Cursor、VS Code、Windsurf 及任何 MCP 客户端将 API 作为工具调用。支持通过 stdio(本地)或 Streamable HTTP(可自托管)运行。

要求

  • Node.js 20 或更高版本
  • Piloterr API 密钥 — 注册,然后从控制面板复制密钥

托管服务(推荐)

Piloterr 会在 https://mcp.piloterr.com/(Streamable HTTP)为你运行此服务。只需在 x-api-key 标头中发送 API 密钥;无需安装。

claude mcp add --transport http piloterr https://mcp.piloterr.com/ --header "x-api-key: YOUR_API_KEY"
{
  "mcpServers": {
    "piloterr": {
      "url": "https://mcp.piloterr.com/",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}

托管服务与此软件包提供相同的 API;如果你需要使用 stdio、自己的网络出口或自行托管,可在本地运行此软件包。

本地运行

Claude Code
claude mcp add piloterr --env PILOTERR_API_KEY=YOUR_API_KEY -- npx -y @piloterr/mcp
Claude Desktop、Cursor、Windsurf 及其他客户端

将服务添加到客户端的 MCP 配置(claude_desktop_config.json、.cursor/mcp.json……):

{
  "mcpServers": {
    "piloterr": {
      "command": "npx",
      "args": ["-y", "@piloterr/mcp"],
      "env": {
        "PILOTERR_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
VS Code
{
  "servers": {
    "piloterr": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@piloterr/mcp"],
      "env": {
        "PILOTERR_API_KEY": "${input:piloterr-api-key}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "piloterr-api-key",
      "description": "Piloterr API key",
      "password": true
    }
  ]
}
Claude Desktop 扩展

从发布页面下载 .mcpb 安装包并打开;Claude Desktop 会提示你输入 API 密钥。

Docker
docker build -t piloterr-mcp .
docker run -i --rm -e PILOTERR_API_KEY=YOUR_API_KEY piloterr-mcp

工具

Piloterr 有 391 个端点,若将它们分别作为工具加载,数量就超过了客户端的承载能力。因此,此服务提供了一个小型目录:模型可先搜索目录,再查看某个端点的参数,然后调用该端点。

工具说明
search_endpoints搜索 Piloterr 的 391 个端点。
get_endpoint描述某个端点的参数。
call_endpoint调用一个 Piloterr 端点并返回结果。
usage显示 API 用量和剩余额度。

每个调用 API 的工具都会消耗额度。JSON 结果以文本形式返回;图像会以内嵌形式返回,其他文件(PDF……)则作为嵌入式资源返回,大小上限为 4 MB。

Streamable HTTP

npx @piloterr/mcp --http --port 3000

端点为 POST /mcp(无状态,返回 JSON)。每个客户端都在 x-api-key 标头中发送自己的密钥(或使用 Authorization: Bearer <key>);服务本身不会使用自己的密钥。默认绑定到 127.0.0.1,并会拒绝浏览器来源,除非你允许这些来源——对外开放前,请将其置于 TLS 后。

为兼容 Fetch 的运行时(Cloudflare Workers、Deno、Bun)导出了 createHttpHandler():

import { createHttpHandler } from "@piloterr/mcp";

export default { fetch: createHttpHandler({ allowedOrigins: [] }) };

安全

  • API 密钥从 PILOTERR_API_KEY(stdio)或请求标头(HTTP)中读取,并会从错误消息中移除。
  • 从网站获取的内容不可信:服务说明会告知模型将其视为数据,而非指令。
  • 请参阅 SECURITY.md 报告漏洞。

开发

npm install
npm test
npm run build
npx @modelcontextprotocol/inspector node dist/stdio.js

基于 SDK 构建

此服务使用官方 Node.js SDK(@piloterr/sdk)。

所有 Piloterr SDK

SDKPackage安装
Node.js@piloterr/sdknpm install @piloterr/sdk
Pythonpiloterrpip install piloterr
Gopiloterr-gogo get github.com/piloterr/piloterr-go
.NETPiloterrdotnet add package Piloterr
Rubypiloterrgem install piloterr
PHPpiloterr/sdkcomposer require piloterr/sdk
Javapiloterr-java从源代码构建,详见其 README
CLI@piloterr/clinpm install -g @piloterr/cli
MCP 服务@piloterr/mcpnpx -y @piloterr/mcp

许可证

MIT — 详见 LICENSE。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。