- LOCATION
- DATA
- INSIGHT
- HUMAN
Short answer
How can I check the AQI and weather for my current location using my AI?
Your AI uses your IP address to identify your nearest city and then pulls the latest AQI and weather stats from AirVisual. You'll get immediate updates on local air conditions. Here is how the data flows.
The outcomes
What you get from your agent
The AI handles the technical lookup so you can focus on the environment around you.
LOCATION
Automatic city detection
The AI identifies your current city using your IP address. You don't have to type out your zip code or city name every time.
DATA
Real-time air stats
Your agent pulls the current AQI and weather details from AirVisual. This gives you the exact numbers for your immediate area.
INSIGHT
Health-based advice
Since the AI sees the AQI, it can tell you if it's a good day to run outside or if you should keep the windows shut.
HUMAN
Personal decisions
The AI provides the data, but you decide how to act on it. It won't buy air purifiers or change your schedule for you.
The workflow
What your AI does when the request arrives.
The AI follows a specific sequence to turn a simple question into a local weather and air report.
Locate you
The AI looks up your current location based on your network connection.
get_nearest_city_by_ipFetch air data
Once it knows your city, the agent pulls the specific AQI and weather metrics from AirVisual.
get_nearest_city_by_ipAnalyze conditions
The AI compares the current AQI against standard health thresholds.
get_nearest_city_by_ipReport findings
Your agent presents the city, the AQI level, and the weather in a clear summary.
get_nearest_city_by_ip
Try it
Copy these to start.
Paste these directly into your chat to begin.
Starting points
These are basic prompts. You can add specific details like asking for a comparison to yesterday's air quality.
AirVisual Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_VGX1iJ9zQN0X34um29FbzVGt7YkF8gKTQwxcCGbx/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — AirVisual capabilities are ready to use.
{
"mcpServers": {
"airvisual-mcp": {
"url": "https://edge.vinkius.com/vk_preview_VGX1iJ9zQN0X34um29FbzVGt7YkF8gKTQwxcCGbx/mcp"
}
}
}What is the current air quality and weather in my city?
Is the AQI in my current location safe for outdoor exercise right now?
Check the air quality for my location and tell me if I should close my windows.
Give me a summary of the weather and AQI where I am.
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 find the full tool list on the Connector page.
Connect AirVisual to your AIFAQ
How this task behaves
- 01
Does the AI know my exact street address?
No. The AI only uses your IP address to find your nearest city.
- 02
Can the AI change my smart home thermostat based on the AQI?
No. This MCP only reads data from AirVisual. It cannot control any hardware or other smart home devices.
- 03
Do I have to tell the AI my city every time?
No. The AI uses the get_nearest_city_by_ip tool to find your location automatically.
- 04
Can the AI predict tomorrow's air quality?
No. The tool is designed to pull current, real-time data for your location.
- 05
Will the AI send me push notifications if the air gets bad?
No. The AI only responds when you prompt it. It does not have the ability to send proactive alerts.
More questions about AirVisual? See everything the AirVisual Connector can do
Connect AirVisual to Claude, Cursor, ChatGPT & more
