Rachio Mcp

io.github.rwestergren由 GitHub 帳號 rwestergren 發布v0.1.4更新於 Oct 24, 2026

MCP server for Rachio sprinkler controllers — schedules, zones, and live watering control

已驗證STDIO僅桌面位置與生活效率與工作流

概覽

AI 產生的概覽

針對 Rachio 灑水控制器的非官方 MCP 伺服器,讓助理檢視裝置、分區與排程,並控制即時澆水。

可以做什麼
透過裝置與分區工具列出控制器、感測器和氣象站,檢視分區設定與即時狀態,並取得行事曆、執行歷史、警示和天氣等脈絡。讀取、預覽、建立、更新、複製、刪除、執行和略過澆水排程。控制即時澆水:停止、依分區手動啟動、設定雨天延遲、略過、暫停和恢復目前執行。
適用情境
當需要讓助理檢視或修改 Rachio 澆水排程、查詢即將執行與歷史的執行紀錄,或在控制器上啟動和停止分區時使用。適合願意接受非官方逆向整合、以換取公開 API 所沒有的寫入能力的使用者。
執行需求
以 Python 套件形式透過 stdio 在本機執行,通常用 uvx 啟動或以 uv 安裝。需要 Rachio 帳號和長期有效的 RACHIO_ACCESS_TOKEN,須先用 rachio-mcp-token 指令產生一次,該指令會提示輸入帳號電子郵件和密碼。需要連線至 Rachio 雲端後端的網路存取。
安裝前請注意
使用逆向取得的內部 API,不受 Rachio 支援,介面可能隨時變動。權杖長期有效(約 25 年),在變更密碼或在其他裝置登出前一直可用,應視為敏感機密。相關工具會建立、更新和永久刪除排程,並啟動或停止實際澆水,可能浪費水或影響草坪;提交前先預覽。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Rachio Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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

Quick Start

1. Install uv

bash
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.

bash
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:

bash
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):

bash
[email protected] 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)
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)
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

ToolDescription
list_devicesEvery device on the account — controllers, sensors, weather stations
get_deviceFull details + live state for a single device
list_zonesZones configured on a controller, with agronomic metadata
get_zoneFull detail for a single zone
get_calendarScheduled runs + skip events for a date range
get_run_historyObserved recent/past zone-run telemetry plus calendar context
get_active_alertsUnresolved alerts on a device or zone
get_weatherObserved + forecast weather readings for a location

Schedule CRUD

ToolDescription
list_schedulesFilter by device, location, zone, or schedule id
get_scheduleSingle schedule + its locations/devices
preview_scheduleDry-run — returns the Schedule that create_schedule would produce, including the server-generated human-readable summary. Never persists
create_scheduleCreate a new schedule
update_schedulePartial-merge edit: name, enabled, timing/criteria, day restrictions, and per-zone add/update/remove
delete_schedulePermanent, destructive
copy_scheduleDuplicate an existing schedule
run_scheduleTrigger an immediate run
skip_scheduleSkip or re-arm the next scheduled run
get_schedule_runsPast runs + skip events for a schedule

Live controller ops

ToolDescription
stop_wateringStop whatever is running
start_zonesStart one or more zones manually by zone number + duration
set_rain_delayDefer all schedules until a given time
skip_current_zoneSkip to the next zone in the active run
pause_wateringPause the current zone for N seconds
resume_wateringResume 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.

Recommended Workflow for Schedule Changes

  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:

bash
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:

python
from rachio_mcp import RachioClient
c = RachioClient()
# Discoveryfor d in c.list_devices():    print(d["type"], d["id"], d.get("name"))
# Preview a proposed schedulepreview = 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"])
# Commitcreated = c.create_schedule(name="Fall Lawn", ...)print("created", created["id"])
# Rollbackc.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

VariableRequiredDescription
RACHIO_ACCESS_TOKENYesLong-lived bearer token minted by rachio-mcp-token. Valid for ~25 years unless revoked.
LOG_LEVELNoPython logging level (default: INFO). Logs go to stderr; stdio transport's stdout is reserved for the MCP protocol.

Minting a token (one-time setup)

VariableUsed byDescription
RACHIO_EMAILrachio-mcp-token onlyRachio account email. If unset, rachio-mcp-token prompts interactively.
RACHIO_PASSWORDrachio-mcp-token onlyRachio 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.

來源:README.md,提交 be68657

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.4最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分