UBA Air Quality

io.github.mohammad-abbasi-sh由 GitHub 账号 mohammad-abbasi-sh 发布v0.1.0更新于 Nov 14, 2026

Unofficial read-only MCP server for German air quality (UBA) — hourly values + LQI, 400 stations.

已验证STDIO仅桌面位置与生活数据与分析

概览

AI 生成的概览

只读的德国 UBA 空气质量 MCP 服务器,提供约 400 个监测站的逐小时污染物数值与官方空气质量指数。

可以做什么
  • 按城市、联邦州、类型、区域或名称查找并查看监测站,含地址、坐标与近期污染物
  • 按站点代码、编号或城市名获取最新逐小时数值与空气质量指数
  • 查询最长 31 天的逐小时测量值,并给出最小值、最大值、平均值与日均值
  • 列出 12 种污染物与 17 个监测网络
  • 检查上游 API 是否可访问
适用场景
适合让助手在对话中回答德国当前或历史空气质量问题、比较不同站点或污染物,或汇总某段时间的污染水平。
运行要求
以 stdio 在本地运行,通常通过 uvx 从 PyPI 包 uba-mcp 启动,或以 python -m uba_mcp.server 运行,需 mcp 与 httpx 依赖。无需 API 密钥或登录,但需要能访问 UBA Air Data API 的网络。
安装前请注意
只读且无需认证,不会暴露凭据。数据来自非官方的第三方封装,可用性与准确性取决于 Umweltbundesamt 的 API;时间按 API 返回的 CET/CEST 给出。

安装

在 SourceWeft 中

  1. 打开 控制台中的 UBA Air Quality,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

uba-mcp 🌬️

mcp-name: io.github.mohammad-abbasi-sh/uba-mcp

Unofficial read-only MCP server for UBA air quality — the Umweltbundesamt (German Federal Environment Agency) Air Data API v4: hourly measurements from ~400 German stations (PM10, PM2.5, NO2, O3, SO2, CO, benzene …) since 2016, with the official UBA air-quality index (LQI). No key, no login.

Built by Mohammad Abbasi as part of the "Germany MCP factory". Not affiliated with the Umweltbundesamt.

For AI agents

Add to your MCP client config (stdio):

json
{  "mcpServers": {    "uba": {      "command": "uvx",      "args": ["uba-mcp==0.1.0"]    }  }}

Or run locally: python -m uba_mcp.server (needs mcp<2, httpx).

Tools

ToolDescription
uba_list_stationsMeasuring stations, filterable by city, state, type, area or name
uba_station_detailOne station: address, coordinates, type, data window, recent pollutants
uba_current_air_qualityLatest hourly values + LQI at a station (code, id or city name)
uba_measurementsHourly values over a date range (max 31 days) + min/max/mean & daily means
uba_list_componentsAll 12 pollutants: code, symbol, unit, name
uba_list_networksThe 17 measuring networks (16 Länder + UBA)
uba_healthReachability check (ok / blocked / error) — one polite request

Example output (uba_current_air_quality / Berlin Neukölln, 2026-11-11 09:00 CET):

json
{"station": {"code": "DEBE034", "name": "Berlin Neukölln", "city": "Berlin"}, "hour": {"start": "2026-11-11 09:00:00", "total_index": 2, "total_label": "moderate",  "values": [{"code": "PM2", "value": 17.0, "unit": "µg/m³", "label": "moderate"},             {"code": "PM10", "value": 23.0, "unit": "µg/m³", "label": "good"},             {"code": "O3", "value": 24.0, "unit": "µg/m³", "label": "very good"},             {"code": "NO2", "value": 15.0, "unit": "µg/m³", "label": "good"}]}}

Notes:

  • Stations are found by code (DEBE010 = Berlin Wedding), numeric id, or city name (first active station in that city).
  • The index / total_index (0–4) and labels come from the API itself; they follow the UBA LQI, 2025 revision (hourly means, µg/m³):
ClassNO2PM10PM2.5O3SO2
0 very good0–100–90–50–240–10
1 good11–3010–276–1525–7211–30
2 moderate31–6028–5416–3073–14431–60
3 poor61–10055–9031–50145–24061–100
4 very poor>100>90>50>240>100
  • All times are CET/CEST as returned by the API. Data: UBA Air Data API v4 umweltbundesamt.de/api/air_data/v4 — no key, no login, read-only.

Development

bash
python3 -m venv .venv && .venv/bin/pip install "mcp<2" httpx pytest.venv/bin/pip install -e ..venv/bin/python -m pytest tests/ -q
  • tests/test_domain.py — offline, parses real captured API fixtures
  • tests/test_live.py — 7 cautious live requests against the UBA API

License

MIT


Built by Mohammad Abbasi — Almanibama · mabbasi.ir

来源:README.md,提交 623abcc

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Nov 14, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分