Skip to main content
Glama

rachio-mcp

An MCP (Model Context Protocol) server for Rachio sprinkler controllers, built on the reverse-engineered Android-app gRPC API.

The public Rachio API exposes only read-only access to schedules and a handful of single-action endpoints. This server instead talks to the same internal gRPC backend (cloud.rach.io:443) that the official mobile app uses, giving an agent the full set of operations: listing devices and zones, inspecting schedules, creating and previewing new schedules, updating and deleting them, starting and stopping manual zone runs, setting rain delays, and more.

⚠️ Unofficial. This server uses a reverse-engineered API. It works as of Rachio Android v4.21.18 and is not supported by Rachio. The schema can change without notice.

Features

  • Devices and zones — list controllers, sensors, and weather stations; inspect zone soil/nozzle/plant configuration and live state

  • Schedules — list, read, preview (dry-run), create, update, delete, copy, run, and skip schedules

  • Live control — stop watering, run specific zones manually, set rain delays, skip/pause/resume the currently-running zone

  • Context — calendar of upcoming runs, recent/past run history, active alerts, observed/forecast weather readings

Related MCP server: hydrawise-mcp

Quick Start

1. Install uv

curl -LsSf https://astral.sh/uv/install.sh | sh

2. Mint a long-lived access token

The MCP server itself never sees your Rachio password. Instead you mint a long-lived (~25-year) access token once, and supply only the token to the MCP client.

uvx --from rachio-mcp rachio-mcp-token

It will prompt for your Rachio email and password, then print a RACHIO_ACCESS_TOKEN value to paste into your MCP client config. The token remains valid until you change your password or explicitly log out from another device.

Or, if you'd rather have the commands on your PATH permanently, install once:

uv tool install rachio-mcp

Then rachio-mcp-token (and rachio-mcp itself) are available as regular commands.

For scripting (e.g. pipe into a password manager):

RACHIO_EMAIL=you@example.com RACHIO_PASSWORD=... \
    uvx --from rachio-mcp rachio-mcp-token --json | jq .access_token

3. Configure your MCP client

uvx downloads and runs the server on demand — no separate install step required.

OpenCode (opencode.json)

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "rachio": {
      "type": "local",
      "command": ["uvx", "rachio-mcp"],
      "environment": {
        "RACHIO_ACCESS_TOKEN": "{env:RACHIO_ACCESS_TOKEN}"
      },
      "enabled": true
    }
  }
}

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "rachio": {
      "command": "uvx",
      "args": ["rachio-mcp"],
      "env": {
        "RACHIO_ACCESS_TOKEN": "paste-your-token-here"
      }
    }
  }
}

If a tool call later returns a "token rejected" error, rerun rachio-mcp-token to mint a fresh one and update the config.

Available Tools

24 tools over stdio transport.

Discovery

Tool

Description

list_devices

Every device on the account — controllers, sensors, weather stations

get_device

Full details + live state for a single device

list_zones

Zones configured on a controller, with agronomic metadata

get_zone

Full detail for a single zone

get_calendar

Scheduled runs + skip events for a date range

get_run_history

Observed recent/past zone-run telemetry plus calendar context

get_active_alerts

Unresolved alerts on a device or zone

get_weather

Observed + forecast weather readings for a location

Schedule CRUD

Tool

Description

list_schedules

Filter by device, location, zone, or schedule id

get_schedule

Single schedule + its locations/devices

preview_schedule

Dry-run — returns the Schedule that create_schedule would produce, including the server-generated human-readable summary. Never persists

create_schedule

Create a new schedule

update_schedule

Partial-merge edit: name, enabled, timing/criteria, day restrictions, and per-zone add/update/remove

delete_schedule

Permanent, destructive

copy_schedule

Duplicate an existing schedule

run_schedule

Trigger an immediate run

skip_schedule

Skip or re-arm the next scheduled run

get_schedule_runs

Past runs + skip events for a schedule

Live controller ops

Tool

Description

stop_watering

Stop whatever is running

start_zones

Start one or more zones manually by zone number + duration

set_rain_delay

Defer all schedules until a given time

skip_current_zone

Skip to the next zone in the active run

pause_watering

Pause the current zone for N seconds

resume_watering

Resume a paused run

All device_id, zone_id, schedule_id, and location_id parameters are UUIDs obtained from the list_* tools. Dates use YYYY-MM-DD (or MM-DD for annual-recurring schedules); times use HH:MM.

  1. list_devices → pick your controller

  2. list_zones(device_id=...) → note each zone's id and zone_number

  3. list_schedules(device_id=...) and get_schedule(schedule_id=...) → understand what's already configured

  4. preview_schedule(...) → dry-run your proposed schedule. Read the returned summary string and the per-zone breakdown

  5. create_schedule(...) (same arguments) → commit

  6. get_schedule(schedule_id=<new>) → confirm

  7. delete_schedule(schedule_id=<new>) → rollback if needed

