
air-Q
io.github.CorantGmbH由 GitHub 帳號 CorantGmbH 發布v1.6.5更新於 Oct 24, 2026
MCP server for direct HTTP communication with air-Q air quality sensor devices
概覽
此 MCP 伺服器讓助理查詢與設定區域網路內的 air-Q 空氣品質感測器,並產生歷史圖表與匯出資料。
- 可以做什麼
- 列出已設定的裝置,讀取即時感測器讀值、裝置資訊、設定、日誌及 LED、夜間模式、亮度設定
- 依裝置名稱、位置或群組查詢多台裝置與多項感測器的讀值
- 以欄位導向 JSON 取得歷史感測器資料,支援時間範圍與降取樣
- 依感測器繪製歷史圖表(PNG、WebP、SVG、HTML),並將歷史資料匯出為 CSV 或 XLSX
- 修改裝置設定:名稱、LED 主題、夜間模式、亮度、網路(固定 IP 或 DHCP)
- 控制裝置:閃爍 LED 以便辨識、重新啟動或關機
- 適用情境
- 適用於區域網路內有一台或多台 air-Q 感測器,希望助理回報 CO2、VOC、濕度或 PM 讀值、繪製或匯出趨勢,或調整裝置顯示與網路設定的情境。
- 執行需求
- 以本機 Python 套件執行(pip install mcp-airq 或 uvx mcp-airq)。需透過 AIRQ_CONFIG_FILE 指定裝置設定 JSON 檔,或在 AIRQ_DEVICES 中內嵌 JSON 裝置清單。每個裝置項目需提供位址(IP 或 mDNS 主機名稱)與裝置密碼。裝置須能在區域網路內連線。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 air-Q,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-airq
[MCP] [PyPI] [Total Downloads] [Python] [License] [Tests] [Coverage]
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.
The same mcp-airq executable also works as a direct CLI when you pass a tool
name as a subcommand.
Installation
Or run directly with uvx:
CLI Usage
Use the same command directly from the shell:
For historical plots and exports:
- omit
device,location, andgroupto combine all configured devices into one artifact - use
locationorgroupto combine only the matching devices plot_air_quality_historyreturns one file per requested sensor, with one series per matching deviceexport_air_quality_historyreturns one CSV/XLSX file per request, with rows for all matching devices
The CLI subcommands mirror the MCP tool names. Both styles work:
To force MCP server mode from an interactive terminal, run:
The CLI is pipe-friendly: successful command output goes to stdout, while
tool errors go to stderr with exit code 1.
Device Configuration
Create a JSON file with your device(s), e.g. ~/.config/airq-devices.json:
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 addresslocation(optional) — Physical room/area for grouping (e.g."Living Room")group(optional) — Second grouping dimension, orthogonal to location (e.g."Home","Work")
Then restrict access to the file (it contains passwords):
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:
Claude Code
Register the server once via the CLI:
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):
OpenAI Codex
Register the server once via the CLI:
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
Configuration
Device Control
Multi-Device Support
When multiple devices are configured, specify which device to query:
- By exact name:
"air-Q Pro" - By partial match (case-insensitive):
"pro","radon"
If only one device is configured, it is selected automatically.
Location and Group Queries
get_air_quality accepts two optional grouping parameters:
location— query all devices in the same room (e.g."Living Room")group— query all devices sharing a group tag (e.g."Home")
Both are independent: a device can have a location, a group, both, or neither. Matching is case-insensitive and substring-based.
Exactly one of device, location, or group may be specified per call.
Historical Data
Three tools provide access to data stored on the device's SD card:
Plotting charts
plot_air_quality_history renders a chart for one sensor. When multiple devices
match, each device becomes a separate series in the same chart.
[CO₂ area chart — single device]
Single device (24 h, area chart, PNG)
[CO₂ area chart — multiple devices]
Multiple devices at one location (24 h, area chart, PNG)
Output formats: png (default), webp, svg, html (interactive Plotly chart with hover tooltips and zoom)
Customization: --title, --x-axis-title, --y-axis-title, --chart-type (line/area), --dark, --timezone-name
Exporting data
export_air_quality_history produces one CSV or Excel file containing all matching devices.
Querying raw JSON
get_air_quality_history returns column-oriented JSON, useful for programmatic analysis.
Common parameters
Example Prompts
- "How is the air quality in the living room?" — queries all devices at that location
- "What's the air quality at home?" — queries all devices in the "Home" group
- "Show the CO₂ trend over the last 12 hours as SVG"
- "Export the radon history from yesterday as Excel"
- "Show me the radon level" — targets the air-Q Radon device by name
- "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
The repository uses a project-local .venv plus uv.lock for reproducible tooling.
Run all developer commands through uv run, for example:
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.
來源:README.md,提交 72ef56e
工具
0版本歷史
1- v1.6.5最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分