Openaq logo

Openaq

Query OpenAQ air-quality stations, latest pollutant readings, and sensor time series through MCP.

Install Openaq

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "openaq": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-openaq"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 4 tools correctly (3d ago).

Overview

Openaq MCP server connects AI agents to the OpenAQ v3 API for global air-quality measurements. It can locate monitoring stations, retrieve the latest readings near coordinates or at a station, and return hourly or daily history for a sensor. Use it for location-based air-quality questions, station discovery, pollutant snapshots, or trend analysis. The server is available through the Pipeworx gateway or as a local stdio package, with no OpenAQ authentication required.

Use cases

  • Check air quality near geographic coordinates
  • Find monitoring stations in a city or country
  • Retrieve the latest readings for a station
  • Analyze pollutant trends from sensor history

Key features

  • Nearest-station air-quality lookup
  • Station search by place, radius, country, or bounding box
  • Latest readings by monitoring station
  • Hourly and daily sensor time series
  • Hosted gateway and local stdio modes

Tools4

What Openaq lets your agent do. Expand a tool for its parameters.

Verified live~956 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

7/7 checks healthy over the last 45d

What it can do

From the 4 tools this server returned when we ran it.

Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age187 days
Maintainers1

Observed 2026-10-20 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @pipeworx/mcp-openaq (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit26d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Openaq works

What Openaq MCP server does

Openaq MCP server exposes OpenAQ air-quality data through four MCP tools. It covers monitoring stations, pollutant readings, and historical sensor measurements. Supported pollutants can include PM2.5, PM10, ozone, nitrogen dioxide, sulfur dioxide, carbon monoxide, and other parameters returned by the selected station or sensor.

The server is suited to agents that need factual air-quality data tied to a place or coordinate. It does not calculate an air-quality index or interpret measurements against health standards in the provided interface; it returns the data supplied by OpenAQ.

How it works

The Openaq MCP server can be connected to the hosted Pipeworx endpoint or run locally over standard input and output. The hosted pack endpoint is available at https://gateway.pipeworx.io/openaq/mcp. It includes the OpenAQ tools and shared Pipeworx gateway tools. A full gateway connection is also available at https://gateway.pipeworx.io/mcp.

For a local connection, the package can be started with npx -y @pipeworx/mcp-openaq. The local process exposes only this pack's four tools and communicates using MCP over stdin/stdout. The same package can be added to an MCP client's server configuration with the command and args values shown below.

Requests can also be made through the gateway's HTTP tool endpoint. For example, air_quality_near accepts latitude and longitude in a JSON POST request.

Setup and configuration

A hosted MCP configuration can use:

config.json
{
  "mcpServers": {
    "openaq": {
      "url": "https://gateway.pipeworx.io/openaq/mcp"
    }
  }
}

The standalone configuration is:

config.json
{
  "mcpServers": {
    "openaq": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-openaq"]
    }
  }
}

The provided setup does not require an OpenAQ API key. The local mode does not require a Pipeworx account or gateway round trip. No required environment variables are documented.

Tools and capabilities

  • air_quality_near selects the monitoring station nearest to latitude and longitude and returns its newest pollutant readings, along with other nearby stations.
  • find_stations searches by city or place, coordinates and radius, ISO alpha-2 country code, or bounding box. Results include station identifiers, coordinates, measured pollutants, and sensor IDs. At least one location filter is required.
  • get_latest returns the newest reading for each pollutant at a station identified by its OpenAQ location ID.
  • get_measurements returns the newest readings for one sensor, using hourly or daily aggregation and a requested result limit. Use the sensor ID returned by find_stations.

A historical workflow generally starts with find_stations, then uses a returned sensor ID with get_measurements. For a nearby current reading, air_quality_near is the direct choice.

Limitations and notes

The Openaq MCP server reports timestamps from OpenAQ, so “latest” does not always mean recently collected. Some sensors are archived and may have stopped reporting years ago. Check the timestamps in get_measurements rather than assuming that the newest returned record is current. find_stations and get_latest can help identify stations and sensors that are still reporting.

The hosted pack endpoint lists shared Pipeworx meta-tools in addition to the four OpenAQ tools. The local stdio mode lists only the pack tools. The gateway's exact tool scope can change, so its initialize response is authoritative for a particular connection.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Openaq

Openaq is an MCP server that connects AI agents to the OpenAQ v3 air-quality API and provides air_quality_near, find_stations, get_latest, and get_measurements. It supports nearby readings, station discovery, current station snapshots, and hourly or daily sensor time series without an OpenAQ API key.

Install it as a local stdio server with `npx -y @pipeworx/mcp-openaq`, or add that command and package argument to your MCP client's server configuration. You can also connect to the hosted `https://gateway.pipeworx.io/openaq/mcp` endpoint.

Yes, Openaq can be added to Cursor using the hosted MCP URL or the local `npx` stdio configuration. The README also names Claude Desktop and Windsurf as supported setup examples.

Call `air_quality_near` with a latitude and longitude. It selects the nearest monitoring station and returns its most recent pollutant values, along with other nearby stations.

Some OpenAQ sensors are archived and stopped reporting years ago, so `get_measurements` may return an old timestamp as the sensor's most recent record. Check returned timestamps and use `find_stations` or `get_latest` to choose a station that is still reporting.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOpenaq AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/openaq?style=directory)](https://allmcps.com/mcp/openaq)
HTML Embed
<a href="https://allmcps.com/mcp/openaq"><img src="https://allmcps.com/api/badge/openaq?style=directory" alt="Openaq on AllMCPs" /></a>