- LOCATION
- DATA
- ALERTS
- HUMAN
Short answer
How can I get air quality data from sensors near me?
Your AI uses the PurpleAir MCP to find the closest active sensors and pull their current readings. You'll get specific air quality and weather metrics for your exact location.
The results you get.
Real-time environmental insights.
The AI handles the data retrieval so you can focus on the readings.
LOCATION
Find local sensors
The AI identifies the specific PurpleAir units closest to your coordinates. You get a list of nearby hardware ready for data pulls.
DATA
Get live readings
Your agent pulls current PM2.5, PM10, and weather stats from the identified sensors. This gives you a snapshot of the air you're breathing right now.
ALERTS
Monitor changes
You can ask your AI to check for spikes in pollutants. It compares current data against previous readings to spot trends.
HUMAN
Decide on action
The AI provides the numbers, but you decide if you need to close windows or stay indoors. It doesn't make health decisions for you.
The workflow
What your AI does when the request arrives.
The AI moves from locating hardware to interpreting the environmental data.
Locate hardware
The AI finds the specific PurpleAir sensors positioned near your current location.
get_sensors_near_meFetch metrics
Once the sensors are found, the AI pulls the latest air quality and weather packets.
get_sensor_dataAnalyze trends
The AI looks at the retrieved data to see if pollution levels are rising or falling.
get_sensor_dataReport findings
Your agent summarizes the particulate matter and weather conditions in plain language.
get_sensor_data
Try it
Copy these to start.
Use these prompts to begin interacting with PurpleAir data.
Starting points
Swap out the location or specific pollutant names to get different results.
PurpleAir Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_8GtJ3PAbFBkLWG7y9DACceyyzK4HYrrtyQiWNSQb/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 — PurpleAir capabilities are ready to use.
{
"mcpServers": {
"purpleair-mcp": {
"url": "https://edge.vinkius.com/vk_preview_8GtJ3PAbFBkLWG7y9DACceyyzK4HYrrtyQiWNSQb/mcp"
}
}
}Find the PurpleAir sensors near downtown Chicago and tell me the current PM2.5 levels.
What is the air quality like at my current location according to the nearest sensors?
Check the weather and air quality data for the sensors near my office.
Are there any sensors nearby showing high levels of PM10 right now?
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect PurpleAir once, then ask.
Click the link to authorize the connection. Your credentials stay encrypted, and you can immediately start asking your AI about local air quality.
Connect PurpleAir to your AIFAQ
How this task behaves.
- 01
Can the AI tell me if the air is safe to breathe?
No. The AI provides the raw sensor data and metrics, but it cannot provide medical advice or safety guarantees.
- 02
Can I use this to control my smart home air purifier?
No. This MCP only reads data from PurpleAir sensors. It cannot send commands to other devices or hardware.
- 03
How often does the data update?
The AI pulls the most recent data available from the sensors at the moment you ask the question.
- 04
Does the AI know my exact GPS coordinates?
The AI uses the location information you provide in your prompt to find the relevant sensors.
- 05
Can the AI delete sensor data?
No. The tools only allow for reading sensor data, not modifying or deleting it from the PurpleAir network.
More questions about PurpleAir? See everything the PurpleAir Connector can do
Connect PurpleAir to Claude, Cursor, ChatGPT & more
