关于 Data Cityofnewyork
Data Cityofnewyork 是面向 NYC Open Data 的 MCP 服务,通过 Socrata SoQL 查询纽约市各机构的开放数据。它涵盖 311、交通、住房、许可、犯罪和健康等主题,并支持数据集发现与元数据查看。
主要功能
- 01搜索 NYC Open Data 数据集
- 02查询纽约市机构开放数据
- 03查看结构与更新等元数据
- 04支持 SoQL 筛选、分组和排序
适用场景
- 01查找纽约市交通或住房数据
- 02查询 311、犯罪或健康记录
- 03检查数据集字段和更新时间
MCP 相关
它向 MCP 客户端提供数据集搜索、SoQL 查询和元数据工具,可通过 Pipeworx 网关或本地 stdio 连接。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/data-cityofnewyork/mcpclaude mcp add --transport http pipeworx-io-data-cityofnewyork https://gateway.pipeworx.io/data-cityofnewyork/mcp{"mcpServers":{"pipeworx-io-data-cityofnewyork":{"type":"http","url":"https://gateway.pipeworx.io/data-cityofnewyork/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-data-cityofnewyork":{"type":"http","url":"https://gateway.pipeworx.io/data-cityofnewyork/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-data-cityofnewyork":{"type":"http","url":"https://gateway.pipeworx.io/data-cityofnewyork/mcp"}}}{"mcpServers":{"pipeworx-io-data-cityofnewyork":{"serverUrl":"https://gateway.pipeworx.io/data-cityofnewyork/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
mcp-data-cityofnewyork
NYC Open Data — 通过 Socrata SoQL API 提供的美国政府开放数据(data.cityofnewyork.us):纽约市各部门的数据,包括 311、交通、住房、许可证、犯罪和健康。无需密钥。
本项目是 Pipeworx 的一部分——一个将 AI Agent 连接到 1882+ 个实时数据源的 MCP 网关。这是独立、非官方的集成,与上游提供方无关联,未经其认可,也未由其发布。
工具
| 工具 | 描述 |
|---|---|
datasets | 按关键词搜索 NYC Open Data 开放数据集目录。返回每个数据集的 resource_id、名称、描述、类别和更新日期——将 resource_id 传递给 query/metadata。 |
query | 根据 resource_id 对 NYC Open Data 数据集运行 Socrata SoQL 查询(例如,“8wbx-tsch”)。使用 where/select/group/order(SoQL 子句,不带前导 $)以及 limit/offset 进行筛选。以 JSON 格式返回匹配的行。 |
metadata | 根据 resource_id 获取 NYC Open Data 数据集的架构和元数据(列、类型、行数、类别、上次更新时间),例如“8wbx-tsch”。 |
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"data-cityofnewyork": {
"url": "https://gateway.pipeworx.io/data-cityofnewyork/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/data-cityofnewyork/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 都会连接到同一个网关和相同的 1882+ 个数据源。唯一的区别是哪些工具包的工具会被直接列出;无论连接哪个端点,ask_pipeworx 都能访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/data_cityofnewyork_datasets \
-H 'Content-Type: application/json' \
-d '{"query":"crime"}'
首次调用无需账户。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/data_cityofnewyork_datasets。查找工具包:使用 {"query":"..."} 调用 POST https://gateway.pipeworx.io/v1/tools/search_packs。
独立运行(无需网关账户)
此软件包也可作为本地 stdio MCP 服务运行——无需 Pipeworx 账户,也无需经过网关:
{
"mcpServers": {
"data-cityofnewyork": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-data-cityofnewyork"]
}
}
}
或者直接运行,确认它可以启动:
npx -y @pipeworx/mcp-data-cityofnewyork
它通过 stdin/stdout 使用 MCP 协议,并对 initialize/tools/list/tools/call 作出响应,仅提供此工具包的工具——不包含上述网关连接添加的共享元工具。数据源和工具相同,但没有 ask_pipeworx 路由。
使用 ask_pipeworx
你也可以用通俗英语提问,而不是直接调用工具——在上述工具包端点和完整网关上都可以使用:
ask_pipeworx({ question: "your question about Data Cityofnewyork data" })
网关会自动选择合适的工具并填入参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。