preview_schedule is safe to call repeatedly — it never writes anything.

To edit an existing schedule instead of recreating it, use update_schedule. It performs a partial merge: read the schedule with get_schedule, then pass only the fields you want to change (name, enabled, timing/criteria, days, or zones/zone_ids_to_remove). Omitted fields are left untouched.

How It Works

This server talks to cloud.rach.io:443 over TLS-protected gRPC, the same backend used by the Rachio Android app. Authentication uses the OAuth 2 password grant against oauth.rach.io/oAuth/token with the Android app's hardcoded client credentials.

The gRPC .proto definitions were recovered by decompiling the Rachio Android APK (v4.21.18) with jadx, extracting the embedded FileDescriptorProto payloads from the generated Java classes, and round-tripping them through protoc to produce clean .proto source. Pre-compiled Python stubs for the 40-odd messages/services used by the 23 MCP tools ship in src/rachio_mcp/proto/.

Regenerate those stubs any time the app's proto surface changes:

scripts/build_protos.sh

The stub generator reads from reverse-engineering/protos/, which is not shipped in the wheel but is kept alongside the source for future updates.

Python API

The MCP server wraps a standalone client you can use directly:

from rachio_mcp import RachioClient

c = RachioClient()

# Discovery
for d in c.list_devices():
    print(d["type"], d["id"], d.get("name"))

# Preview a proposed schedule
preview = c.preview_schedule(
    name="Fall Lawn",
    schedule_type="FIXED",
    zones=[
        {"device_id": "<controller>", "zone_id": "<zone>", "watering_time": 1200},
    ],
    start_time="06:00",
    days=["WED"],
    annual_start="09-16",
    annual_end="11-15",
    smart_cycle=True,
)
print(preview["summary"])

# Commit
created = c.create_schedule(name="Fall Lawn", ...)
print("created", created["id"])

# Rollback
c.delete_schedule(created["id"])

The client reads RACHIO_ACCESS_TOKEN from the environment, derives the user's user_id lazily on first use (via LocationService.ListLocations), and keeps both in memory for the lifetime of the process. Nothing is written to disk.

Environment

Variable

Required

Description

RACHIO_ACCESS_TOKEN

Yes

Long-lived bearer token minted by rachio-mcp-token. Valid for ~25 years unless revoked.

LOG_LEVEL

No

Python logging level (default: INFO). Logs go to stderr; stdio transport's stdout is reserved for the MCP protocol.

Minting a token (one-time setup)

Variable

Used by

Description

RACHIO_EMAIL

rachio-mcp-token only

Rachio account email. If unset, rachio-mcp-token prompts interactively.

RACHIO_PASSWORD

rachio-mcp-token only

Rachio account password. If unset, rachio-mcp-token prompts interactively with a masked input.

Neither RACHIO_EMAIL nor RACHIO_PASSWORD is ever read by the MCP server itself — they exist only to feed the one-time token-mint CLI.

Transport

stdio only. Remote HTTP with OAuth 2.1 is not supported in v0.1.

License

MIT — see LICENSE.

Available Tools

24 tools
copy_scheduleA

Duplicate an existing schedule. Returns the new Schedule.

Useful for creating seasonal variants from an existing template — copy, then update_schedule to rename.

Args: schedule_id: Schedule UUID to copy.

Inputs: schedule_id (required). Returns: result

create_scheduleA

Create a new schedule. Persists to the Rachio backend.

Strongly recommended: call preview_schedule with the same arguments first and review the returned summary before calling this. Every argument has the same meaning as in preview_schedule; see that tool's docstring for field details.

Args: name: Schedule display name. zones: List of zone entries; see preview_schedule for shape. schedule_type: FIXED, FLEX_MONTHLY, or FLEX_DAILY. enabled: Whether the schedule starts enabled (default true). start_time: Daily start time HH:MM. start_sun: "SUNRISE" or "SUNSET". days: Days of week, e.g. ["MON", "WED", "FRI"]. annual_start: Annual window start MM-DD. annual_end: Annual window end MM-DD. smart_cycle: Let Rachio auto-calculate cycle/soak. cycle_soak: Enable manual cycle+soak. cycle_time_seconds: Cycle length in seconds. soak_time_seconds: Soak duration in seconds. zone_delay_time_seconds: Delay between zones. rain_delay_enabled: Enable rain-delay skipping. freeze_delay_enabled: Enable freeze-delay skipping. wind_delay_enabled: Enable wind-delay skipping. climate_skip: Enable climate/ET skipping. seasonal_shift: Enable seasonal runtime adjustment.

