MCP server for direct HTTP communication with air-Q air quality sensor devices
Project description
mcp-airq
MCP server for air-Q air quality sensor devices. Enables Claude Desktop, Claude Code, and other MCP clients to directly query and configure air-Q devices on your local network.
Built on aioairq, the official async Python library for air-Q.
Installation
pip install mcp-airq
Or run directly with uvx:
uvx mcp-airq
Device Configuration
Create a JSON file with your device(s), e.g. ~/.config/airq-devices.json:
[
{"address": "192.168.4.1", "password": "your_password", "name": "Living Room"},
{"address": "office_air-q.local", "password": "other_pass", "name": "Office"}
]
Each entry requires:
address— IP address or mDNS hostname (e.g.abcde_air-q.local)password— Device password (default:airqsetup)name(optional) — Human-readable name; defaults to address
Then restrict access to the file (it contains passwords):
chmod 600 ~/.config/airq-devices.json
Alternatively, pass the device list inline via the AIRQ_DEVICES environment variable as a JSON string.
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"airq": {
"command": "uvx",
"args": ["mcp-airq"],
"env": {
"AIRQ_CONFIG_FILE": "/home/you/.config/airq-devices.json"
}
}
}
}
Claude Code
Register the server once via the CLI:
claude mcp add airq -e AIRQ_CONFIG_FILE=~/.config/airq-devices.json -- uvx mcp-airq
This writes to ~/.claude/settings.json and is automatically picked up by the Claude Code VSCode extension as well — no separate configuration needed.
If the server fails to connect: MCP servers run in a subprocess that may not inherit your shell's PATH. Replace
uvxwith its full path (which uvx→ e.g./home/you/.local/bin/uvx):claude mcp add airq -e AIRQ_CONFIG_FILE=~/.config/airq-devices.json -- /home/you/.local/bin/uvx mcp-airq
OpenAI Codex
Register the server once via the CLI:
codex mcp add airq --env AIRQ_CONFIG_FILE=~/.config/airq-devices.json -- uvx mcp-airq
This writes to ~/.codex/config.toml and is automatically picked up by the Codex VSCode extension as well.
If the server fails to connect: Use the full path to
uvx(see note above).
Available Tools
Read-Only
| Tool | Description |
|---|---|
list_devices |
List all configured air-Q devices |
get_air_quality |
Get current sensor readings (temperature, CO₂, humidity, PM, VOC, …) |
get_device_info |
Get device metadata (name, model, firmware version) |
get_config |
Get full device configuration |
get_logs |
Get device log entries |
identify_device |
Make device blink its LEDs for visual identification |
get_led_theme |
Get current LED visualization theme |
get_possible_led_themes |
List all available LED visualization themes |
get_night_mode |
Get current night mode configuration |
get_brightness_config |
Get current LED brightness configuration |
Configuration
| Tool | Description |
|---|---|
set_device_name |
Rename a device |
set_led_theme |
Change LED visualization (CO₂, VOC, Humidity, PM2.5, …) |
set_night_mode |
Configure night mode schedule and settings |
set_brightness |
Adjust LED brightness (day/night) |
configure_network |
Set static IP or switch to DHCP |
Device Control
| Tool | Description |
|---|---|
restart_device |
Restart the device (~30s downtime) |
shutdown_device |
Shut down the device (manual restart required) |
Multi-Device Support
When multiple devices are configured, specify which device to query:
- By exact name:
"Living Room" - By partial match (case-insensitive):
"living","office"
If only one device is configured, it is selected automatically.
Example Prompts
- "How is the air quality in the living room?"
- "Show CO₂ on the LEDs"
- "Enable night mode from 10 PM to 7 AM"
- "Set brightness to 50%"
- "What's in the device log?"
- "Make the air-Q blink"
Development
git clone https://github.com/CorantGmbH/mcp-airq.git
cd mcp-airq
pip install -e ".[dev]"
pytest
Release Process
- Update
versioninpyproject.toml. - Commit and create a matching Git tag like
v0.1.1. - Publish a GitHub Release from that tag.
The publish workflow validates that the release tag matches pyproject.toml, uploads the package to PyPI, and then publishes the same version to the MCP Registry.
License
Apache License 2.0 — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_airq-0.1.2.tar.gz.
File metadata
- Download URL: mcp_airq-0.1.2.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2df92d5339f955f937389892c5653e0b8c4d396434214c5c0a79898597465d02
|
|
| MD5 |
0141b582345ea7c348505b6d6119b0d8
|
|
| BLAKE2b-256 |
bfdc051474f220d5668b09d2926f142052f76ae39640339479043ad5c2553e98
|
Provenance
The following attestation bundles were made for mcp_airq-0.1.2.tar.gz:
Publisher:
publish.yml on CorantGmbH/mcp-airq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_airq-0.1.2.tar.gz -
Subject digest:
2df92d5339f955f937389892c5653e0b8c4d396434214c5c0a79898597465d02 - Sigstore transparency entry: 1051734425
- Sigstore integration time:
-
Permalink:
CorantGmbH/mcp-airq@5567d18b4ef3f98f2d5ab0dbca26bad904a5ded8 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/CorantGmbH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5567d18b4ef3f98f2d5ab0dbca26bad904a5ded8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_airq-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcp_airq-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95ca11938af3b6535f7fac19d154d710e3de2f288fcbd5bfb3149a0d8f5fc171
|
|
| MD5 |
014a3f01670ed8552889924a3cf44130
|
|
| BLAKE2b-256 |
2c8d666f90863f0ffd008a44539a8231c92c3f532fc11df543dc576157052f0b
|
Provenance
The following attestation bundles were made for mcp_airq-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on CorantGmbH/mcp-airq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_airq-0.1.2-py3-none-any.whl -
Subject digest:
95ca11938af3b6535f7fac19d154d710e3de2f288fcbd5bfb3149a0d8f5fc171 - Sigstore transparency entry: 1051734434
- Sigstore integration time:
-
Permalink:
CorantGmbH/mcp-airq@5567d18b4ef3f98f2d5ab0dbca26bad904a5ded8 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/CorantGmbH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5567d18b4ef3f98f2d5ab0dbca26bad904a5ded8 -
Trigger Event:
release
-
Statement type: