Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AIRQ_DEVICESNoJSON string representing an array of air-Q device configurations (alternative to AIRQ_CONFIG_FILE).
AIRQ_CONFIG_FILENoPath to JSON file containing air-Q device configurations (address, password, name, location, group). Alternatively, use AIRQ_DEVICES.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
restart_deviceB

Restart a device. It will be unreachable for about 30 seconds.

shutdown_deviceA

Shut down a device. It must be manually powered on again. Only use if explicitly requested.

list_devicesA

List all configured air-Q devices with their names, addresses, locations, and groups.

get_air_qualityA

Get current air quality sensor readings from one or more devices.

Specify exactly one of:
- 'device' — query a single device by name
- 'location' — query all devices at a given location (e.g. "Wohnzimmer")
- 'group' — query all devices in a group (e.g. "zu Hause")

When using 'location' or 'group', the response contains one entry per
device. Returns sensor names mapped to values. Set return_average=True
for time-averaged data (recommended) or False for instantaneous readings.
The response includes a _sensor_guide field with full unit and index
documentation — read it before interpreting any values.
get_device_infoA

Get device metadata: ID, name, model, firmware/hardware version, and suggested area.

get_configA

Get the full configuration of a device as a JSON dict.

The response includes a _config_guide field with full documentation of
all configuration keys — read it before interpreting or modifying values.
get_logsC

Get log entries from a device.

identify_deviceB

Make a device blink its LEDs in rainbow colors for visual identification. Returns the device ID.

get_led_themeB

Get the current LED visualization theme for both sides of a device.

get_possible_led_themesA

List all available LED visualization themes for a device.

get_night_modeB

Get the current night mode configuration of a device.

get_brightness_configB

Get the current LED brightness configuration (day and night values) of a device.

get_air_quality_historyA

Get historical air quality data stored on the device's SD card.

IMPORTANT — 'sensors' must be a JSON array, not a plain string.
  Correct:   sensors=["pm1","pm2_5"]
  Wrong:     sensors="pm1"

IMPORTANT — response size: air-Q records every ~2 minutes, so long ranges
produce large responses (24 h ≈ 720 readings × ~25 sensors). Always use
'sensors' and 'max_points' when querying more than 1–2 hours to stay within
response size limits. Example for a 24 h chart: sensors=["pm1","pm2_5","pm10"],
max_points=150.

Time range — specify one of:
- 'last_hours' — data from the last N hours (default: 1 hour)
- 'from_datetime' / 'to_datetime' — ISO 8601 strings
  (e.g. "2026-03-10T14:00:00" or "2026-03-10T14:00:00+01:00")
  'from_datetime' takes precedence over 'last_hours'.
  'to_datetime' defaults to now.
- 'timezone_name' — optional IANA timezone such as "Europe/Berlin".
  Naive datetimes are interpreted in this timezone. Output timestamps are
  localized into `datetime` using the same timezone.

Optional filtering:
- 'sensors' — list of sensor names to include (e.g. ["pm1", "pm2_5", "pm10"]).
  Omit to get all sensors.
- 'max_points' — downsample to at most this many evenly spaced points.

Response: column-oriented JSON with `timestamp` (Unix seconds) and localized
`datetime` columns. Compound sensor values like `[value, quality]` are split
into `<sensor>` and `<sensor>_quality`. Includes `_sensor_guide` and
`_history_guide`.
export_air_quality_historyA

Export historical air-Q sensor data as CSV or Excel.

Selector:
- `device` — one specific device
- `location` — all devices at one location
- `group` — all devices in one group
- if none is specified, all configured devices are exported together

OUTPUT FORMAT:
- "csv" — one UTF-8 CSV file containing all selected devices
- "xlsx" — one Excel workbook containing all selected devices

REQUIRED:
- sensor: one sensor key to export, for example `co2`, `pm2_5`, `radon`

TIME RANGE:
- `last_hours` or `from_datetime` / `to_datetime`
- `timezone_name` controls how timestamps are rendered in the exported file
plot_air_quality_historyA

Generate a chart of historical air-Q sensor data.

WHEN TO USE THIS TOOL: Call this whenever the user asks to see a graph,
chart, plot, or visual representation of historical sensor data.

Selector:
- `device` — one specific device
- `location` — all devices at one location
- `group` — all devices in one group
- if none is specified, all configured devices are plotted together

OUTPUT FORMAT:
- "png" (default) — one inline image containing all selected devices
- "webp" — inline image with smaller payload size
- "svg" — vector graphic as downloadable MCP resource
- "html" — self-contained interactive HTML as downloadable MCP resource

REQUIRED:
- sensor: the sensor key to visualise (one sensor per chart)

TIME RANGE:
- `last_hours` or `from_datetime` / `to_datetime`
- `timezone_name` controls how timestamps are rendered on the X axis and
  how naive input datetimes are interpreted
set_device_nameB

Rename a device. The new name appears on the device display.

set_led_themeA

Set the LED visualization theme for one or both sides of the device.

Common themes: 'standard', 'CO2', 'VOC', 'Humidity', 'PM2.5', 'Noise'.
Use get_possible_led_themes to see all available themes.
set_night_modeA

Configure night mode. Times in 'HH:mm' format (UTC).

brightness_day/brightness_night are percentages (0-100).
fan_night_off disables the particle sensor fan at night.
wifi_night_off caches data to SD and uploads when wifi returns.
alarm_night_off disables acoustic warnings (fire/gas still trigger).
set_brightnessA

Set LED brightness. 'default' is the normal brightness (0-100%), 'night' is optional night brightness.

configure_networkA

Configure network settings. Set dhcp=True for DHCP, or provide ip/subnet/gateway/dns for static IP.

After changing network settings, the device must be restarted.

Prompts

Interactive templates invoked by user choice

NameDescription
airq_sensor_guideGuide for interpreting air-Q sensor values: units, ranges, and semantics.
airq_config_guideGuide for interpreting and setting air-Q device configuration keys.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CorantGmbH/mcp-airq'

If you have feedback or need assistance with the MCP directory API, please join our Discord server