opensprinkler-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@opensprinkler-mcprun station 0 for 10 minutes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpenSprinkler MCP Server
MCP server for managing OpenSprinkler controllers via Claude Desktop.
Available Tools
Tool | Description |
| Get controller status (device time, enabled state, rain delay) |
| Get all stations with their current status |
| Start a station for a specified duration |
| Stop a running station |
| Stop all running stations immediately |
| Set rain delay in hours (0 to clear) |
| Enable or disable the controller |
| Reboot the OpenSprinkler controller |
| Get all watering programs |
| Get controller options and settings |
Related MCP server: Switchr MCP Server
Configuration
Environment Variables
Variable | Description | Default |
| IP address of OpenSprinkler | localhost |
| Password (plain text or MD5 hash) | (empty) |
| HTTP port | 80 |
Docker
Build Image
docker build -t opensprinkler-mcp .Run Manually (Test)
docker run -i --rm ^
-e OPEN_SPRINKLER_HOST=192.168.1.100 ^
-e OPEN_SPRINKLER_PASSWORD=your_password ^
opensprinkler-mcpWindows (PowerShell):
docker run -i --rm `
-e OPEN_SPRINKLER_HOST=192.168.1.100 `
-e OPEN_SPRINKLER_PASSWORD=your_password `
opensprinkler-mcpLinux/Mac:
docker run -i --rm \
-e OPEN_SPRINKLER_HOST=192.168.1.100 \
-e OPEN_SPRINKLER_PASSWORD=your_password \
opensprinkler-mcpAuto-Start Options
Option 1: Docker Compose (Recommended)
Create docker-compose.yml:
version: '3.8'
services:
opensprinkler-mcp:
image: opensprinkler-mcp
container_name: opensprinkler-mcp
restart: unless-stopped
environment:
- OPEN_SPRINKLER_HOST=192.168.1.100
- OPEN_SPRINKLER_PASSWORD=your_passwordStart:
docker compose up -dOption 2: Docker Run with Restart
docker run -d --name opensprinkler-mcp ^
--restart unless-stopped ^
-e OPEN_SPRINKLER_HOST=192.168.1.100 ^
-e OPEN_SPRINKLER_PASSWORD=your_password ^
opensprinkler-mcpClaude Desktop Configuration
Add to your claude_desktop_config.json:
Windows
%APPDATA%\Claude\claude_desktop_config.jsonmacOS
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux
~/.config/Claude/claude_desktop_config.jsonDocker (Recommended)
{
"mcpServers": {
"opensprinkler": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"OPEN_SPRINKLER_HOST=192.168.1.100",
"-e",
"OPEN_SPRINKLER_PASSWORD=your_password",
"opensprinkler-mcp"
]
}
}
}Pre-built Container (with auto-restart)
{
"mcpServers": {
"opensprinkler": {
"command": "docker",
"args": [
"run",
"--rm",
"-e",
"OPEN_SPRINKLER_HOST=192.168.1.100",
"-e",
"OPEN_SPRINKLER_PASSWORD=your_password",
"opensprinkler-mcp"
]
}
}
}Examples
Get all stations status
What stations are currently running?Start a station
Run station 0 for 10 minutesSet rain delay
Set 24 hour rain delayPassword
The OpenSprinkler API accepts both plain text passwords and MD5 hashes. You can generate an MD5 hash online or use the plain text password directly.
Troubleshooting
"Server disconnected" error
This usually means the MCP server is not running or not accessible. Try:
Test Docker manually:
docker run -i --rm ^ -e OPEN_SPRINKLER_HOST=YOUR_IP ^ -e OPEN_SPRINKLER_PASSWORD=YOUR_PASSWORD ^ opensprinkler-mcpIf it runs without errors, press
Ctrl+Cto stop.Check your IP address - make sure OpenSprinkler is reachable from your computer.
Restart Claude Desktop after changing configuration.
This server cannot be deployed
Maintenance
Related MCP Connectors
- sentinelOAuthio.rootstuff
Uptime, SSL, DNS and domain monitoring you can talk to from Claude or any MCP client.
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Deploy, monitor, and manage your OpenClaw AI assistants via natural language.
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables Claude Desktop to query real-time weather information, forecasts, and history via the OpenWeatherMap API.5 npm98MIT
- AlicenseAqualityDmaintenanceEnables monitoring and control of SwitchBot devices (temperature sensors, plugs, bots) via Claude Desktop or Home Assistant.106 npmMIT
- FlicenseAqualityCmaintenanceQuery and control Orbit B-Hyve irrigation systems from MCP-compatible clients like Claude Code and Cursor.121-
- AlicenseNot gradedqualityDmaintenanceControl 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