bhyve-mcp
Query and control Orbit B-Hyve irrigation systems from MCP-compatible clients like Claude Code and Cursor.
README
bhyve-mcp
MCP server for Orbit B-Hyve irrigation systems. Query and control sprinklers from Claude Code, Cursor, or any MCP-compatible client.
Features
- Read tools: list devices, device status, zones, programs, watering history
- Write tools: start/stop watering, rain delay, device mode, program updates, smart watering toggle
- Resources:
bhyve://devicesandbhyve://device/{device_id}/zones - Transport: stdio (local MCP)
Requirements
- Python 3.10+
- uv (recommended) or pip
- Orbit B-Hyve account
Setup
- Clone this repo and install dependencies:
cd bhyve-mcp
uv sync
- Copy credentials:
cp .env.example .env
# Edit .env with your BHYVE_EMAIL and BHYVE_PASSWORD
Cursor / Claude Code configuration
Add to ~/.cursor/mcp.json or your project's .mcp.json:
{
"mcpServers": {
"bhyve": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/bhyve-mcp",
"python",
"-m",
"bhyve_mcp.server"
],
"env": {
"BHYVE_EMAIL": "your-email@example.com",
"BHYVE_PASSWORD": "your-password"
}
}
}
}
Replace /path/to/bhyve-mcp with the absolute path to this directory.
Development
# Run tests
uv run pytest
# Interactive MCP testing
uv run mcp dev src/bhyve_mcp/server.py
Architecture
- FastMCP (
mcpPython SDK) — MCP tool/resource server over stdio - Vendored pybhyve — B-Hyve REST + WebSocket client (from sebr/bhyve-home-assistant)
- Session wrapper — lazy auth, token refresh on 401/403, structured errors
Write operations (start watering, rain delay, etc.) use the B-Hyve WebSocket API. Read operations use REST polling.
Safety
start_wateringdefaults to a 30-minute max unlessallow_extended_runtime=true- Rain delay capped at 168 hours (7 days)
- Watering duration capped at 120 minutes
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases