关于 Data Maryland
Data Maryland 是面向马里兰州开放数据目录的 MCP 服务,通过 Socrata SoQL 搜索数据集、查询记录并查看架构元数据。适用于需要访问州政府、健康、交通、预算和环境数据的用户。
主要功能
- 01按关键词搜索数据集
- 02使用 SoQL 筛选和查询记录
- 03查看架构与数据集元数据
适用场景
- 01查找马里兰州政府开放数据
- 02筛选交通、健康或环境记录
MCP 相关
向 MCP 客户端提供数据集搜索、SoQL 查询和元数据工具。可连接 Pipeworx 网关,也可作为本地 stdio MCP 服务运行。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/data-maryland/mcpclaude mcp add --transport http pipeworx-io-data-maryland https://gateway.pipeworx.io/data-maryland/mcp{"mcpServers":{"pipeworx-io-data-maryland":{"type":"http","url":"https://gateway.pipeworx.io/data-maryland/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-data-maryland":{"type":"http","url":"https://gateway.pipeworx.io/data-maryland/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-data-maryland":{"type":"http","url":"https://gateway.pipeworx.io/data-maryland/mcp"}}}{"mcpServers":{"pipeworx-io-data-maryland":{"serverUrl":"https://gateway.pipeworx.io/data-maryland/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
mcp-data-maryland
马里兰州开放数据——通过 Socrata SoQL API 获取美国政府开放数据(opendata.maryland.gov):州政府、健康、交通、预算和环境数据。无需密钥。
属于 Pipeworx——一个将 AI Agent 连接到 1882+ 个实时数据源的 MCP 网关。这是一个独立的非官方集成,与上游提供方无关联,未获其认可,也非其发布。
工具
| 工具 | 描述 |
|---|---|
datasets | 按关键词搜索马里兰州开放数据目录中的开放数据集。返回每个数据集的 resource_id、名称、描述、类别和更新日期——将 resource_id 传入 query/metadata。 |
query | 通过 resource_id(例如 "2ir4-626w")对马里兰州开放数据集运行 Socrata SoQL 查询。使用 where/select/group/order(SoQL 子句,不带前导 $)以及 limit/offset 进行筛选。以 JSON 格式返回匹配的行。 |
metadata | 通过 resource_id(例如 "2ir4-626w")获取马里兰州开放数据集的架构和元数据(列、类型、行数、类别、最后更新时间)。 |
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"data-maryland": {
"url": "https://gateway.pipeworx.io/data-maryland/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/data-maryland/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_maryland_datasets \
-H 'Content-Type: application/json' \
-d '{"query":"crime"}'
首次调用无需账户。检查任意工具:GET https://gateway.pipeworx.io/v1/tools/data_maryland_datasets。查找工具:使用 {"query":"..."} 向 POST https://gateway.pipeworx.io/v1/tools/search_packs 发送请求。
独立运行(无需网关账户)
此软件包也可以作为本地 stdio MCP 服务运行——无需 Pipeworx 账户,也无需与网关往返通信:
{
"mcpServers": {
"data-maryland": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-data-maryland"]
}
}
}
或者直接运行,确认其可以启动:
npx -y @pipeworx/mcp-data-maryland
它通过 stdin/stdout 使用 MCP 协议,并针对仅此数据包的工具响应 initialize/tools/list/tools/call——不包含上述网关连接额外提供的任何共享元工具。数据源相同,工具相同,但没有 ask_pipeworx 路由。
使用 ask_pipeworx
你无需直接调用工具,也可以用普通语言提问——此功能既适用于上面的数据包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Data Maryland data" })
网关会自动选择合适的工具并填入参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。