# OpenAQ MCP for AI Agents AI Agent Connect

> OpenAQ MCP lets you pull global air quality data into your AI agent. Track real-time pollution levels like PM2.5, O3, and NO2 from thousands of monitoring stations worldwide. Use it to analyze historical trends, find local sensors, and get specific environmental data for any city or country.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_VGsxrLcNairCyPHFbpo3PocA4AcTLLX4zk50pkNW/ai-agent-connect
- **Tags:** air-quality, pollution-monitoring, environmental-data, real-time-sensors, climate-science

## Description

OpenAQ connects the world's largest open air quality database to your AI agent. Imagine you're trying to understand why the air feels heavy in a specific city or need to map out pollution trends for a research paper. Instead of hunting through messy spreadsheets or scraping different government websites, you can just ask your AI agent to do the heavy lifting. This Connector connects your agent directly to the database, which is the biggest open source for air quality in the world. You can pull live readings for pollutants like ozone or nitrogen dioxide, find out where the nearest monitoring stations are, and even dig into historical data to see how air quality has shifted over months or years. It's a huge time saver for anyone who needs accurate environmental data without the manual overhead of searching for it. By adding this to your toolkit on Vinkius, you turn your AI into a specialized environmental researcher that can provide real-time insights on a global scale. You can query thousands of monitoring stations across more than 100 countries to get a clear picture of environmental health. Whether you are checking local conditions for a move or analyzing regional trends for a policy brief, this connection puts global pollution data at your fingertips without the friction of manual data entry. You can easily compare different cities, identify high-risk zones, and stay updated on the latest environmental metrics as they happen.

## Tools

### get_location_by_id
Get specific details for a single monitoring station using its unique ID. This helps you identify the exact hardware at a site.

### get_countries
List all countries that have active air quality monitoring stations. It also shows the total count of stations per country.

### get_latest_measurements
Pull the most recent air quality readings for a specific location instantly. Use this for real-time pollution awareness.

### get_locations
Search for air quality stations filtered by country, city, or geographic area. This is perfect for finding nearby data points.

### get_measurements
Retrieve historical air quality data filtered by date, location, and specific pollutants. This lets you see how air quality changes over time.

### get_parameter_by_id
Look up the specific details and units for a single air quality parameter. This ensures you are interpreting the data correctly.

### get_parameters
List all available air quality parameters like PM2.5, O3, and NO2 with their units. This helps you see what data is actually available.

### get_sensor_by_id
Get the technical details for a specific air quality sensor. This is useful for verifying the source and type of a measurement.

### get_sensors
Find and list air quality sensors based on location, status, or type of parameter they measure. Use this to audit sensor networks.

## Prompt Examples

**Prompt:** 
```
What's the current air quality like in New Delhi?
```

**Response:** 
```
The current air quality in New Delhi shows high levels of pollutants. Here are the latest readings:

| Pollutant | Level | Status |
| :--- | :--- | :--- |
| **PM2.5** | 150 µg/m³ | Unhealthy |
| **O3** | 45 µg/m³ | Moderate |
| **NO2** | 30 µg/m³ | Moderate |

These levels are significantly above the recommended guidelines. Would you like to see the 24-hour trend?
```

**Prompt:** 
```
Show me the trend of NO2 in London over the last 30 days.
```

**Response:** 
```
I've pulled the NO2 measurements for London over the past 30 days. 

* **Average Level:** 42 µg/m³
* **Peak Level:** 68 µg/m³ (recorded on the 14th)
* **Trend:** The data shows a slight increase during weekday mornings, likely due to traffic patterns.

Would you like a detailed list of the daily averages?
```

**Prompt:** 
```
Which countries have the most air quality monitoring stations?
```

**Response:** 
```
Here are the top countries with the most active air quality monitoring stations:

1. **India**: 2,100+ locations
2. **United States**: 1,800+ locations
3. **China**: 1,500+ locations
4. **Brazil**: 900+ locations

Do you need more details on a specific country?
```

## Capabilities

### Fetch current air quality levels
Get the most recent readings for pollutants in any specific location.

### Query historical pollution data
Pull time-series measurements for specific date ranges to analyze trends.

### Find monitoring stations
Search for air quality stations by country, city, or geographic coordinates.

### Browse air quality parameters
View all measurable pollutants, including their units and classifications.

### Identify active sensors
See which specific devices are providing data and what parameters they measure.

## Use Cases

### Checking local air for a move
A user wants to know if a new apartment in Paris is near high pollution areas. They ask the agent to find the nearest stations and show current PM2.5 levels.

### Academic pollution research
A scientist needs to see how NO2 levels in Delhi have changed over the last year. They ask the agent to pull measurements for a specific date range.

### Urban planning for green zones
A city planner wants to identify areas with the highest ozone levels to prioritize new parks. They ask the agent to list locations with the highest O3 readings.

### Public health monitoring
A health official wants to know which countries have the most monitoring stations. They ask the agent to list countries by station count.

## Benefits

- Stop manual data scraping by using get_locations to find stations in any city or country instantly. This saves you from clicking through dozens of different government websites.
- Analyze long-term environmental shifts by pulling historical data through get_measurements for specific date ranges. This helps you identify trends over months or years.
- Get immediate status updates on local air quality using get_latest_measurements for real-time awareness. You can check the current pollution levels in seconds.
- Standardize your research by using get_parameters to see all available units and pollutant types. This ensures your data analysis is consistent and accurate.
- Identify specific hardware by using get_sensors to see which devices are providing the data you need. This adds a layer of technical verification to your research.

## How It Works

The bottom line is you get instant access to global pollution data without leaving your chat interface.

1. Get your free API key from the OpenAQ website.
2. Add your key to the Connector configuration in your AI client.
3. Ask your agent for specific air quality data or trends.

## Frequently Asked Questions

**Can I use OpenAQ MCP to see pollution in my own backyard?**
OpenAQ MCP provides data from a global network of monitoring stations. While it covers many cities and regions, it may not have a sensor in every specific backyard unless one is part of the open dataset.

**Does OpenAQ MCP provide real-time data?**
Yes, the Connector can pull the most recent measurements available from the database, allowing you to see current air quality levels for various pollutants.

**Can I get historical data with OpenAQ MCP?**
Yes, you can query historical measurements for specific date ranges to analyze how pollution levels have changed over months or years.

**Which pollutants can I track using OpenAQ MCP?**
You can track several key pollutants, including PM2.5, O3 (ozone), NO2, SO2, and CO, along with other parameters supported by the database.

**Is the data from OpenAQ MCP free to access?**
OpenAQ is an open-source database, so the data provided through this Connector is accessible without additional costs for the information itself.

**Can I use OpenAQ MCP to find sensors in a specific city?**
Yes, the Connector allows you to search for monitoring stations filtered by city, country, or geographic coordinates to see where data is being collected.

**How do I get an OpenAQ API Key?**
Visit [**OpenAQ Platform**](https://platform.openaq.org/), create a free account, and generate your API key from the dashboard. Free tier includes 1,000 requests/hour.

**What air quality parameters can I monitor?**
PM2.5, PM10, O3 (ozone), NO2, SO2, CO, BC (black carbon), and more. Use `get_parameters` to see the full list with units and classifications.

**Can I get historical air quality data?**
Yes! Use `get_measurements` with date_from and date_to parameters in ISO 8601 format to retrieve time-series data for any location and parameter.