mcp-openaq
mcp-openaq
OpenAQ MCP — 通过 OpenAQ v3 API 获取全球空气质量数据。
Pipeworx 的一部分 — 一个将 AI 代理连接到 1476+ 个实时数据源的 MCP 网关。
工具
工具 | 描述 |
| 获取距离某经纬度最近的监测站的最新空气质量读数(PM2.5、PM10、O3、NO2、SO2、CO 等)。适用于"我附近的空气质量"、"<坐标>的空气质量如何"、"<地点>现在的空气是否糟糕"等查询。返回最近的监测站及其最新污染物数值,以及附近的其他监测站。 |
| 按位置查找 OpenAQ 空气质量监测站:城市或地名、坐标+半径(按距离最近排序)、国家(ISO 3166-1 alpha-2 代码)或边界框。返回站点 id、名称、国家、坐标,以及每个站点监测的污染物(含传感器 id),还有 resolved_place 回显城市名称解析到的坐标。这是获取历史序列的第一步:先在这里找到站点,然后将其 sensor_id 传给 get_measurements。至少需要一个位置参数 — 该工具不会返回未过滤的全局列表。 |
| 获取指定 OpenAQ 站点(使用 find_stations 返回的 location id)每种污染物的最新读数。返回每个参数(PM2.5、O3、NO2 等)及其数值、单位和测量时间。 |
| 获取单个 OpenAQ 传感器(使用 find_stations 返回的 sensor id)的最近时间序列(小时或日聚合),按最新优先排序。用于查看单个站点/参数的污染物随时间变化的趋势。返回该传感器最后 |
Related MCP server: Luchtmeetnet MCP Server
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"openaq": {
"url": "https://gateway.pipeworx.io/openaq/mcp"
}
}
}此端点实际提供什么
https://gateway.pipeworx.io/openaq/mcp 上的 tools/list 返回上表中的工具,外加共享的 Pipeworx 元工具 — ask_pipeworx、discover_tools、search_within、remember/recall 以及其余网关级工具集。因此你看到的工具数量比此表多:单个包端点目前会列出约 30 个共享工具以及该包自身的工具。连接的 initialize 响应会说明其确切范围,并且是某一天最权威的答案。
这是有意为之,并非偶然的多路复用。元工具让一个限定范围的连接能够回答此包未覆盖的问题 — 通过 ask_pipeworx 在整个目录中路由 — 而无需你添加第二个 MCP 服务器。目前无法在不包含这些元工具的情况下挂载包端点;如果额外的 schema 消耗的上下文比路由带来的价值更多,请直接连接完整网关,而不是连接多个包端点。
或者连接到完整的 Pipeworx 网关,直接列出所有包的工具,而不仅仅是这一个的:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}两个 URL 都指向同一个网关和相同的 1476+ 个数据源。唯一的区别是哪个包的工具被直接列出;ask_pipeworx 从任一入口都能访问所有工具。
与 ask_pipeworx 配合使用
无需直接调用工具,你可以用自然语言提问 — 这在上面的包端点和完整网关上都可以使用:
ask_pipeworx({ question: "your question about Openaq data" })网关会自动选择正确的工具并填充参数。
更多
许可证
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with the World Air Quality Index to fetch real-time air quality data for cities and coordinates worldwide via Model Context Protocol (MCP).1MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying of official Netherlands air quality data from the RIVM Luchtmeetnet API via MCP tools.5MIT
- AlicenseAqualityBmaintenanceEnables querying Polish air-quality data from GIOŚ stations by providing tools to list stations, get sensor readings, and retrieve the composite air-quality index.4MIT
- AlicenseNot gradedqualityCmaintenanceProvides real-time Air Quality Index data from the World Air Quality Index service, enabling queries by location, station, or keyword search.6MIT
Related MCP Connectors
Find air-quality stations and read pollutant observations from government monitors via OpenAQ v3.
Air Quality MCP — wraps air-quality-api.open-meteo.com (free, no auth)
EPA AirNow MCP — official US real-time AQI + forecast (free key)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pipeworx-io/mcp-openaq'
If you have feedback or need assistance with the MCP directory API, please join our Discord server