@dennisk2025/open-meteo-air-quality-index
v1.0.0
Published
Fetches current Air Quality Index (AQI) and pollutants for a specified city or coordinates via Open-Meteo.
Downloads
7
Readme
Open-Meteo Air Quality Index MCP Server
Fetches the current Air Quality Index (AQI) and pollutant levels (PM2.5, PM10, ozone, etc.) for a specified city or coordinates using the Open-Meteo Air Quality API.
Features
- Get up-to-date AQI and pollutant data for cities worldwide or any latitude/longitude.
- No API keys required. Free and fast. Data from Open-Meteo Air Quality API.
Installation
You can run this tool directly with NPX or install globally:
Run via NPX:
npx @dennisk2025/open-meteo-air-quality-indexInstall globally:
npm install -g @dennisk2025/open-meteo-air-quality-indexAdding to Claude Desktop
Add this to your Claude Desktop config file:
{
"mcpServers": {
"open-meteo-air-quality-index": {
"command": "npx",
"args": ["@dennisk2025/open-meteo-air-quality-index"]
}
}
}Add the JSON block above to your Claude Desktop config file at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Tools
1. get_air_quality_by_city
- Description: Returns the latest air quality index and pollutants for a specified city.
- Parameters:
city(string, required): Name of the city (e.g., "Berlin")country_code(string, optional): ISO 3166-1 alpha-2 country code (e.g., "DE") for more accuracy
Example Call:
{
"name": "get_air_quality_by_city",
"arguments": {
"city": "Berlin",
"country_code": "DE"
}
}2. get_air_quality_by_coordinates
- Description: Returns the latest air quality index and pollutants for latitude/longitude.
- Parameters:
latitude(number, required): Latitude of the locationlongitude(number, required): Longitude of the location
Example Call:
{
"name": "get_air_quality_by_coordinates",
"arguments": {
"latitude": 52.52,
"longitude": 13.405
}
}Usage
In Claude, just call one of these tools with the required arguments. Return values include:
- AQI (US and European standards)
- PM2.5, PM10
- Ozone
- Carbon monoxide
- Nitrogen dioxide
- Sulphur dioxide
- Coordinates and timestamp
Tool List
- get_air_quality_by_city
- Input schema:
- city (string, required)
- country_code (string, optional)
- Input schema:
- get_air_quality_by_coordinates
- Input schema:
- latitude (number, required)
- longitude (number, required)
- Input schema:
For more details, see Open-Meteo Air Quality API.