Inputs: name (required), zones (required), days, enabled, +15 more. Returns: result

delete_scheduleA
Destructive

Permanently delete a schedule. This cannot be undone.

Args: schedule_id: Schedule UUID to delete.

Inputs: schedule_id (required). Returns: result

get_active_alertsA
Read-onlyIdempotent

Return unresolved alerts for a device or a specific zone.

Alerts include things like low flow, high current, freeze skip, rain skip, hardware faults. Exactly one of device_id or zone_id must be supplied.

Args: device_id: Controller UUID to query alerts for. zone_id: Zone UUID to query alerts for.

Inputs: zone_id, device_id. Returns: result

get_calendarA
Read-onlyIdempotent

Return scheduled runs and skip events for a device in a date range.

Useful for 'what's going to water this week?' or 'what did Rachio actually run last weekend?'. The response includes both runs (with per-zone durations and start times) and skips (climate- skip, rain-delay, manual skips).

Args: device_id: Controller UUID. start: Start date, ISO YYYY-MM-DD (default: today). end: End date, ISO YYYY-MM-DD (default: today + 14 days).

Inputs: device_id (required), end, start. Returns: result

get_deviceA
Read-onlyIdempotent

Get full details + live state for a single device.

Combines the static device info (model, serial, firmware, linked sensors, USDA hardiness zone, Koppen climate code, etc.) with live state (current zone run, standby, rain delay status). Linked sensors and virtual weather stations don't have a live-state record, so the state field will be null for those.

Args: device_id: Device UUID from list_devices.

Inputs: device_id (required). Returns: result

get_run_historyA
Read-onlyIdempotent

Return recent/past watering history for a controller.

This is the best first tool for questions like "what ran today?", "when did this controller water recently?", or "did anything skip?". The response includes controller-observed actual_zone_runs plus Rachio calendar_runs/skips for calendar context. Calendar events may not include every completed scheduled run; observed telemetry is the source of truth for what actually watered and is limited to the latest run per zone. For schedule-specific audit trails, use get_schedule_runs after discovering a schedule id.

Args: device_id: Controller UUID. start: Start date, ISO YYYY-MM-DD (default: today - 7 days). end: End date, ISO YYYY-MM-DD (default: tomorrow, so all of today is included).

Inputs: device_id (required), end, start. Returns: result

get_scheduleA
Read-onlyIdempotent

Get a single schedule plus the locations/devices it runs on.

Returns schedule (the full Schedule proto — criteria, restriction criteria, zone list, runtime flags, enabled state, summary) plus locations_and_devices (which property and controllers it spans).

Args: schedule_id: Schedule UUID from list_schedules.

Inputs: schedule_id (required). Returns: result

get_schedule_runsA
Read-onlyIdempotent

Return past runs + skips for a schedule in a date range.

Useful for auditing 'did my Summer Lawn actually water last week?'.

Args: schedule_id: Schedule UUID. start: Start date ISO YYYY-MM-DD (default: today - 30 days). end: End date ISO YYYY-MM-DD (default: today).

Inputs: schedule_id (required), end, start. Returns: result

get_weatherA
Read-onlyIdempotent

Return observed + forecast weather readings for a location.

Each reading includes temperature range, precipitation (observed and probability of), humidity, wind, and ET (evapotranspiration). Used by Rachio's climate-skip logic.

