Skip to main content
Glama
acinfinity-mcp

acinfinity-mcp

by misterboe

acinfinity-mcp

CI Python 3.12+ MCP SDK v2 License: MIT

MCP server for AC Infinity UIS grow controllers (Controller 69 Pro / Pro+, AI+, Outlet AI). Lets Claude Code, Claude Desktop, Codex or any other MCP client read your tent's climate and change port settings through natural language.

"How is the tent doing?" → 26.5 °C / 57 % / 1.49 kPa, exhaust fan at level 3 driven by automation Automatisierung 1 …

Uses the same unofficial cloud API as the AC Infinity app, so the controller must be connected to Wi‑Fi (Bluetooth-only models such as Controller 67 are not supported). Not affiliated with AC Infinity.

Status

Area

State

Reading controllers, sensors, port settings, automations

✅ verified live on a Controller AI+ (CTR89Q) and a 69 Pro

History (1-min rows, ≥ 90 days) and event log

✅ verified live, rate-limit aware

Writing port modes / power / timers / triggers

✅ verified live on the AI+ (mode + timer round trip); standard family follows the Home Assistant integration's proven path

Backup / compare / restore of the whole configuration

✅ ports and automation rules; controller record is reported, not written

Renaming ports

✅ verified live on the AI+ (ports with nothing plugged in are rejected by the controller)

Writing advanced settings (calibration, load type, …)

⚠️ implemented on both families exactly like the app does it (decompiled 2.0.8); not yet exercised on hardware

API coverage

✅ complete — all 179 endpoint declarations of the Android app are inventoried in docs/api/app-endpoints.md

Creating / editing automations

🚧 in-place rule edits and enable/disable are wired (used by restore); create/delete next — see docs/api/automations.md

Related MCP server: bhyve-mcp

Tools

Tool

What it does

list_controllers

All controllers with tent climate (probe: °C / % / kPa), ambient climate (AI+ onboard sensor, outside the tent), port status/power/mode and every raw sensor reading

get_port_settings

Decoded mode configuration of one port: on/off power, auto & VPD triggers, timers, cycle, schedule

get_port_settings_raw

Unmodified API object incl. advanced settings (port=0 = controller)

get_device_settings

Advanced settings (calibration, load type, dynamic response, …)

get_history

Sensor & port history (1-minute cloud rows, months of retention) aggregated to any resolution with min/avg/max

get_event_log

The app's Logs tab: AI control actions per port with reason, AI mode events, user actions, alerts, controller notices

list_automations

Advance Automation programs: rules per port with mode, power, time window, days, thresholds — the real configuration on AI+ controllers

get_automations_raw

Unmodified automation rules + alarms

backup_settings

Save every port's mode settings, the controller record, all automation rules and alarms to a local JSON file

list_backups / compare_backup

List saved backups; show every field that differs between a backup and the device now

restore_settings

Write a backup back (changed ports and automation rules), then re-read and report anything still different

rename_port

Change the port label shown in the app

rename_automation

Rename an Advance Automation program (rewrites each of its rules in place)

set_port_mode

Switch a port to Off / On / Auto / Timer / Cycle / Schedule / VPD / …

set_port_power

On/off power level 0–10

set_port_timer

Countdown to on / to off

set_port_cycle

Repeating on/off minutes

set_port_schedule

Daily HH:MM on/off window

set_auto_triggers

Auto-mode temperature / humidity thresholds

set_vpd_triggers

VPD-mode thresholds

Every set_* tool refuses to run unless it is called with user_authorized: true, so the assistant has to ask you before touching a device.

Install

Requires Python ≥ 3.12 and uv.

uvx acinfinity-mcp          # once published to PyPI
# or from a checkout:
uv run acinfinity-mcp

Credentials are passed as environment variables — the e‑mail and password of your AC Infinity app account:

Variable

Required

Description

ACINFINITY_EMAIL

yes

App login e‑mail

ACINFINITY_PASSWORD

yes

App password (only the first 25 characters are used — that's an API limitation)

ACINFINITY_LOG_LEVEL

no

DEBUG, INFO (default), WARNING, ERROR

ACINFINITY_BACKUP_DIR

no

Where backup_settings stores its JSON files (default ~/.acinfinity-mcp/backups)

Client configuration

Claude Code

claude mcp add acinfinity -e ACINFINITY_EMAIL=you@example.com -e ACINFINITY_PASSWORD=secret -- uvx acinfinity-mcp

or in .mcp.json / ~/.claude.json:

{
  "mcpServers": {
    "acinfinity": {
      "command": "uvx",
      "args": ["acinfinity-mcp"],
      "env": {
        "ACINFINITY_EMAIL": "you@example.com",
        "ACINFINITY_PASSWORD": "secret"
      }
    }
  }
}

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows). Use an absolute path to uvx if it is not on Claude's PATH.

