The World Air Quality Index has been around for nearly 20 years. The API, the widgets and the map tiles have all been around for at least 10 years.
We're now extending our free APIs with two new ways to use our real time data. The Maplet is a fully interactive air quality map that you can embed on your site. The MCP connector enables AI assistants (Claude, ChatGPT, Gemini etc.) to have direct access to our live air quality data.
The Maplet: a live map in one line
Until now if you wanted a real time air quality map on your site you'd have to go through the whole API key thing, pick a map library, get your tiles and then write the code to actually display the stations. With the Maplet you just paste in one script tag and you're done. It's the same map as on aqicn.org (all the stations in the vicinity of your location, live updating, click on a station and you get taken to the station detail in a new tab so the user stays on your site). No API key required and it contains absolutely no ads.
Try it below: change the location, language or size and the code will update in real time with the map. You can also move or zoom the map and then click on Use this view to keep that exact view in the code.
The plain iframe version is for CMS's which don't allow scripts. The Maplet documentation covers all the options (asynchronous loading, multiple maps on a page, reading the view your visitors have selected etc).
The Maplet documentation is also available as an Agent Skill (a format that AI coding assistants can consume). You can point Claude Code, Cursor or Copilot at aqicn.org/maplet/SKILL.md and ask it to, for instance, add a live air quality map of Lyon to the contact page, and it will know precisely what attributes are needed, what the language codes are and what the potential problems are (e.g. async loading).
The MCP connector: AI assistants with live data
If you ask an AI assistant what the air quality is like in your city it's just going to give you a very generic answer based on what it learned during its training period (months or years prior). That's not particularly useful if the air quality has changed in the course of less than an hour. The Model Context Protocol (MCP) is an open standard which enables AI assistants to call external tools as they're responding. Our MCP connector allows the assistant to pull in the current readings, current pollutants and forecasts from over 500,000 stations and credit the agencies that actually measured it.
Pick one of the questions below to replay the conversation. The answers were recorded on 28th November 2026 with the connector returning the real data at that time. You can open each tool call to see exactly what the assistant was given.
The connector gives the assistant four read-only tools. The assistant decides by itself which one to call, and can chain them, for instance searching for a station first and then getting its details.
How the connection works
The connector doesn't use a shared key. You sign in with your own API token (the same one you'd use for the JSON API). We store absolutely nothing about you at all. Click through each step to see what's going on.
https://mcp.aqicn.org/claude. Nothing else to install. Get started
The connector works with any assistant which supports remote MCP servers with sign-in. Pick yours:
- Open Claude's connector settings, click Add, then Add custom connector.
- Name it World Air Quality Index and paste the server URL.
- Click Connect, then paste your API token on the sign-in page.
- Run this command in a terminal:
claude mcp add --transport http aqicn https://mcp.aqicn.org/claude
- In Claude Code, type /mcp, select aqicn, then Authenticate.
- In ChatGPT, open Plugins in the sidebar, click Add, then Add custom MCP server.
- Name it World Air Quality Index, paste the server URL under Connection and keep OAuth.
- Click Connect, then paste your API token on the sign-in page.
Gemini CLI, Cursor, VS Code and any other app supporting remote MCP servers with OAuth: add a remote (HTTP) MCP server with the URL below, and sign in with your API token.
https://mcp.aqicn.org/claude You don't have an API token yet? You can get one free from the data platform page. The full step by step guide (with screenshots) is on the MCP connector page and the API page has all the other APIs listed.
The data is all from the hard work of the various environmental agencies around the world. Whether it's on your site via the Maplet or quoted by an AI assistant we always give due credit to the original data source. We're looking forward to seeing what you build with it, so do let us know!

