
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 分