rachio-mcp
功能简介
将您的 Rachio 灌溉系统暴露给任何 MCP 客户端(Claude Code、Claude Desktop 等),这样您就可以用自然语言提问,例如 "现在有东西在浇水吗?"、"给前院草坪浇水 10 分钟",或 "设置 2 天降雨延迟"。
使用 Rachio 公共 API — 基于云、基于令牌,可从任何地方工作(无需与控制器处于同一网络)。
Related MCP server: ambient-weather-mcp
工具
工具 | 用途 |
| 列出账户上的所有控制器,包含状态和区域摘要 |
| 一次性查询:在线状态、浇水/暂停、降雨传感器与延迟、当前浇水情况 |
| 列出控制器上的区域(编号、名称、是否启用) |
| 列出已存储的浇水计划规则(浇水时间) |
| 运行单个区域 N 分钟(最长 180 分钟) |
| 按顺序运行多个区域 |
| 立即停止所有浇水 |
| 设置/清除降雨延迟(0–7 天) |
| 按名称或 ID 启动已存储的浇水计划规则 |
| 将控制器切换为待机/退出待机 |
区域和设备可以通过 名称或编号 引用,而不仅仅是 API ID。
环境要求
Python 3.12+
一个 Rachio 账户和 API 令牌
获取 API 令牌
在 Rachio 移动应用 中:Profile → Get API Key → Copy。
这是一个与您的账户绑定的单一 bearer 令牌 — 请像对待密码一样妥善保管。
安装
git clone https://github.com/rudy325/rachio-mcp.git
cd rachio-mcp
uv sync配置
export RACHIO_API_TOKEN=your-api-token参见 .env.example。
在 Claude Code 中注册
claude mcp add rachio \
--env RACHIO_API_TOKEN=your-api-token \
-- uv --directory /path/to/rachio-mcp run server.py或者在 Claude Desktop 中,通过 claude_desktop_config.json:
{
"mcpServers": {
"rachio": {
"command": "uv",
"args": ["--directory", "/path/to/rachio-mcp", "run", "server.py"],
"env": { "RACHIO_API_TOKEN": "your-api-token" }
}
}
}与其他客户端一起使用(OpenAI、本地模型等)
这是一个标准的 MCP 服务器 — 它通过 stdio 使用开放协议,不关心由哪个模型或客户端驱动。任何支持 MCP 的客户端都可以使用:
OpenAI — Agents SDK 和 Responses API 接受 MCP 服务器。配置方式:
command: "uv",args: ["--directory", "/path/to/rachio-mcp", "run", "server.py"], 并在环境中设置RACHIO_API_TOKEN。本地 / 开源模型 — 通过任何支持 MCP 的客户端(Cline、Continue、LibreChat、Open WebUI、Goose、Zed、Cursor)运行 Ollama、Llama、Qwen 等。
任何其他 MCP 客户端 — 与上述 Claude 示例相同的 stdio 命令。
唯一的要求是模型具备良好的工具/函数调用能力;大型托管模型和较强的本地模型(Llama 3.1+、Qwen 2.5+)都能很好地胜任。
注意事项
多个控制器: 每个工具都接受可选的
device参数(名称或 ID),仅在账户下有多个控制器时才需要指定。时长限制: 区域运行最长 180 分钟,降雨延迟最长 7 天,与 API 限制一致。
待机:
set_device_power(on=false)将控制器置于待机状态,暂停所有计划浇水,直到重新开启。速率限制: Rachio API 每个令牌每天允许 1700 次调用;这些工具每次操作都是单次调用,因此正常使用远不会触及限制。
整体架构
MCP client ──stdio──> server.py ──HTTPS──> api.rach.io/1 ──> your Rachio controller许可证
MIT。与 Rachio, Inc. 无关联,也未获得其认可。 "Rachio" 是 Rachio, Inc. 的商标。
Available Tools
10 toolsget_statusA
Current state of a controller: online, on/paused, rain sensor/delay, and what (if anything) is watering right now. The one call for "what's my sprinkler doing".
Inputs: device.
list_devicesA
List Rachio controllers on the account with status and zone summary.
Inputs: no named parameters. Returns: result
list_schedulesB
List the stored schedule rules (watering times) on a controller.
Inputs: device. Returns: result
list_zonesA
List every zone on a controller (number, name, enabled state).
Inputs: device. Returns: result
run_scheduleB
Start a stored schedule rule by its id or name.
Inputs: schedule (required), device.
set_device_powerA
Turn a controller's automatic schedules on (standby off) or off (standby on). Turning it off pauses all scheduled watering until turned back on.
Inputs: on (required), device.
set_rain_delayB
Set a rain delay in days (0 clears it, max 7).
Inputs: days (required), device.
start_zoneC
Run a single zone for the given number of minutes (max 180).
Inputs: zone (required), minutes (required), device.
start_zonesA
Run multiple zones in sequence. Each item: {"zone": <num/name>, "minutes": }. They water one after another in the order given.
Inputs: zones (required), device.
stop_wateringB
Stop all watering on a controller immediately (manual or scheduled).
Inputs: device.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools clearly target distinct actions and resources, such as listing devices, zones, and schedules or setting rain delay. The main potential confusion is between start_zone, start_zones, and run_schedule, though descriptions clarify the differences.
Tool names follow a consistent verb_noun pattern throughout: list_*, start_*, set_*, stop_*, run_*. Even the plural start_zones follows logically from start_zone.
10 tools is well-scoped for an irrigation controller server. Each tool covers a meaningful control or query action without unnecessary bloat or missing essential functionality.
The server covers core device management, zone control, schedule execution, status, and watering control. Minor gaps exist like detailed watering history or schedule editing, but the main local control workflows are complete.
Maintenance
Related MCP Connectors
Control your Tesla from your AI assistant - climate, charging, access, and security.
Read RemoteLock devices and guests; manage door access and physically lock or unlock doors.
Control your existing Philips lights, Sonos speakers, Roborock vacuums and other supported devices through Port OS cloud. Give ChatGPT, Claude and other MCP-compatible assistants access to the devices you connect. Turn off the living room lights, play music on your speakers, adjust the thermostat, run a vacuum in a room, check a camera snapshot or find a connected tracker. Available actions depend on your linked provider accounts and each device’s supported capabilities. Port OS runs in the cloud; no local server is required. You choose the account, device and capability permissions each assistant receives. Device operations require user OAuth; public tool discovery does not grant device access. Port OS is in alpha. Setup: https://portoperatingsystem.com/docs/getting-started/ Support: https://portoperatingsystem.com/contact/
Ask about your IoT sensors, devices, anomalies and automations, switch outputs and log values.
Related MCP Servers
- FlicenseNot gradedqualityFmaintenanceEnables managing OpenSprinkler irrigation controllers via Claude Desktop, including starting/stopping stations, setting rain delays, and viewing controller status.-
- AlicenseNot gradedqualityDmaintenanceEnables natural language queries about Ambient Weather personal weather station data, including current conditions and device info.MIT
- AlicenseAqualityCmaintenanceMCP server for full control of Rachio sprinkler controllers via the reverse-engineered internal gRPC API, enabling schedule management, manual zone runs, rain delays, and weather data retrieval.248MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural-language control and monitoring of Rain Bird ESP-TM2 irrigation controllers over a local LAN, including starting zones, running programs, setting rain delays, and checking status.1MIT