Uba
FreeNot checkedUnofficial read-only MCP server for UBA German air quality — hourly measurements and LQI from 400+ stations
About
Unofficial read-only MCP server for UBA German air quality — hourly measurements and LQI from 400+ stations
README
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):
{
"mcpServers": {
"uba": {
"command": "uvx",
"args": ["uba-mcp==0.1.0"]
}
}
}
Or run locally: python -m uba_mcp.server (needs mcp<2, httpx).
Tools
| Tool | Description |
|---|---|
uba_list_stations |
Measuring stations, filterable by city, state, type, area or name |
uba_station_detail |
One station: address, coordinates, type, data window, recent pollutants |
uba_current_air_quality |
Latest hourly values + LQI at a station (code, id or city name) |
uba_measurements |
Hourly values over a date range (max 31 days) + min/max/mean & daily means |
uba_list_components |
All 12 pollutants: code, symbol, unit, name |
uba_list_networks |
The 17 measuring networks (16 Länder + UBA) |
uba_health |
Reachability check (ok / blocked / error) — one polite request |
Example output (uba_current_air_quality / Berlin Neukölln, 2026-11-11 09:00 CET):
{"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³):
| Class | NO2 | PM10 | PM2.5 | O3 | SO2 |
|---|---|---|---|---|---|
| 0 very good | 0–10 | 0–9 | 0–5 | 0–24 | 0–10 |
| 1 good | 11–30 | 10–27 | 6–15 | 25–72 | 11–30 |
| 2 moderate | 31–60 | 28–54 | 16–30 | 73–144 | 31–60 |
| 3 poor | 61–100 | 55–90 | 31–50 | 145–240 | 61–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
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 fixturestests/test_live.py— 7 cautious live requests against the UBA API
License
PolyForm Noncommercial 1.0.0 — free for personal and non-commercial use; commercial use needs a separate license (see LICENSE).
Built by Mohammad Abbasi — Almanibama · mabbasi.ir
Install Uba in Claude Desktop, Claude Code & Cursor
unyly install ubaInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add uba -- uvx uba-mcpStep-by-step: how to install Uba
FAQ
Is Uba MCP free?
Yes, Uba MCP is free — one-click install via Unyly at no cost.
Does Uba need an API key?
No, Uba runs without API keys or environment variables.
Is Uba hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Uba in Claude Desktop, Claude Code or Cursor?
Open Uba on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Unyly Deploy
Deploy sites and MCP servers to Unyly straight from your AI agent
by UnylyTemplate MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectServer Sequential Thinking
MCP server for sequential thinking and problem solving
by GitHub ActionsAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiPayMCP
Lightweight payments layer for MCP servers: turn tools into paid endpoints with a two-line decorator. [PyPI](https://pypi.org/project/paymcp/) · [npm](https://w
by blustAIdemo
demo — MCP server via Smithery
by yoojoohans-jpgServer For Power BI
Enables exploring Microsoft Fabric / Power BI workspaces and semantic models, and executing ad-hoc DAX queries.
by Mitsubishi-FusoCompare Uba with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
