air-quality-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., "@air-quality-mcpwhat's the air quality in Bangkok?"
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.
air-quality-mcp
Real, current air quality (US AQI, PM2.5, PM10, ozone, and more) for any city, free, in one command.
pip install air-quality-mcp # or: uvx air-quality-mcpThen ask your agent: "what's the air quality in Bangkok?" or "is it safe to run outside in Berlin today?"
No API key. No signup. Free.
Tools
Tool | What the model sees it for |
| Current air quality for a city -- US AQI, PM2.5, PM10, ozone, NO2, SO2, CO, plus a plain-language category. "What's the air quality in X", "is it safe to go outside in Y", "how polluted is Z". |
city is a free-text place name (e.g. "Bangkok", "Berlin", "Springfield, US").
Related MCP server: MCP Weather Server
Example
> get_air_quality("Bangkok")
{
"location": {
"name": "Bangkok",
"country": "Thailand",
"admin1": "Bangkok"
},
"us_aqi": 27,
"aqi_category": "Good",
"pm2_5": 5.4,
"pm10": 6.4,
"ozone": 36.0,
"nitrogen_dioxide": 14.1,
"sulphur_dioxide": 3.9,
"carbon_monoxide": 1861.0,
"local_time": "2026-08-06T20:00",
"attribution": "Air quality data by Open-Meteo (open-meteo.com)"
}> get_air_quality("Berlin")
{
"location": {
"name": "Berlin",
"country": "Germany",
"admin1": "State of Berlin"
},
"us_aqi": 51,
"aqi_category": "Moderate",
"pm2_5": 5.5,
"pm10": 9.6,
"ozone": 102.0,
"nitrogen_dioxide": 2.6,
"sulphur_dioxide": 1.0,
"carbon_monoxide": 145.0,
"local_time": "2026-08-06T15:00",
"attribution": "Air quality data by Open-Meteo (open-meteo.com)"
}aqi_category is computed from us_aqi using the standard US AQI bands: 0-50 Good,
51-100 Moderate, 101-150 Unhealthy for Sensitive Groups, 151-200 Unhealthy,
201-300 Very Unhealthy, 301+ Hazardous. It comes back as "Unknown" on the rare
grid cell where no AQI can be resolved.
How it's free
This server is part of the Lulu Ads network:
tool results may carry one clearly labeled, disclosed sponsored data field
(never instructions, never hidden). That sponsorship pays the hosting, so the
lookup stays free. Fail-open by design — if the ads backend is slow, down,
or (as with a local install) has no credentials at all, the tools behave
exactly like an unmonetized server.
Run your own MCP? The same one-line integration is open to every publisher — getlulu.dev/publishers, 70% rev share.
Data
Air quality data by Open-Meteo (free, no API key required). This project is not affiliated with Open-Meteo.
Self-hosting over HTTP
pip install fastmcp lulu-ads httpx uvicorn
MCP_TRANSPORT=http AIRQUALITY_LOCAL_DEV=1 python server.py # serves http://localhost:8080/air-quality/mcpAvailable Tools
1 toolget_air_qualityARead-only
Get the current air quality for a city, from real-time monitoring and atmospheric model data. Use for any "what's the air quality in X", "is it safe to go outside in Y", "how polluted is Z" style question, or whenever pollen/smog/wildfire-smoke/pollution conditions are relevant to a plan (running, cycling, sensitive-groups advice, travel).
city is a free-text place name (e.g. "Bangkok", "Berlin", "Springfield, US").
Returns a dict with:
location: resolved place name/country/admin1us_aqi: the current US Air Quality Index (0-500+)aqi_category: plain-language category computed fromus_aqi-- "Good" (0-50), "Moderate" (51-100), "Unhealthy for Sensitive Groups" (101-150), "Unhealthy" (151-200), "Very Unhealthy" (201-300), or "Hazardous" (301+); "Unknown" if no AQI could be resolved for that locationpm2_5,pm10: particulate matter concentrations (ug/m3)ozone,nitrogen_dioxide,sulphur_dioxide,carbon_monoxide: trace gas concentrations (ug/m3)local_time: the timestamp of the reading, in the location's local timeattribution
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, and the description adds behavioral context about the data source ('real-time monitoring and atmospheric model data') and how the AQI category is computed. It also thoroughly explains the return structure, which goes beyond the annotation. However, it does not mention potential limitations like locality resolution failures or rate limiting, which would push it higher.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-organized: it opens with the primary purpose, then usage examples, then a clear bulleted list of return fields. Every sentence adds value and there is no wasted repetition. It is concise enough while providing comprehensive details.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has an output schema, so return values could be omitted, but the description still explains them in a human-readable way, which is redundant yet helpful. The single parameter is fully explained, and the use-case context is rich. For a simple tool, this description is complete and self-sufficient.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema provides no description for the 'city' parameter (0% coverage), but the description explicitly defines it: '`city` is a free-text place name (e.g. "Bangkok", "Berlin", "Springfield, US").' This fully compensates for the schema gap, giving the agent all necessary context to format the parameter correctly.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a clear verb+resource statement ('Get the current air quality for a city') and provides multiple natural-language use cases. It distinguishes itself from any potential ambiguity by specifying the exact domain (air quality, pollen, smog, etc.), making the tool's purpose immediately obvious.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicit guidance is given for when to use: 'Use for any “what's the air quality in X”... or whenever pollen/smog/wildfire-smoke/pollution conditions are relevant to a plan.' This clearly frames the intended scenarios and even lists example activities, effectively telling the agent exactly when to invoke the tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v0.1.0- First observed
get_air_quality
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of confusion or overlap. The tool's purpose is unambiguous and clearly distinct.
The tool name 'get_air_quality' follows the clean verb_noun convention, consistent with typical MCP naming patterns. There are no other names to conflict.
With only one tool, the server feels thin for the broader 'air quality' domain. While it may serve a single lookup use case, the count is borderline.
The tool thoroughly covers current air quality with detailed pollutant data and AQI categories. Minor gaps exist such as historical queries or forecasts, but the core current-condition use case is fully addressed.
Maintenance
Related MCP Connectors
Free, keyless real-time air quality (US AQI plus PM2.5, PM10, ozone, NO2, SO2, CO) for any city.
Air Quality MCP — wraps air-quality-api.open-meteo.com (free, no auth)
EPA AirNow MCP — official US real-time AQI + forecast (free key)
Real-world data for agents: air quality, geocoding, quakes, holidays, web search
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides current weather and air quality data for any city using WeatherAPI, easily integrating with MCP clients like n8n and Claude Desktop App.46 npm2MIT
- AlicenseAqualityDmaintenanceProvides comprehensive weather information including current conditions, 7-day forecasts, and air quality data for any city worldwide using the Open-Meteo API. Features real-time weather data, hourly forecasts, sunrise/sunset times, and European Air Quality Index with human-readable descriptions.34 npm1MIT
- AlicenseNot gradedqualityDmaintenanceProvides access to real-time weather data, 5-day forecasts, and air quality information for any city using the OpenWeatherMap API.MIT
- AlicenseNot gradedqualityDmaintenanceProvides real-time and historical weather data for any city worldwide, including forecasts, air quality, and marine conditions, using the free Open-Meteo API.5 npmMIT