
air-Q Cloud
io.github.CorantGmbH由 GitHub 账号 CorantGmbH 发布v1.4.6更新于 Oct 24, 2026
MCP server for air-Q Cloud API — access air quality data from anywhere
概览
面向 air-Q Cloud API 的只读 MCP 服务器,让助手列出空气质量传感器并远程获取、绘图和导出其读数。
- 可以做什么
- 列出已配置的 air-Q Cloud 设备及其名称、位置和分组
- 获取某设备、位置或分组的最新传感器读数
- 按时间范围以列式 JSON 获取历史读数
- 按传感器为匹配的设备绘制历史图表(PNG、WebP、SVG 或交互式 HTML)
- 将单个传感器的历史数据导出为 CSV 或 XLSX,覆盖所有匹配设备
- 适用场景
- 适合让助手在不在同一局域网的情况下查看 air-Q 传感器的当前室内或环境空气质量,或拉取、绘图并导出历史传感器数据用于报告。
- 运行要求
- 以 Python 包形式本地运行,通过 pip 安装 mcp-airq-cloud。需要 Cloud API 密钥以及每台设备的 32 位设备 ID,均可在 air-Q 账户门户获取。设备通过 JSON 配置文件(默认路径或 AIRQ_CLOUD_CONFIG_FILE)或 AIRQ_CLOUD_DEVICES 中的内联 JSON 配置,AIRQ_CLOUD_API_KEY 可作为共享的备用密钥。需要访问 air-Q Cloud API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 air-Q Cloud,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-airq-cloud
[MCP] [PyPI] [Total Downloads] [Python] [License] [Tests] [Coverage]
MCP server for the air-Q Cloud API — access air quality data from anywhere.
Unlike mcp-airq (which communicates directly with devices on the local network), this server uses the air-Q Cloud REST API to retrieve sensor data remotely.
The same mcp-airq-cloud executable also works as a direct CLI when you pass a
tool name as a subcommand.
Tools
All tools are read-only — the Cloud API does not support device configuration or control.
Installation
Or install from source:
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. Plot commands can also stream
directly to stdout.
Historical Data
Three tools provide access to historical sensor data via the air-Q Cloud API:
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.
Common parameters
Configuration
You need a Cloud API key and the 32-character device ID for each device. Both can be obtained at my.air-q.com.
Option 1: Environment variable (inline JSON)
Option 2: Default config file (recommended)
Place a JSON file at ~/.config/airq-cloud-devices.json — no environment variable needed:
Option 3: Custom config file path
Option 4: Global API key
If all devices share the same API key, set it once:
Device config fields
Usage with Claude Desktop
Add to claude_desktop_config.json:
Usage with Claude Code
Development
The repository uses a project-local .venv plus uv.lock for reproducible
tooling. Run developer commands through uv run, for example:
License
Apache 2.0 — see LICENSE.
来源:README.md,提交 a382b29
工具
0版本历史
1- v1.4.6最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分