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