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 分