{
  "mcpServers": {
    "acinfinity": {
      "command": "uvx",
      "args": ["acinfinity-mcp"],
      "env": {
        "ACINFINITY_EMAIL": "you@example.com",
        "ACINFINITY_PASSWORD": "secret"
      }
    }
  }
}

OpenAI Codex

~/.codex/config.toml:

[mcp_servers.acinfinity]
command = "uvx"
args = ["acinfinity-mcp"]

[mcp_servers.acinfinity.env]
ACINFINITY_EMAIL = "you@example.com"
ACINFINITY_PASSWORD = "secret"

Development

uv sync                                        # deps into .venv
cp .env.example .env                           # local creds (git-ignored)
uv run --env-file .env acinfinity-mcp          # run over stdio
uv run --env-file .env mcp dev src/acinfinity_mcp/server.py   # MCP Inspector
uv run pytest                                  # tests (no live API calls)
uv run ruff check . && uv run ruff format .

The API is undocumented; everything known about it lives in docs/api/. Writes are full read‑modify‑write round trips; standard and AI controllers use different endpoints (see docs/api/endpoints.md).

Security

  • Your AC Infinity credentials only ever go to www.acinfinityserver.com (the same host the app uses) and are never logged.

  • Every mutating tool requires user_authorized: true; the server never changes a device on its own initiative.

  • Tool annotations mark reads as readOnlyHint so clients can auto-approve them and prompt for writes.

Contributing

Issues and PRs are welcome — especially captures from other controller models (Outlet AI, 69 Pro+) and help decoding the remaining sensorModeData fields. Run uv run pytest and uv run ruff check . before opening a PR; never include real device ids, MAC addresses or account data in fixtures.

Credits

API knowledge reverse-engineered from dalinicus/homeassistant-acinfinity, ober37/ac-infinity-mcp and keithah/homebridge-acinfinity.

License

MIT

Available Tools

18 tools
backup_settingsBackup settingsA

