kanarek-mcp
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Why kanarek-mcp?
Ask your AI assistant about air quality and get real answers with real data — not a disclaimer about not having internet access.
You: "Is it safe to go jogging in Kraków right now?"
Claude: Based on current readings from 45 stations in Kraków, PM2.5 is at
38.2 µg/m³ (2.5x the WHO guideline of 15 µg/m³). I'd recommend
moving your run indoors or waiting — air quality has been improving
over the past few hours and should drop below guidelines by evening.No API keys. No configuration. Just install and ask.
Related MCP server: airly
Features
Current readings — PM2.5, PM10, NO2, O3, SO2, CO, and weather data from nearby stations
City comparisons — side-by-side air quality across up to 5 cities
Historical trends — hourly data (24h/7d/30d) with trend analysis, or yearly calendar view
Pollution rankings — worst/best cities and stations ranked by any pollutant
Station search — find stations by city, street name, or GPS coordinates
WHO guidelines — every reading compared against WHO 2021 air quality guidelines
Multiple data providers — GIOŚ (government), Airly, Luftdaten, LookO2, BleBox, and more
Installation
Claude Desktop
Add to your config file:
OS | Config path |
macOS |
|
Windows |
|
{
"mcpServers": {
"kanarek": {
"command": "uvx",
"args": ["--from", "git+https://github.com/KanarekApp/Kanarek-MCP.git", "kanarek-mcp"]
}
}
}Claude Code (CLI)
Run in your project directory:
claude mcp add kanarek -- uvx --from "git+https://github.com/KanarekApp/Kanarek-MCP.git" kanarek-mcpVS Code
Add to your .vscode/mcp.json (create the file if it doesn't exist):
{
"servers": {
"kanarek": {
"command": "uvx",
"args": ["--from", "git+https://github.com/KanarekApp/Kanarek-MCP.git", "kanarek-mcp"]
}
}
}Cursor
Open Settings > MCP Servers > Add Server, then use:
{
"kanarek": {
"command": "uvx",
"args": ["--from", "git+https://github.com/KanarekApp/Kanarek-MCP.git", "kanarek-mcp"]
}
}Other MCP clients
kanarek-mcp works with any client that supports the Model Context Protocol. It runs locally via stdio transport — just point your client to:
uvx --from "git+https://github.com/KanarekApp/Kanarek-MCP.git" kanarek-mcpWhat can you ask?
Once installed, just talk to your AI assistant naturally. Here are some examples:
Current air quality
"What's the air quality in Warsaw?"
"Is it safe to take my kids to the park in Wrocław?"
"What are the PM2.5 levels near latitude 52.23, longitude 21.01?"
Uses get_air_quality — for city names, returns city-level PM2.5/PM10 averages with ranking among all cities. For coordinates, returns distance-weighted averages from nearby stations with per-station breakdown.
City comparisons
"Compare air quality between Kraków, Warsaw, and Gdańsk"
"Which city has cleaner air — Poznań or Łódź?"
Uses compare_air_quality — fetches city-level data for all cities concurrently and ranks them worst-first, with ranking position.
Historical trends
"Show me PM2.5 trends for the past week in Kraków"
"How was air quality in Warsaw throughout 2025?"
"What was the worst air quality day in Wrocław last year?"
Uses get_air_quality_history — for recent trends (24h/7d/30d): returns summary statistics, trend direction. For yearly calendar: city queries return city-wide aggregated data, station queries return single-station data. Includes monthly averages, worst/best days, and WHO exceedance counts.
Pollution rankings
"Which cities have the worst air quality right now?"
"Show me the top 20 most polluted cities by PM10"
"How does Warsaw rank compared to other cities?"
Uses get_air_quality_rankings — supports ranking by city or country, for PM2.5 or PM10, over 24h/7d/30d/12m periods. Drill down into any place for detailed air quality and ranking info.
Finding stations
"Find air quality stations near me" (with coordinates)
"Are there any GIOŚ stations on Marszałkowska street?"
"List monitoring stations in Katowice"
Uses find_stations — search by name, city, street, or coordinates. Filter by provider (gios, airly, luftdaten, looko2, blebox).
Station details
"Show me all measurements from station 1f8138aa-3092-4bb4-9ee0-23b0638de32b"
Uses get_station_details — returns current and 24h average readings for every measurement type at the station.
Tools reference
Tool | Description | Key parameters |
| Current air quality for a location |
|
| Compare 2–5 cities side by side |
|
| Historical readings or yearly calendar |
|
| Ranked cities/countries by pollution |
|
| Search for monitoring stations |
|
| Full measurements for one station |
|
The server also exposes a kanarek://config resource with reference data — measurement types, WHO guidelines, and provider metadata.
Configuration
Environment variable | Default | Description |
|
| API base URL |
No API keys or authentication required.
Development
# Clone and install
git clone https://github.com/KanarekApp/Kanarek-MCP.git
cd Kanarek-MCP
uv sync
# Run unit tests
uv run pytest tests/test_tools.py
# Run integration tests (hits the live API)
KANAREK_INTEGRATION_TEST=1 uv run pytest tests/test_integration.py
# Test interactively with MCP Inspector
uv run mcp dev src/kanarek_mcp/server.pyHow it works
kanarek-mcp follows an outcome-oriented design — one tool call produces one complete answer. Behind the scenes, each tool orchestrates multiple API calls:
"What's the air quality in Warsaw?"
1. Search places for "Warsaw" → GET /places/search?q=Warsaw
2. Get city air quality + ranking → GET /places/{place_id}
3. Format with WHO comparisons → concise text responseResponses are formatted as concise text (not raw JSON), optimized for LLM consumption — most important data first, always with units, WHO comparisons, and data freshness timestamps.
Data sources
Data is provided by the Kanarek platform, aggregating readings from multiple monitoring networks:
Provider | Type | Coverage |
GIOŚ | Government (Chief Inspectorate of Environmental Protection) | Poland |
Airly | Commercial sensor network | Poland, Europe |
Luftdaten / sensor.community | Community-driven sensors | Europe-wide |
LookO2 | Consumer sensors | Poland |
BleBox | Consumer sensors | Poland |
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Air quality in Poland: live GIOŚ measurements, smog warnings, CAMS forecast and pollen
Access UK air quality data, monitoring sites, and hourly pollutant measurements across regions
Free, keyless real-time air quality (US AQI plus PM2.5, PM10, ozone, NO2, SO2, CO) for any city.
Polish legal data for AI assistants: full-text search across 2.94M+ court rulings (common courts, Supreme Court, Constitutional Tribunal, KIO, NSA/WSA), statute text and version history from the official ELI register (164k+ acts), rulings citing a provision and citations between rulings, a citation verifier for case numbers, case-outcome and duration statistics, KIS tax interpretations, CJEU rulings applied in Poland, UODO decisions, KRS company lookup, court competence, official bank accounts and legal calculators. Works without an API key (daily limit).
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides access to EPA's Air Quality System API with 31 tools for querying air quality data, monitoring sites, and pollution measurements across the United States through natural language.31MIT
- AlicenseNot gradedqualityCmaintenanceEnables natural language interaction with air quality data from Airly, including real-time measurements, nearby stations, and forecasts.42 npmMIT
- AlicenseAqualityCmaintenanceEnables 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
- AlicenseAqualityDmaintenanceProvides real-time air quality data (US AQI, PM2.5, PM10, ozone, NO2, SO2, CO) for any city via natural language, using free Open-Meteo data and a single tool.1MIT