npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

yerevan-aqi-mcp

v1.0.0

Published

MCP server for Yerevan city municipal air quality data

Downloads

108

Readme

📍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.

✨ 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

📦 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.json
  • Windows: %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 | |---|---|---|---| | limit | int | 50 | Max devices to return (max 200) | | onlyWorking | 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 | |---|---|---| | code | string | Device code identifier |

get_devices_by_aqi

Devices filtered above or below an AQI threshold, ordered by AQI.

| Param | Type | Default | Description | |---|---|---|---| | threshold | int | 100 | AQI threshold | | above | bool | true | true = above, false = below | | limit | int | 20 | Max results (max 100) |

get_nearest_sensor

Closest working sensor to a given coordinate with its current reading.

| Param | Type | Description | |---|---|---| | lat | float | Latitude | | lon | float | Longitude |

get_device_history

Hourly records for a specific sensor over N days, with min/max/avg summary.

| Param | Type | Default | Description | |---|---|---|---| | code | string | — | Device code identifier | | days | 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 | |---|---|---|---| | days | 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 | |---|---|---|---| | hours | int | 24 | Hours back (max 168) | | limit | 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 | |---|---|---|---| | deviceCode | string | — | Filter to a specific device (optional) | | limit | 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