Skip to main content
Glama

⚡ One-command install — pick your runtime:

Or 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 current

That'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

air_agent_manifest

Runtime contract: tool list, supported clients, env vars, recommended first calls

air_capabilities

Supported providers, configured providers, available metrics, privacy modes

air_connection_status

Health check + warnings the agent should surface

air_privacy_audit

What is logged locally vs sent to providers

air_data_inventory

Metric catalog + AQI band thresholds

air_current_reading

Latest sensor reading (PM2.5, CO₂, AQI, temp, humidity)

air_list_devices

List devices on an authenticated provider account (AirThings)

air_aqi_check

Fast 'is the air OK?' answer with band + recommendation

air_daily_summary

Synthesized daily snapshot

air_compare_locations

Compare AQI across 2-10 locations

air_search_public_sensors

Discovery helper for AirGradient public map

air_quickstart

Personalized 3-step setup walkthrough based on current env state

air_profile_get

Read the shared Delx Wellness profile (location, sensitivities, units)

air_profile_update

Persist a non-secret patch to the shared wellness profile (explicit intent required)

air_onboarding

11-question onboarding flow for the shared wellness profile

air_demo

Realistic example payloads — preview output before configuring anything

air_health_recommendation

PM2.5/CO₂/VOC → WHO/EPA bands + plain-language actions

air_health_bands

Classify PM2.5/PM10/CO₂/VOC into WHO 2021 / EPA / ASHRAE / UBA bands + citations

air_trend

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_TOKEN only 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_update writes 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

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 tools
air_agent_manifestAir agent manifestA
Read-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 checkA
Read-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 capabilitiesA
Read-onlyIdempotent

Lists supported providers, configured providers (via env vars), available metrics, and privacy modes.

Inputs: privacy_mode.

air_compare_locationsAir compare locationsB
Read-onlyIdempotent

Compare current readings across multiple location IDs (default: AirGradient public sensors).

Inputs: locationIds (required), privacy_mode.

air_connection_statusAir connection statusA
Read-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 readingA
Read-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 summaryB
Read-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 inventoryA
Read-onlyIdempotent

Returns the inventory of air-quality metrics this connector exposes plus per-provider availability hints (no remote calls).

Inputs: privacy_mode.

air_demoAir demoA
Read-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 bandsA
Read-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 recommendationA
Read-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 devicesA
Read-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 onboardingA
Read-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 auditA
Read-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 getA
Read-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 quickstartA
Read-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 sensorsB
Read-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 trendA
Read-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

    A3.6/5.0

    Scored across 19 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count3/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers