airly
This 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.
Airly MCP Server
An MCP server that integrates the Airly API, enabling natural language interaction with air quality data. Query real-time measurements, find nearby stations, and get air quality forecasts through any MCP-compatible client.
API Token
An Airly API token is required. Set it using the AIRLY_API_TOKEN environment variable.
Related MCP server: mcp-waqi
Installing
npx (Node.js)
{
"mcpServers": {
"airly": {
"command": "npx",
"args": ["-y", "@jsynowiec/mcp-server-airly"],
"env": {
"AIRLY_API_TOKEN": "your-api-token"
}
}
}
}bunx (Bun)
{
"mcpServers": {
"airly": {
"command": "bunx",
"args": ["--bun", "@jsynowiec/mcp-server-airly"],
"env": {
"AIRLY_API_TOKEN": "your-api-token"
}
}
}
}Local development
Build the project first, then point your MCP client at the local build output:
{
"mcpServers": {
"airly": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-airly/dist/index.js"],
"env": {
"AIRLY_API_TOKEN": "your-api-token"
}
}
}
}Configuration
Variable | Required | Default | Description |
| Yes | Airly API key | |
| No | Default latitude (decimal degrees) | |
| No | Default longitude (decimal degrees) | |
| No |
| Response language ( |
Default coordinates must be set together. When configured, location-based tools use them as a fallback when the LLM doesn't provide coordinates.
Tools
get_measurement
Get interpolated air quality measurements for any location. Returns current pollutant concentrations, air quality index with health advice, and WHO standard compliance. Includes 24-hour history and forecast.
get_nearest_installation
Find the nearest air quality monitoring stations to a given location, sorted by proximity. Returns station metadata including address, coordinates, and sensor type.
get_installation_measurements
Get measurements from a specific station by its installation ID. Same response format as get_measurement.
get_installation
Get metadata for a specific monitoring station.
Resources
URI | Description |
| Air quality index types and level definitions |
| Measurement types with labels and units |
| Air quality standards and pollutant limits |
Resources are cached for the session lifetime.
Prompts
Prompt | Description |
| Check current air quality at a location |
| Get the 24-hour air quality forecast |
| Find nearby monitoring stations |
Development
Prerequisites
Bun >= 1.0 or Node.js >= 22
Setup
bun install
bun run buildScripts
bun run build # Compile TypeScript
bun run lint # Run ESLint
bun run typecheck # Type-check without emitting
bun run fmtcheck # Check Prettier formatting
bun run format # Apply Prettier formatting
bun run test # Run tests
bun run dev:test # Run tests in watch modeTesting with MCP Inspector
AIRLY_API_TOKEN=your-token npx @modelcontextprotocol/inspector node dist/index.jsRelease
The prepublishOnly script automatically runs build, lint, type-check, and tests before npm publish:
npm publish --access publicDisclaimer
This project is not affiliated with, endorsed by, or associated with Airly in any way. It is an independent, open-source integration built on the publicly available Airly API.
License
Released under the MIT 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
Unofficial Air Quality MCP — wraps air-quality-api.open-meteo.com (free, no auth)
Free, keyless real-time air quality (US AQI plus PM2.5, PM10, ozone, NO2, SO2, CO) for any city.
Live forecasts and air quality for any place on earth. Demo by Sidetrip Connect. No API key.
The official Model Context Protocol server for Ambee. It gives any MCP-compatible AI assistant — Claude, ChatGPT, Cursor, VS Code, Ollama, and more direct access to live air quality, pollen, and weather data. To get started, including information on signing up and obtaining your Ambee key, check out the Ambee documentation on https://docs.ambeedata.com
Related MCP Servers
- 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
- AlicenseNot gradedqualityCmaintenanceProvides real-time Air Quality Index data from the World Air Quality Index service, enabling queries by location, station, or keyword search.75 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
- AlicenseNot gradedqualityCmaintenanceEnables a household assistant to answer personalized air-quality and pollen questions, plan outdoor activities, issue threshold-based alerts, and log symptoms using live Open-Meteo data. It exposes these capabilities as tools with spoken responses and structured content for MCP clients.MIT