AI assistants MCP connector
Live air quality data in Claude, ChatGPT, Gemini, ...

Share: aqicn.org/api/mcp/
New · MCP connector
Give your AI assistant live air quality data

Connect the World Air Quality Index to Claude, ChatGPT, Gemini or any other AI assistant that supports MCP. Ask about the current AQI, pollutants and forecasts for more than 500,000 stations, and get answers based on real-time data, with credit to the source agencies. You just sign in with your own API token to get the full access to our data.

“What's the air quality in Paris right now?” “Which part of Bangkok has the cleanest air today?” “Will PM2.5 in Delhi improve this week?”

Example answers

ChatGPT answering What is the AQI in London right now? with the World Air Quality Index: AQI 81, moderate, PM2.5 as the main pollutant, and the PM2.5 forecast
ChatGPT: “What is the AQI in London right now?”
Claude answering What is the air quality in London right now? with the World Air Quality Index: AQI 81, moderate, the pollutant sub-indices, the weather and the PM2.5 forecast
Claude: “What is the air quality in London right now?”

Connect from ChatGPT

  1. In ChatGPT, open Plugins in the sidebar, click Add, then Add custom MCP server: ChatGPT's Plugins page, with the Add menu open on Add custom MCP server
  2. Name it World Air Quality Index and paste the URL under Connection. Keep OAuth as the authentication, tick I understand and want to continue and click Create as a plugin:
    https://mcp.aqicn.org/claude
    ChatGPT's Add custom MCP server form, with the name World Air Quality Index, the URL https://mcp.aqicn.org/claude and OAuth authentication
  3. In the dialog that opens, click Connect: ChatGPT's confirmation dialog with the Connect World Air Quality Index button
  4. ChatGPT opens the aqicn.org sign-in page. Paste your API token and click Connect: The aqicn.org sign-in page asking to connect ChatGPT to World Air Quality data, with the API token field and the Connect button
Open ChatGPT

Connect from claude.ai

aqicn is not in Claude's connector directory yet, so you add it as a custom connector:

  1. Click Connect to Claude below. It copies the server URL and opens Claude's connector settings. There, click Add, then Add custom connector: Claude's plugin settings, with the Add menu open and Add custom connector highlighted
  2. Name it World Air Quality Index, paste the URL and click Continue, then Add:
    https://mcp.aqicn.org/claude
    The Add custom connector form, with the name World Air Quality Index and the URL https://mcp.aqicn.org/claude
  3. Click Connect, then paste your API token on the sign-in page. The World Air Quality Index connector page in Claude, not connected yet, with its Connect button
Connect to Claude

Connect from Claude Code

With Claude Code, run this, then /mcp → aqicn → Authenticate:

claude mcp add --transport http aqicn https://mcp.aqicn.org/claude

You can disconnect at any time from Claude's connector settings (or claude mcp remove aqicn).

Other AI assistants

Any AI assistant or app that supports remote MCP servers with sign-in (OAuth) can connect, for example Gemini CLI, Cursor or VS Code. Add a remote MCP server with this URL, then sign in with your API token:

https://mcp.aqicn.org/claude

Need other APIs? Check the full list of APIs supported by the World Air Quality Index project.



About the Air Quality and Pollution Measurement:

About the Air Quality Levels

AQIAir Pollution LevelHealth ImplicationsCautionary Statement (for PM2.5)
0 - 50GoodAir quality is considered satisfactory, and air pollution poses little or no riskNone
51 -100ModerateAir quality is acceptable; however, for some pollutants there may be a moderate health concern for a very small number of people who are unusually sensitive to air pollution.Active children and adults, and people with respiratory disease, such as asthma, should limit prolonged outdoor exertion.
101-150Unhealthy for Sensitive GroupsMembers of sensitive groups may experience health effects. The general public is not likely to be affected.Active children and adults, and people with respiratory disease, such as asthma, should limit prolonged outdoor exertion.
151-200UnhealthyEveryone may begin to experience health effects; members of sensitive groups may experience more serious health effectsActive children and adults, and people with respiratory disease, such as asthma, should avoid prolonged outdoor exertion; everyone else, especially children, should limit prolonged outdoor exertion
201-300Very UnhealthyHealth warnings of emergency conditions. The entire population is more likely to be affected.Active children and adults, and people with respiratory disease, such as asthma, should avoid all outdoor exertion; everyone else, especially children, should limit outdoor exertion.
300+HazardousHealth alert: everyone may experience more serious health effectsEveryone should avoid all outdoor exertion

To know more about Air Quality and Pollution, check the wikipedia Air Quality topic or the airnow guide to Air Quality and Your Health.

For very useful health advices of Beijing Doctor Richard Saint Cyr MD, check www.myhealthbeijing.com blog.


Usage Notice: All the Air Quality data are unvalidated at the time of publication, and due to quality assurance these data may be amended, without notice, at any time. The World Air Quality Index project has exercised all reasonable skill and care in compiling the contents of this information and under no circumstances will the World Air Quality Index project team or its agents be liable in contract, tort or otherwise for any loss, injury or damage arising directly or indirectly from the supply of this data.