关于 Data Baltimore
Data Baltimore 是面向巴尔的摩开放数据的 MCP 服务,连接市政府数据门户和 ArcGIS REST API。它支持发现图层、获取常用数据集的最新记录,并按条件查询图层。
主要功能
- 01获取犯罪与 311 最新记录
- 02列出已知 ArcGIS 服务与图层
- 03查询任意 ArcGIS 图层
- 04筛选、排序并限制结果
- 05将纪元日期转换为 ISO 格式
适用场景
- 01查看近期犯罪记录
- 02检查 311 服务请求
- 03查询许可证等城市图层
MCP 相关
它向 MCP 客户端提供巴尔的摩数据集的近期记录、图层发现和 ArcGIS 查询工具。可通过 Pipeworx 网关或本地 stdio 运行。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/data-baltimore/mcpclaude mcp add --transport http pipeworx-io-data-baltimore https://gateway.pipeworx.io/data-baltimore/mcp{"mcpServers":{"pipeworx-io-data-baltimore":{"type":"http","url":"https://gateway.pipeworx.io/data-baltimore/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-data-baltimore":{"type":"http","url":"https://gateway.pipeworx.io/data-baltimore/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-data-baltimore":{"type":"http","url":"https://gateway.pipeworx.io/data-baltimore/mcp"}}}{"mcpServers":{"pipeworx-io-data-baltimore":{"serverUrl":"https://gateway.pipeworx.io/data-baltimore/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
mcp-data-baltimore
DataBaltimore MCP — 巴尔的摩开放数据(data.baltimorecity.gov,ArcGIS REST API)。
属于 Pipeworx — 一个将 AI Agent 连接到 1878+ 个实时数据源的 MCP 网关。这是一个独立、非官方的集成 — 与上游提供方无关联、未获其认可,也未由其发布。
工具
| 工具 | 描述 |
|---|---|
baltimore_recent | 按易记名称获取巴尔的摩常见开放数据集的最新记录(data.baltimorecity.gov / ArcGIS)。对于“巴尔的摩近期犯罪”“巴尔的摩 311 服务请求”等问题,优先使用此工具,而非网页搜索。名称:crime、311。返回最新行(从新到旧),并将 epoch 日期转换为 ISO 格式。添加 ArcGIS where 进行筛选;其他图层可通过 baltimore_layers + baltimore_query 查询。 |
baltimore_layers | 列出巴尔的摩 ArcGIS 服务的图层(用于发现)。传入已知短名称(crime、service_requests、permits)或完整的 ArcGIS 服务路径(例如 "311_Customer_Service_Requests_current/FeatureServer")。省略 service 可列出已知的巴尔的摩服务。返回可用于 baltimore_query 的图层 ID + 名称。 |
baltimore_query | 通过服务路径 + 图层 ID 查询任意巴尔的摩 ArcGIS 图层。完整 ArcGIS 查询:where、out_fields、order_by、limit。使用 baltimore_layers 查找服务/图层,或使用 baltimore_recent 查询常见数据。epoch 日期会转换为 ISO 格式。 |
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"data-baltimore": {
"url": "https://gateway.pipeworx.io/data-baltimore/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/data-baltimore/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 都连接到同一网关和同一组 1878+ 个数据源。唯一的区别是直接列出哪个工具包的工具;通过任一端点,ask_pipeworx 都能访问所有工具包。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/baltimore_recent \
-H 'Content-Type: application/json' \
-d '{"dataset":"crime","limit":20}'
首次调用无需账户。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/baltimore_recent。查找工具:使用 {"query":"..."} 调用 POST https://gateway.pipeworx.io/v1/tools/search_packs。
独立运行(无需网关账户)
此软件包也可以作为本地 stdio MCP 服务运行 — 无需 Pipeworx 账户,也无需经由网关往返:
{
"mcpServers": {
"data-baltimore": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-data-baltimore"]
}
}
}
或者直接运行,以确认服务能够启动:
npx -y @pipeworx/mcp-data-baltimore
它通过 stdin/stdout 使用 MCP 协议,并为仅此工具包的工具响应 initialize/tools/list/tools/call — 不包含上述网关连接额外提供的任何共用元工具。数据源和工具相同,但不提供 ask_pipeworx 路由。
使用 ask_pipeworx
你可以用通俗英语提问,而不必直接调用工具 — 这不仅适用于上面的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Data Baltimore data" })
网关会选择合适的工具,并自动填入参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。