Save the complete configuration of a controller (every port's mode settings, the controller record, all Advance Automation rules and alarms) to a local JSON file. Nothing on the device changes. Do this before any set_* call; restore_settings undoes changes.

Inputs: controller_id (required), label. Returns: path, label, ports, backup_id, +4 more

compare_backupCompare backupA
Read-onlyIdempotent

Show every configuration field that differs between a backup and the device right now (per port and per automation rule), without changing anything. Use it after write experiments to verify the device is back in its original state.

Inputs: backup_id (required). Returns: changes, backup_id, new_rules, controller_id, +1 more

get_automations_rawGet raw automationsA
Read-onlyIdempotent

Unmodified Advance Automation rule objects (getGroups) plus alarms (getAlarms) for a controller, in API units. Use list_automations for the decoded view.

Inputs: controller_id (required). Returns: object

get_device_settingsGet advanced device settingsA
Read-onlyIdempotent

Return the advanced settings object (getDevSetting) for a port, or for the controller when port=0: temperature unit, calibration offsets, load type, dynamic response, sunrise timer, display options. Values are in API units. Works on both controller families; on AI controllers the same data is also nested as devSetting in get_port_settings_raw.

Inputs: port (required), controller_id (required). Returns: object

get_port_settingsGet port settingsA
Read-onlyIdempotent

Get the mode configuration of one port: active mode, on/off power, auto temperature and humidity triggers (°C / %), VPD triggers (kPa), timer and cycle durations (minutes) and the schedule window (HH:MM). Units are already converted; nothing is scaled.

Inputs: port (required), controller_id (required). Returns: Decoded mode settings of one port (from getdevModeSettingList).

get_port_settings_rawGet raw port settingsA
Read-onlyIdempotent

Return the unmodified API object for a port (getdevModeSettingList) including the nested devSetting advanced settings. Port 0 = controller-level settings. Values are in API units (see docs/api/controls-and-settings.md); use get_port_settings for converted values.

Inputs: port (required), controller_id (required). Returns: object

list_automationsList automationsA
Read-onlyIdempotent

List the Advance Automation programs of a controller (the app's "Automations" tab).

A program is a named set of rules; each rule governs one or more ports with a mode (On/Off/Auto/Cycle/VPD), on/off power, a schedule and, for Auto/VPD, sensor thresholds. These rules override the per-port mode from get_port_settings while they run — on AI controllers this is where the real configuration lives.

Use schedule/continuous for when a rule applies: continuous=true means the app's 24/7 switch is on and the rule runs at all times (window/days are then null/empty). Thresholds: low/high are null when that trigger is not set; the underlying record is only partially reverse-engineered (see raw), so report values as decoded from the device rather than as guaranteed.

Inputs: controller_id (required). Returns: rules, programs, controller_id

list_backupsList backupsA
Read-onlyIdempotent

List saved backups (newest first) with their ids for restore_settings/compare_backup.

Inputs: no named parameters. Returns: backups, backup_dir

list_controllersList controllersA
Read-onlyIdempotent

List all AC Infinity controllers on the account with current readings and port status.

tent is the climate inside the grow tent (external probe: temperature °C, humidity %, VPD kPa) — use this when the user asks how the tent is doing. ambient (AI controllers only) is the onboard sensor in the controller housing, i.e. the room outside the tent. Also returns every port with name, power level (0-10), on/off state and active mode, and on AI controllers every individual sensor reading. Readings are null while offline.

A port whose mode is 'Off' but whose power is > 0 is being driven by an Advance Automation program — call list_automations to see the rules governing it.

Inputs: no named parameters. Returns: controllers

rename_portRename portA
Idempotent

Rename a port (the label shown in the AC Infinity app). Does not change any mode or power.

Inputs: name (required), port (required), controller_id (required), user_authorized. Returns: ok, port, changed, controller_id

restore_settingsRestore settingsA
Idempotent

Write a backup back to the device: each changed port's full mode settings and each changed automation rule (in place, by id). The controller record (port 0) and rules that no longer exist are skipped and reported. Afterwards the device is re-read and any remaining differences are returned — an empty remaining_changes means fully restored.

Inputs: backup_id (required), ports, automations, only_changed, +1 more. Returns: skipped, backup_id, controller_id, ports_restored, +2 more

set_auto_triggersSet auto triggersA
Idempotent

Configure Auto-mode temperature/humidity triggers. Each trigger has a value and an enabled flag; pass only what should change. Temperatures are °C (the °F twin is derived).

Inputs: port (required), controller_id (required), activate, temp_low_c, +8 more. Returns: ok, port, changed, controller_id

set_port_cycleSet port cycleA
Idempotent

Configure Cycle mode: repeat on_minutes on, then off_minutes off.

Inputs: port (required), on_minutes (required), off_minutes (required), controller_id (required), +2 more. Returns: ok, port, changed, controller_id

set_port_modeSet port modeA
Idempotent

Switch the active mode of a port (e.g. Off, On, Auto, Schedule). The mode's parameters (power, triggers, timers) keep their current values — set them first with the other tools.

Inputs: mode (required), port (required), controller_id (required), user_authorized. Returns: ok, port, changed, controller_id

set_port_powerSet port powerA
Idempotent

Set the power levels (0-10) a port uses in its on and/or off state. Applies to every mode; in On mode on_power is the running level. Pass only the values you want to change.

Inputs: port (required), controller_id (required), on_power, off_power, +1 more. Returns: ok, port, changed, controller_id

set_port_scheduleSet port scheduleA
Idempotent

Configure Schedule mode: on at start, off at end (controller local time). A window crossing midnight (e.g. 18:00 → 06:00) is allowed. Null disables that edge (API value 65535).

Inputs: end (required), port (required), start (required), controller_id (required), +2 more. Returns: ok, port, changed, controller_id

set_port_timerSet port timerA
Idempotent

Configure a countdown timer: the port turns on (to_on) or off (to_off) after minutes.

Inputs: port (required), minutes (required), direction (required), controller_id (required), +2 more. Returns: ok, port, changed, controller_id

set_vpd_triggersSet VPD triggersA
Idempotent

Configure VPD-mode high/low triggers in kPa (one decimal). Pass only what should change.

Inputs: port (required), controller_id (required), activate, vpd_low_kpa, +4 more. Returns: ok, port, changed, controller_id

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 18 tools

    Disambiguation4/5

    Most tools are clearly distinct: list_*, get_*, set_*, and backup/restore operations each target specific resources. The main potential confusion is between get_port_settings_raw and get_device_settings, which both expose raw device data, but the descriptions clarify their different scopes.

    Naming Consistency5/5

    Tool names follow a consistent verb_noun pattern: list_*, get_*, set_*, backup_settings, restore_settings, compare_backup. The only minor inconsistency is list_backups vs compare_backup (plural vs singular), but this does not hurt predictability.

    Tool Count4/5

    With 18 tools, the server is slightly above the ideal 3-15 range, but every tool addresses a distinct configuration aspect of AC Infinity controllers. The count feels justified rather than bloated.

    Completeness3/5

    The set covers reading and writing port modes, timers, schedules, triggers, and backups well. However, there are notable gaps: no create/update/delete operations for automation programs, and no setter for device-level settings (e.g., temperature unit, calibration), limiting full lifecycle management.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      ac-infinity-mcp is an MCP server that connects Claude (and other AI assistants) directly to your AC Infinity controllers — so you can read live sensor data, run analytics, and adjust fan speeds or port states using natural language, without opening the AC Infinity app.
      25
      11
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Query and control Orbit B-Hyve irrigation systems from MCP-compatible clients like Claude Code and Cursor.
      12
      1
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Control and monitor your AC Infinity grow environment through Claude and any MCP-compatible AI assistant. It provides live sensor data, analytics, and the ability to adjust fan speeds or port states using natural language.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP-compatible AI clients to safely control Home Assistant devices and query MQTT sensors through natural language, using allowlist-guarded actions and pre-defined automations.
      MIT