• DATA
  • ALERTS
  • PLANNING
  • HUMAN

How to get city weather and pollution with your AI

Connect AirVisual to your AI client once. After that, you can pull live environmental data for any location just by asking.

Ask AI about this page

Short answer

How can I check weather and AQI using my AI?

Your AI uses the AirVisual MCP to fetch live weather and air quality data for any city you name. You'll get specific AQI levels and local weather conditions directly in your chat. Here is how the data flows from the sensor to your screen.

The outcomes

What you get from your AI

The data your AI pulls from AirVisual lands in these formats.

DATA

Live environmental stats

The AI pulls current AQI, temperature, and humidity. You get the raw numbers or a summary depending on how you ask.

ALERTS

Pollution warnings

Your agent identifies if air quality is unhealthy. It can flag specific pollutants that might affect your day.

PLANNING

Activity advice

The AI combines weather and AQI to suggest if it is a good time for outdoor runs or errands.

HUMAN

Manual verification

You decide if the air quality is safe enough for your specific health needs. The AI provides the facts, but you make the call.

The workflow

What your AI does when you ask for weather.

The AI handles the data retrieval so you don't have to open a browser.

  1. Identify location

    Your agent parses your request to find the specific city or region you are asking about.

    get_city_data
  2. Fetch live data

    The AI calls the AirVisual tool to grab the latest AQI and weather metrics for that spot.

    get_city_data
  3. Interpret levels

    The agent looks at the AQI numbers to determine if the air is clean or hazardous.

    get_city_data
  4. Deliver report

    Your AI formats the temperature, wind, and pollution data into a readable response.

    get_city_data

Try it

Copy these to start.

Use these prompts to test the connection.

Starting points

Swap out the city names for the locations you actually care about.

AirVisual Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_VGX1iJ9zQN0X34um29FbzVGt7YkF8gKTQwxcCGbx/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — AirVisual capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "airvisual-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_VGX1iJ9zQN0X34um29FbzVGt7YkF8gKTQwxcCGbx/mcp"
    }
  }
}
Copy into chat04
  • What is the current AQI in Tokyo?

  • Is the air quality in New York safe for a run right now?

  • Give me a weather report for London including humidity and wind speed.

  • Compare the pollution levels in Los Angeles versus San Francisco.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect AirVisual once, then ask.

Click the link to connect the MCP to your client. Your credentials stay encrypted, and you can start querying data immediately.

Connect AirVisual to your AI

FAQ

How this task behaves

  • 01

    Can my AI change the weather settings?

    No. The AI can only read real-time data from AirVisual; it cannot control or change any environmental data.

  • 02

    Does the AI provide historical weather trends?

    No. This specific tool is designed for real-time AQI and current weather reports only.

  • 03

    Can I ask about cities that aren't covered?

    The AI can only retrieve data for cities that have active AirVisual sensors. If a city isn't in the database, the AI will tell you it can't find it.

  • 04

    Will the AI automatically alert me if pollution rises?

    No. The AI only responds when you prompt it. It does not push notifications or monitor the air in the background.

  • 05

    Do I need to provide coordinates?

    Usually, no. You can just use the city name, and the AI will use the tool to find the right location.

  • More questions about AirVisual? See everything the AirVisual Connector can do

Connect AirVisual to Claude, Cursor, ChatGPT & more