Wellness Air
Use Wellness Air as a local-first air-quality MCP server that gives AI agents environmental context and health guidance without telemetry.
Fetch current readings such as PM2.5, CO₂, AQI, temperature, and humidity from supported providers.
Run fast AQI checks and compare air quality across 2–10 locations.
Discover AirGradient public sensors and list devices on owned-provider accounts.
Get daily snapshots and windowed PM2.5/CO₂/VOC trend analysis with coverage and threshold stats.
Classify pollutants into WHO/EPA/ASHRAE/UBA health bands and receive plain-language recommendations.
Inspect connection status, capabilities, data inventory, privacy posture, agent manifest, and demo payloads.
Read or update a shared non-secret wellness profile and run onboarding for personalization.
Use the same tools through MCP over stdio or loopback-only stateless HTTP, or via the CLI skill wrapper.
⚡ One-command install — pick your runtime:
Delx Wellness for Hermes:
npx -y delx-wellness-hermes setupDelx Wellness for OpenClaw:
npx -y delx-wellness-openclaw setupOr wire it standalone into Claude Desktop / Cursor / ChatGPT Desktop — see the install section below.
HTTP (v2 stateless)
Default is stdio. Optional Streamable HTTP — no session id, JSON responses, loopback only:
npx -y wellness-air@0.8.0 --http
# GET http://127.0.0.1:3000/health
# POST http://127.0.0.1:3000/mcp (sessionless)Env: WELLNESS_AIR_HOST, WELLNESS_AIR_PORT, WELLNESS_AIR_TRANSPORT=http.
Related MCP server: Polar MCP
Overview
Wellness Air is a local MCP server that exposes air-quality readings to any MCP-aware AI agent. It ships with first-class AirGradient support (open hardware + free public API — no auth needed for the 2,000+ public sensors in the worldwide feed). AirThings and PurpleAir are implemented (bring your own free API credentials); IQAir AirVisual and Awair are on the roadmap.
If wellness-air helps your agent, please star the repo. Stars make the project easier for other AI builders to discover and help Delx keep shipping local-first wellness infrastructure.
Try It In 60 Seconds
# 89 is a real, public AirGradient sensor (Prem Tinsulanonda School, Thailand).
# Swap in one near you from https://www.airgradient.com/map/ — copy the numeric
# locationId from the URL.
WELLNESS_AIR_DEFAULT_LOCATION=89 npx -y wellness-air@0.8.0 doctor
WELLNESS_AIR_DEFAULT_LOCATION=89 npx -y wellness-air@0.8.0 currentThat's it — no token, no signup, no telemetry. Public reads use AirGradient's token-free worldwide feed, so any locationId in that feed works out of the box.
Install in Claude Desktop / Cursor / ChatGPT Desktop / Codex
{
"mcpServers": {
"wellness-air": {
"command": "npx",
"args": ["-y", "wellness-air@0.8.0"],
"env": {
"WELLNESS_AIR_DEFAULT_PROVIDER": "airgradient",
"WELLNESS_AIR_DEFAULT_LOCATION": "89"
}
}
}
}Reload your client. The agent now has 19 air-quality tools.
Tools (19 total)
Tool | Purpose |
| Runtime contract: tool list, supported clients, env vars, recommended first calls |
| Supported providers, configured providers, available metrics, privacy modes |
| Health check + warnings the agent should surface |
| What is logged locally vs sent to providers |
| Metric catalog + AQI band thresholds |
| Latest sensor reading (PM2.5, CO₂, AQI, temp, humidity) |
| List devices on an authenticated provider account (AirThings) |
| Fast 'is the air OK?' answer with band + recommendation |
| Synthesized daily snapshot |
| Compare AQI across 2-10 locations |
| Discovery helper for AirGradient public map |
| Personalized 3-step setup walkthrough based on current env state |
| Read the shared Delx Wellness profile (location, sensitivities, units) |
| Persist a non-secret patch to the shared wellness profile (explicit intent required) |
| 11-question onboarding flow for the shared wellness profile |
| Realistic example payloads — preview output before configuring anything |
| PM2.5/CO₂/VOC → WHO/EPA bands + plain-language actions |
| Classify PM2.5/PM10/CO₂/VOC into WHO 2021 / EPA / ASHRAE / UBA bands + citations |
| Windowed trend analysis (mean/median/rate-of-change/peaks) for PM2.5/CO₂/VOC |
Why local-first?
Public sensors require zero auth. AirGradient runs an open public API; just pass a
locationId.Owned-sensor tokens stay on your machine. Set
AIRGRADIENT_API_TOKENonly if you own a sensor.No telemetry. wellness-air never phones home. The only outbound calls go to the providers you configure.
Read-only. No tool mutates anything upstream. (
air_profile_updatewrites only to your local shared wellness profile, never to a provider, and requires explicit user intent.)
Cross-connector wedge
Where this gets interesting: pair it with the rest of the Delx Wellness stack.
WHOOP recovery 47 + wellness-air AQI 132 (unhealthy_sensitive)
↓ ↓
Coach: "Recovery's low AND the bedroom AQI was unhealthy last night.
Skip outdoor cardio today — try mobility + low-intensity strength indoors with HEPA running."Most agents miss the room-quality variable entirely. wellness-air closes that gap.
Privacy
Run wellness-air doctor to inspect the local privacy posture. Highlights:
All readings cached under
~/.wellness-air(configurable).Provider tokens never returned to the agent.
No biometric data — environmental only.
Tool outputs explicitly tagged with their data source for downstream auditability.
Roadmap
Shipped: AirGradient (public + owned) · AirThings · PurpleAir adapters · WHO/EPA/ASHRAE/UBA health bands · windowed trend analysis (air_trend) · shared Delx Wellness profile + onboarding.
Next:
IQAir AirVisual + Awair adapters.
Cross-correlation helper (e.g.
air_correlate_with_sleep) against the rest of the Delx Wellness stack.Webhook trigger for AQI thresholds (agent gets notified when AQI crosses a band).
📧 Contact & Support
📨 support@delx.ai — general questions, integration help, partnerships
🐛 Bug reports / feature requests — GitHub Issues
🐦 Updates — @delx369 on X
🌐 Site — wellness.delx.ai
License
MIT — see LICENSE.
wellness-air is an unofficial connector. AirGradient, AirThings, PurpleAir, IQAir, and Awair are trademarks of their respective owners. None of those companies are affiliated with or endorse this project.
Skill or MCP
Same package, two doors. MCP registers tools on stdio/HTTP. The skill can drive the same tools through the CLI when the client has no MCP:
npx -y wellness-air@0.8.0 call air_connection_status --json '{}'Copy skill/SKILL.md into your agent skills dir.
0.8.0 — candidate (2026-11-02)
This is a release candidate, not evidence of an npm publication. Existing installations are not updated automatically.
Migration and security boundaries
HTTP transport accepts loopback only. LAN addresses and wildcard binds are rejected; use stdio or a local loopback client instead.
Wellness profiles are validated, limited to 256 KiB, and protected with a cooperative lock. Oversized or invalid existing profiles must be corrected before use. Symbolic links, including dangling links and legacy profile paths, are rejected. These checks do not guarantee safety against a hostile local filesystem or non-cooperating processes.
MCP inputs have a 10,000-element budget and HTTP bodies are limited to 1 MiB; compressed request bodies are rejected. Previously accepted oversized requests may now fail; reduce request sizes rather than disabling validation.
Dependency fixes are included. Upgrade explicitly after publication and restart the connector; old installations retain their previous behavior.
Available Tools
19 toolsair_agent_manifestAir agent manifestARead-onlyIdempotent
Returns the wellness-air agent manifest: tool list, supported clients, env vars, recommended first calls, capabilities, privacy posture, and community links.
Inputs: client, privacy_mode.
air_aqi_checkAir AQI checkARead-onlyIdempotent
Returns just the AQI number + band for the configured location. Use for fast 'is the air OK to go outside?' prompts.
Inputs: locationId, privacy_mode.
air_capabilitiesAir capabilitiesARead-onlyIdempotent
Lists supported providers, configured providers (via env vars), available metrics, and privacy modes.
Inputs: privacy_mode.
air_compare_locationsAir compare locationsBRead-onlyIdempotent
Compare current readings across multiple location IDs (default: AirGradient public sensors).
Inputs: locationIds (required), privacy_mode.
air_connection_statusAir connection statusARead-onlyIdempotent
Reports which providers are configured, which is the default, and any warnings the agent should surface to the user.
Inputs: privacy_mode.
air_current_readingAir current readingARead-onlyIdempotent
Fetches the most recent air-quality reading for a location. Defaults to the AirGradient public sensor at WELLNESS_AIR_DEFAULT_LOCATION (or pass locationId).
Inputs: provider, locationId, privacy_mode.
air_daily_summaryAir daily summaryBRead-onlyIdempotent
Returns a synthesized daily snapshot for a location. v0.1 returns the current reading framed as a daily snapshot; richer multi-hour aggregation arrives in v0.2.
Inputs: date, locationId, privacy_mode.
air_data_inventoryAir data inventoryARead-onlyIdempotent
Returns the inventory of air-quality metrics this connector exposes plus per-provider availability hints (no remote calls).
Inputs: privacy_mode.
air_demoAir demoARead-onlyIdempotent
Returns a realistic example payload of what air_current_reading + air_aqi_check + air_daily_summary look like in practice. Use this to help users understand what the connector will return BEFORE they configure anything. The field names and nesting are not hand-maintained guesses: scripts/demo-contract-test.mjs runs the real handlers over a synthetic sensor fixture and fails the build if this sample invents a key or omits one.
Inputs: privacy_mode.
air_health_bandsAir health bandsARead-onlyIdempotent
Classify PM2.5, PM10, CO2, and VOC readings into WHO 2021 / EPA / ASHRAE / UBA health bands. Pass readings directly, or omit them and the tool will fetch the current reading from the default provider (PM2.5, PM10, CO2, VOC where available). Returns per-pollutant band + the worst signal across pollutants + deduplicated recommended actions + source citations.
Inputs: co2, voc, pm10, pm25, +3 more.
air_health_recommendationAir health recommendationARead-onlyIdempotent
Quick PM2.5-centric health recommendation. Pass current PM2.5 (µg/m³) and optionally CO2 (ppm) and VOC index; returns WHO/EPA-aligned bands per pollutant, the overall worst band, and a deduplicated list of plain-language actions. Use this when you have a reading already and just want a 'what should I do?' answer. For richer four-pollutant classification with full source citations use air_health_bands.
Inputs: pm25_ug_m3 (required), co2_ppm, voc_index, privacy_mode, +1 more.
air_list_devicesAir list devicesARead-onlyIdempotent
Lists devices owned by the configured provider account. v0.3 supports AirThings (requires AIRTHINGS_CLIENT_ID/SECRET). For AirGradient owned sensors use air_search_public_sensors instead.
Inputs: provider, privacy_mode.
air_onboardingAir onboardingARead-onlyIdempotent
Returns the 11-question onboarding flow for the shared Delx Wellness profile. Read-only. The agent should ask these questions next so wellness-air (and the rest of the wellness stack) can personalize responses — non-secret data only, stored at ~/.delx-wellness/profile.json.
Inputs: locale, privacy_mode.
air_privacy_auditAir privacy auditARead-onlyIdempotent
Returns what wellness-air stores locally, what it sends to providers, what it never logs, and agent rules.
Inputs: privacy_mode.
air_profile_getAir profile getARead-onlyIdempotent
Returns the shared Delx Wellness profile (~/.delx-wellness/profile.json). Read-only. Surfaces the user's preferred location, sensitivity flags (asthma, etc.), and units so wellness-air can choose tighter AQI thresholds.
Inputs: privacy_mode.
air_profile_updateAir profile updateA
Persist a partial patch to the shared Delx Wellness profile. Requires explicit_user_intent: true. Rejects any field containing oauth/token/secret/password/cookie/refresh/api_key/session — the profile is for non-secret wellness context only.
Inputs: patch (required), explicit_user_intent.
air_quickstartAir quickstartARead-onlyIdempotent
Returns a personalized 3-step setup walkthrough for the human based on the current agent/env state. Call this first when the user asks 'how do I use this?'
Inputs: client, privacy_mode.
air_search_public_sensorsAir search public sensorsBRead-onlyIdempotent
Helper for discovering AirGradient public sensors. Returns a curated list of well-maintained public sensors plus a hint to the AirGradient map for finding more.
Inputs: query, privacy_mode.
air_trendAir trendARead-onlyIdempotent
Windowed trend analysis for PM2.5 / CO2 / VOC. Pulls past measurements from AirGradient (public or owned) and returns per-pollutant mean / median / min / max / current / rate_of_change_per_hour / peak_at / trough_at / time_above_threshold_minutes plus an optional natural-language observation (only when the data supports one). time_above_threshold_minutes integrates real sample spacing, so sensor downtime lowers it instead of inflating it; check coverage_ratio (0–1 fraction of the window the sensor actually reported) and last_sample_at before treating it — or current — as a full-window figure. Pass pollutant: 'all' (default) for an array of per-pollutant trends plus worst_pollutant per current WHO/ASHRAE bands. Use this for 'is PM2.5 climbing?' / 'was CO2 stable overnight?' / 'when did VOC spike?' kinds of questions.
Inputs: hours, pollutant, locationId, privacy_mode, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Several tools overlap conceptually: air_current_reading, air_aqi_check, air_daily_summary, and health tools that can fetch current readings all provide variations of the live air-quality state. Additionally, the metadata/onboarding tools (manifest, capabilities, connection_status, privacy_audit, data_inventory) have related purposes that could confuse an agent during selection.
All tools share the 'air_' prefix, creating a strong family resemblance. However, the suffix pattern is mixed: some are straightforward nouns (air_capabilities, air_trend) while others use verb_noun (air_list_devices, air_profile_get), which is a minor inconsistency.
At 19 tools, the count sits in the borderline range for the rubric. While core air-quality operations are well represented, roughly a third of the tools are meta/onboarding helpers (manifest, capabilities, privacy audit, data inventory, quickstart, onboarding, demo), which makes the surface feel heavier than necessary.
The tool set covers the key read-only air-quality workflows: current conditions, AQI, comparisons, trends, health recommendations, device listing, and sensor discovery. Profile management and setup tools round out the lifecycle. Minor gaps exist (e.g., 'daily_summary' is explicitly a partial v0.1 implementation, and there is no arbitrary historical data retrieval beyond trends), but they do not block core use.
Maintenance
Related MCP Connectors
Unofficial Air Quality MCP — wraps air-quality-api.open-meteo.com (free, no auth)
OpenAQ MCP — global air-quality measurements via the OpenAQ v3 API.
Stay ahead of pollution with our Air Quality MCP. Access real-time air quality data, including
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Related MCP Servers
- AlicenseBqualityBmaintenanceLocal-first MCP server that connects AI agents to your Withings body, sleep, activity and heart data.23211 npm6MIT
- AlicenseBqualityBmaintenanceLocal-first MCP server that connects AI agents to your Polar training, sleep, Nightly Recharge and continuous-sample data.38120 npm6MIT
- AlicenseBqualityBmaintenanceLocal-first MCP server that connects AI agents to your Oura Ring readiness, sleep, activity, and HRV data. Tokens never leave your machine.27175 npm6MIT
- AlicenseAqualityBmaintenanceLocal-first CGM MCP for AI agents: Dexcom Developer API and FreeStyle Libre via LibreLink Up.1950 npm1MIT