Args: location_id: Location UUID (from a device's location_id field). start: Start date, ISO YYYY-MM-DD (default: today - 3 days). end: End date, ISO YYYY-MM-DD (default: today + 7 days).

Inputs: location_id (required), end, start. Returns: result

get_zoneA
Read-onlyIdempotent

Get full zone detail + live state.

Returns a single zone's agronomic configuration (soil, nozzle, crop/plant, root depth, efficiency, etc.) and any live state.

Args: zone_id: Zone UUID from list_zones. force_imperial: If true, units are returned in imperial (inches, sqft). If false, metric is used.

Inputs: zone_id (required), force_imperial. Returns: result

list_devicesA
Read-onlyIdempotent

List all Rachio devices on the account.

Includes sprinkler controllers (type = CONTROLLER_GEN1/2/3 or CONTROLLER_VIRTUAL), linked sensors (SENSOR_LINKED, e.g. rain/flow sensors wired into a controller), wireless flow sensors (WIRELESS_FLOW_SENSOR), and virtual weather stations (WEATHER_STATION_VIRTUAL). Filter by type client-side if you only want the irrigation controllers.

Returns a JSON object with devices — a list of device summaries including id, type, name, location_id, and geo_point. Use get_device for full details.

Inputs: no named parameters. Returns: result

list_schedulesA
Read-onlyIdempotent

List schedules matching exactly one filter.

device_id: all schedules on a controller. location_id: all schedules at a property (across devices). zone_id: all schedules that include a given zone. schedule_id: fetch a single schedule by id (1-element result).

Exactly one argument must be supplied.

Inputs: zone_id, device_id, location_id, schedule_id. Returns: result

list_zonesA
Read-onlyIdempotent

List all zones configured on a controller.

Each zone summary includes zone_detail (soil type, nozzle type, crop/plant, available water, root depth, slope, sun exposure, area, enabled flag, zone number) and zone_state (live state if any).

Args: device_id: Controller UUID (must be a CONTROLLER_GEN* device). include_extra: Ask the server to populate extra diagnostic fields. include_moisture: Include per-zone moisture data.

Inputs: device_id (required), include_extra, include_moisture. Returns: result

pause_wateringA

Pause the currently-running zone for seconds.

Use resume_watering to continue before the pause expires; otherwise the run resumes automatically after seconds elapse.

Args: device_id: Controller UUID. seconds: How long to pause (1 to 3600).

Inputs: seconds (required), device_id (required). Returns: result

preview_scheduleA
Read-onlyIdempotent

Server-side dry-run of create_schedule. Does NOT persist anything.

Returns the same Schedule that create_schedule would produce, including the server-generated human-readable summary like 'Every Monday and Thursday at 5:00 AM'. Always call this first and verify the summary + zone breakdown before calling create_schedule.

Args: name: Schedule display name, e.g. "Summer Lawn". zones: List of zone entries. Each must be a dict with keys: device_id (str), zone_id (str), watering_time (int seconds), optionally order_id (int, defaults to list position + 1), flex_aggression_coefficient (float, flex only), flex_runtime_coefficient (float, flex only). schedule_type: FIXED (default), FLEX_MONTHLY, or FLEX_DAILY. start_time: Daily start time HH:MM, e.g. "05:00". Use this for fixed clock-time schedules. start_sun: "SUNRISE" or "SUNSET" to anchor to solar time instead of a clock time. Provide at most one of start_time or start_sun. days: Days of week for FIXED schedules, e.g. ["MON", "THU"]. Names accept MON/TUE/WED/THU/FRI/SAT/SUN (case-insensitive). Omit for schedules that run every day within the date window. annual_start: Recurring-yearly window start, MM-DD (e.g. "06-15" for mid-June). Use for seasonal schedules. annual_end: Recurring-yearly window end, MM-DD. smart_cycle: Let Rachio auto-calculate cycle and soak based on each zone's soil/slope/nozzle. cycle_soak: Enable manual cycle + soak. Combine with cycle_time_seconds and soak_time_seconds. cycle_time_seconds: Length of each watering cycle (seconds). soak_time_seconds: Rest interval between cycles (seconds). zone_delay_time_seconds: Delay between zones in the sequence. rain_delay_enabled: Skip runs after significant rain. freeze_delay_enabled: Skip runs when temp drops below freezing. wind_delay_enabled: Skip runs during high wind. climate_skip: Skip runs when climate/ET data suggests enough moisture is present. seasonal_shift: Seasonally adjust runtimes up/down.

Inputs: name (required), zones (required), days, start_sun, +14 more. Returns: result

resume_wateringC

Resume a paused zone run.

Args: device_id: Controller UUID.

Inputs: device_id (required). Returns: result

run_scheduleA

Start an immediate run of the schedule right now.

Returns the list of device_ids the run was dispatched to.

Args: schedule_id: Schedule UUID to run.

Inputs: schedule_id (required). Returns: result

set_rain_delayA
Idempotent

Set a rain-delay expiration for the device.

The device will not run any schedules until the given time. Pass an ISO-8601 datetime (2026-05-01T00:00:00Z) or 1970-01-01T00:00:00Z to cancel an existing delay.

Args: device_id: Controller UUID. expiration: ISO-8601 datetime when the delay expires.

Inputs: device_id (required), expiration (required). Returns: result

skip_current_zoneA

Skip to the next zone in the currently-running schedule.

Does nothing if no schedule is running.

Args: device_id: Controller UUID.

Inputs: device_id (required). Returns: result

skip_scheduleA
Idempotent

Toggle the skip-next-run flag on a schedule.

disabled=true skips the schedule's next run; disabled=false re-arms it. Applies only to the next occurrence.

Args: schedule_id: Schedule UUID. disabled: True to skip next run, False to re-enable it.

Inputs: disabled (required), schedule_id (required). Returns: result

start_zonesA

Start a manual run of one or more zones in sequence.

zones is a list of {"zone_number": <int>, "duration": <seconds>}. zone_number is the 1-based hardware slot visible on the controller (not the zone UUID). Find it via list_zones -> each entry's zone_detail.zone_number.

Args: device_id: Controller UUID. zones: List of {zone_number, duration} dicts. cycle_soak: Apply cycle-and-soak to the run. cycle_duration_seconds: Cycle length when cycle_soak is true. soak_duration_seconds: Soak gap when cycle_soak is true.

Inputs: zones (required), device_id (required), cycle_soak, soak_duration_seconds, +1 more. Returns: result

stop_wateringA
Idempotent

Stop all watering currently in progress on the device.

If nothing is running, this is a no-op.

Args: device_id: Controller UUID.

Inputs: device_id (required). Returns: result

update_scheduleA

Partial-merge update of an existing schedule.

Only the fields you pass are changed. The current schedule is read first and your changes are overlaid onto its existing timing, restrictions, and zones, then sent as a single update — so omitting an argument leaves that aspect untouched. Field meanings match create_schedule / preview_schedule.

Recommended: call get_schedule first to review current values.

Args: schedule_id: Schedule UUID to update. name: New display name. enabled: New enabled state. schedule_type: FIXED, FLEX_MONTHLY, or FLEX_DAILY. start_time: Daily start time HH:MM (mutually exclusive with start_sun; supplying one replaces the other). start_sun: "SUNRISE" or "SUNSET". days: Days of week, e.g. ["MON", "WED", "FRI"]. Replaces the existing day restriction. Pass [] to clear it. annual_start: Annual window start MM-DD. Pass "" to clear. annual_end: Annual window end MM-DD. Pass "" to clear. smart_cycle: Let Rachio auto-calculate cycle/soak. cycle_soak: Enable manual cycle+soak. cycle_time_seconds: Cycle length in seconds. soak_time_seconds: Soak duration in seconds. zone_delay_time_seconds: Delay between zones. rain_delay_enabled: Enable rain-delay skipping. freeze_delay_enabled: Enable freeze-delay skipping. wind_delay_enabled: Enable wind-delay skipping. climate_skip: Enable climate/ET skipping. seasonal_shift: Enable seasonal runtime adjustment. zones: Zone entries to add or update, matched on device_id + zone_id. Each dict needs device_id and zone_id; watering_time (seconds) is required for new zones and optional when updating an existing one. Optional order_id, flex_aggression_coefficient, flex_runtime_coefficient. zone_ids_to_remove: Zone UUIDs to drop from the schedule.

Inputs: schedule_id (required), days, name, zones, +17 more. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 24 tools

    Disambiguation5/5

    Each tool targets a distinct action or resource. Schedule tools are clearly separated into list, get, preview, CRUD, copy, run, skip, and history. Watering control tools (start, stop, pause, resume, skip) are unambiguous. Device, zone, weather, and alert tools each serve unique purposes with no overlap.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, e.g., list_devices, get_device, create_schedule, pause_watering. There is no mixing of styles or inconsistent verb usage, making the naming predictable and easy to navigate.

    Tool Count5/5

    With 24 tools, the server covers the full scope of Rachio irrigation management: device/zone/schedule operations, real-time watering control, weather, alerts, and history. The count is well-calibrated for the domain—neither sparse nor bloated.

    Completeness5/5

    The tool set provides comprehensive CRUD for schedules, detailed device/zone info, weather data, alerts, and full watering control (start, stop, pause, resume, skip). Calendar and run history tools cover both planned and actual events. Only minor conveniences like a batch alert listing are missing, but core workflows are fully supported.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server and CLI for controlling FarmBot hardware, enabling AI agents to manage gardening tasks through tools like gantry movement and device status monitoring. It supports executing Lua scripts and core hardware commands like homing and emergency stops via the Model Context Protocol.
      3
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for Hunter Hydrawise irrigation controllers, exposing the Hydrawise REST API as tools for AI agents to manage watering schedules and controller settings.
      -
    • 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
      A
      quality
      B
      maintenance
      MCP server for the entire Shelly smart-home ecosystem, enabling local-first control, automation, and energy monitoring of Shelly devices with cloud fallback.
      47
      32 PyPI
      2
      MIT