yerevan-aqi-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yerevan-aqi-mcp What's the air quality near Republic Square right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
πyerevan-aqi-mcp
MCP server for real-time Yerevan city air quality data. Connects AI assistants directly to the official Yerevan GIS platform β no API key required.
https://github.com/user-attachments/assets/757580fc-1061-4cb4-9c76-6526ccb19d80
β¨ Features
Real-time AQI from 50+ sensors across the city
Historical data β hourly records, daily trends, worst locations
Zero auth β open municipal data, just works
8 tools covering everything from nearest sensor lookup to city-wide averages
Related MCP server: air-quality-mcp
π¦ Installation
Via npx (recommended):
{
"mcpServers": {
"yerevan-aqi": {
"command": "npx",
"args": ["yerevan-aqi-mcp"]
}
}
}From source:
git clone https://github.com/hayrapetian/yerevan-aqi-mcp
cd yerevan-aqi-mcp
npm install && npm run build{
"mcpServers": {
"yerevan-aqi": {
"command": "node",
"args": ["/absolute/path/to/yerevan-aqi-mcp/dist/index.js"]
}
}
}Config file location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
π οΈ Tools
get_all_devices
All sensors with current AQI and coordinates. Also returns city-wide average AQI.
Param | Type | Default | Description |
| int | 50 | Max devices to return (max 200) |
| bool | true | Filter to operational devices only |
get_device_current
Full current reading for a specific sensor: AQI, PM2.5, PM10, NO2, O3, temperature, humidity, wind.
Param | Type | Description |
| string | Device code identifier |
get_devices_by_aqi
Devices filtered above or below an AQI threshold, ordered by AQI.
Param | Type | Default | Description |
| int | 100 | AQI threshold |
| bool | true |
|
| int | 20 | Max results (max 100) |
get_nearest_sensor
Closest working sensor to a given coordinate with its current reading.
Param | Type | Description |
| float | Latitude |
| float | Longitude |
get_device_history
Hourly records for a specific sensor over N days, with min/max/avg summary.
Param | Type | Default | Description |
| string | β | Device code identifier |
| int | 7 | Days back (max 30) |
get_city_average
City-wide aggregate AQI, PM2.5, and PM10 β averages and maxima β computed server-side.
Param | Type | Default | Description |
| int | 1 | Days back to aggregate (max 30) |
get_worst_locations
Top N most polluted sensors in a time window, ranked by average AQI.
Param | Type | Default | Description |
| int | 24 | Hours back (max 168) |
| int | 10 | Number of results (max 50) |
get_historical_trend
Daily average PM2.5 AQI and PM10 from the 2024β2025 archive dataset.
Param | Type | Default | Description |
| string | β | Filter to a specific device (optional) |
| int | 30 | Days to return (max 365) |
π AQI Scale
AQI | Category |
0β50 | π’ Good |
51β100 | π‘ Moderate |
101β150 | π Unhealthy for Sensitive Groups |
151β200 | π΄ Unhealthy |
201β300 | π£ Very Unhealthy |
301+ | π΄ Hazardous |
π» Development
npm run dev # run with tsx, no build needed
npm run build # compile TypeScript to dist/
npm start # run compiled outputπ License
MIT β Hayk Hayrapetyan
Available Tools
8 toolsget_all_devicesC
All air quality sensors with current AQI and coordinates. Returns city-wide average AQI.
Inputs: limit, onlyWorking.
get_city_averageB
City-wide aggregate AQI, PM2.5, PM10 β averages and maxima β computed server-side via outStatistics.
Inputs: days.
get_device_currentB
Full current reading for a specific sensor: AQI, PM2.5, PM10, NO2, O3, temperature, humidity, wind.
Inputs: code (required).
get_device_historyA
Hourly records for a specific sensor over N days. Returns records plus min/max/avg summary.
Inputs: code (required), days.
get_devices_by_aqiB
Devices filtered above or below an AQI threshold, ordered by AQI.
Inputs: above, limit, threshold.
get_historical_trendA
Daily averages from the 2024β2025 archive. Uses truncated field names (pm2_5con_6 = NowCast AQI, pm10concma = PM10 Β΅g/mΒ³).
Inputs: limit, deviceCode.
get_nearest_sensorA
Given latitude/longitude, find the closest working sensor and return its current reading.
Inputs: lat (required), lon (required).
get_worst_locationsB
Top N most polluted sensors in a recent time window, ranked by average AQI.
Inputs: hours, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 8 tools
Most tools have clearly distinct purposes: current readings, per-device history, nearest sensor, city aggregate, threshold filtering, worst locations, and historical trend. There is some overlap between get_all_devices (which also returns a city-wide average), get_city_average, get_devices_by_aqi, and get_worst_locations, but descriptions make the intended distinctions reasonably clear.
All tool names use a consistent get_ snake_case pattern with predictable resource/qualifier phrasing. Singular/plural variation follows natural semantics rather than introducing inconsistency.
Eight tools is well-scoped for an air-quality sensor server. Each tool covers a distinct query pattern and no tool feels redundant or unnecessary for the domain.
The read-only query surface is strong: current readings, per-device history, nearest sensor, city averages, threshold filters, worst locations, and historical trends are all covered. Minor gaps remain around richer sensor metadata/status details and possibly forecast or alerting workflows, but these are not blocking for core AQI exploration.
Maintenance
Related MCP Connectors
Free, keyless real-time air quality (US AQI plus PM2.5, PM10, ozone, NO2, SO2, CO) for any city.
Unofficial Air Quality MCP β wraps air-quality-api.open-meteo.com (free, no auth)
Read-only AI environmental data, meters, search, methodology, sources. No authentication required.
Real-world data for agents: air quality, geocoding, quakes, holidays, web search
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides real-time Air Quality Index data from the World Air Quality Index service, enabling queries by location, station, or keyword search.84 npmMIT
- 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
- AlicenseAqualityBmaintenanceLets an AI agent query Yerevan's live municipal GIS dataβair quality, cadastral parcels, zoning, construction, and transportβwith no API key.248MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to check live air quality in Poland, including the nearest official GIOΕ monitoring stations with the air quality index and hourly PM2.5, PM10, NO2, O3 and SO2 readings, plus smog warnings for the voivodeship and a 3-day Copernicus CAMS forecast of particulate matter and pollen. Can be used via a public no-key endpoint or run locally.366 npmMIT