
AirNow
STDIOMCP server providing LLM access to U.S. air quality data through AirNow API
MCP server providing LLM access to U.S. air quality data through AirNow API
The unofficial AirNow MCP Server is a Model Context Protocol (MCP) implementation that enables integration between large language models (LLMs) and the AirNow API for U.S. air quality data. This server provides a comprehensive set of tools that allows LLMs to access and utilize real-time, forecasted, and historical air quality information.
The AirNow API provides access to official U.S. air quality data, including:
Current and Forecasted Air Quality Index (AQI):
Retrieve real-time and forecasted AQI values for ozone, PM2.5, and PM10 for specific locations or regions.
Observations and Reporting Areas:
Access air quality observations by ZIP code, latitude/longitude, bounding box, or reporting area.
Air Quality Maps:
Obtain contour maps for ozone and PM2.5, available as images or data overlays.
Historical Data:
Query historical air quality data for supported pollutants.
Health Recommendations:
The API provides health recommendations and cautionary statements based on AQI levels.
For detailed information on endpoints, parameters, and response formats, log in with your AirNow API account and go to the AirNow API Web Services Documentation.
Node.js >= v22.14.0
is required.Add one of these configurations to your claude_desktop_config.json
:
{ "mcpServers": { "airnow-mcp-server": { "command": "npx", "args": [ "-y", "@prsantos/airnow-mcp-server" ], "env":{ "AIRNOW_API_KEY": "<YOUR-AIRNOW-API-KEY>", "APPDATA": "<Value of APPDATA>" // Windows example: "C:\\Users\\[username]\\AppData\\Roaming" } } } }
Note:
echo %APPDATA%
which npm
{ "mcpServers": { "airnow-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "AIRNOW_API_KEY", "prsantos/airnow-mcp-server" ], "env":{ "AIRNOW_API_KEY": "<YOUR-AIRNOW-API-KEY>" } } } }