关于 Shovels
Shovels MCP 封装 Shovels.ai API,用于查询美国建筑许可和施工承包商,支持按位置搜索,可通过 Pipeworx 网关或本地 stdio 运行。
主要功能
- 01将美国地址解析为地理 ID
- 02按位置和日期范围搜索许可
- 03按位置和日期范围搜索承包商
- 04返回承包商许可及工作记录
适用场景
- 01按州、邮编或地址查找许可
- 02查看指定时段的许可活动
- 03查找承包商并评估其工作记录
MCP 相关
通过 Pipeworx 或本地 stdio 服务向 MCP 客户端提供 Shovels.ai 地址、许可和承包商搜索工具。网关连接还包含 Pipeworx 共享元工具。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/shovels/mcpclaude mcp add --transport http pipeworx-io-shovels https://gateway.pipeworx.io/shovels/mcp{"mcpServers":{"pipeworx-io-shovels":{"type":"http","url":"https://gateway.pipeworx.io/shovels/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-shovels":{"type":"http","url":"https://gateway.pipeworx.io/shovels/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-shovels":{"type":"http","url":"https://gateway.pipeworx.io/shovels/mcp"}}}{"mcpServers":{"pipeworx-io-shovels":{"serverUrl":"https://gateway.pipeworx.io/shovels/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
mcp-shovels
Shovels MCP — 封装 Shovels.ai API(shovels.ai)
隶属于 Pipeworx — 一个将 AI Agent 连接到 1683+ 个实时数据源的 MCP 网关。
工具
| 工具 | 描述 |
|---|---|
shovels_address_search | 将美国地址解析为 Shovels 记录,每条记录都包含一个 geo_id — 地理位置 ID,可传给 shovels_permits_search / shovels_contractors_search,以限定这些查询的范围。结果按 USPS 格式的相关性排序。示例:shovels_address_search({ q: "1600 Pennsylvania Ave NW, Washington DC", _apiKey: "your-key" }) |
shovels_permits_search | 搜索指定位置范围内的美国建筑许可证。需要一个 geo_id(美国州代码,如 "CA"、邮政编码,或来自 shovels_address_search 的 Shovels geo_id),以及许可证日期范围(permit_from / permit_to,YYYY-MM-DD)。金额(job_value、fees、market value)会同时以美分和美元返回。示例:shovels_permits_search({ geo_id: "CA", permit_from: "2024-01-01", permit_to: "2024-12-31", property_type: "residential", _apiKey: "your-key" }) |
shovels_contractors_search | 搜索指定位置范围内的美国建筑承包商,并提供许可证、工作历史和累计工程价值。需要一个 geo_id(州代码、邮政编码,或来自 shovels_address_search 的 Shovels geo_id),以及许可证日期范围(permit_from / permit_to,YYYY-MM-DD)。工程价值字段会同时以美分和美元返回。示例:shovels_contractors_search({ geo_id: "94103", permit_from: "2023-01-01", permit_to: "2024-12-31", contractor_name: "solar", _apiKey: "your-key" }) |
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"shovels": {
"url": "https://gateway.pipeworx.io/shovels/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/shovels/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 的共享元工具 — ask_pipeworx、discover_tools、search_within、remember/recall 和其他网关级工具。因此,你看到的工具数量会多于此表:当前,单个工具包端点除了该工具包自身的工具外,还会列出大约 30 个共享工具。连接的 initialize 响应会说明其确切范围,是了解当天情况的权威依据。
这是有意为之,并非意外的多路复用。元工具可以让限定范围的连接回答本工具包未涵盖的问题 — 通过 ask_pipeworx 跨整个目录路由 — 而无需添加第二个 MCP 服务。目前无法挂载不包含这些元工具的工具包端点;如果额外的架构定义消耗的上下文超过路由功能带来的价值,请连接一次完整网关,而不是连接多个工具包端点。
或者,连接完整的 Pipeworx 网关,直接列出所有工具包的工具,而不只是当前工具包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
这两个 URL 都连接到同一个网关和相同的 1683+ 个数据源。唯一的区别是,哪个工具包的工具会被直接列出;无论通过哪个端点,ask_pipeworx 都可以访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
此工具包使用你自己的 API 密钥(_apiKey)— 我们不会为它提供 API 密钥,因此这里没有可在不提供密钥的情况下运行的 curl 命令。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/shovels_address_search。查找工具:使用 {"query":"..."} 调用 POST https://gateway.pipeworx.io/v1/tools/search_packs。
独立运行(无需网关帐户)
此软件包也可以作为本地 stdio MCP 服务运行 — 无需 Pipeworx 帐户,也无需经过网关往返:
{
"mcpServers": {
"shovels": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-shovels"]
}
}
}
或者直接运行,确认其能够启动:
npx -y @pipeworx/mcp-shovels
它通过 stdin/stdout 使用 MCP 通信,并为仅此工具包的工具响应 initialize/tools/list/tools/call — 不包含上述网关连接额外提供的共享元工具。相同的源代码、相同的工具,不提供 ask_pipeworx 路由。
与 ask_pipeworx 搭配使用
你可以用自然语言提问,而不是直接调用工具 —— 这适用于上面的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Shovels data" })
网关会选择合适的工具并自动填写参数。
更多
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。