You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
馃挕 Model Context Protocol (MCP) Server for Hive Monitoring & AI Agent Integration
#150
We will provide a native Model Context Protocol (MCP) Server (broodminder-mcp) for broodminder-data.
This will allow AI assistants and autonomous coding/agent environments鈥攊ncluding Claude Desktop, Antigravity CLI, Cursor, Windsurf, and Claude Code鈥攖o securely and intelligently query beehive telemetry, inspect apiary health, detect colony anomalies, and examine beekeeper notes using structured tools and resources.
Target Agent Capabilities
Beekeepers and researchers can ask conversational AI questions such as:
"How did hive weights in the North Apiary change over the last 7 days? Is there a nectar flow or dearth?"
Recent beekeeper inspection notes, weather observations, and intervention records.
get_device_health
apiary_id, min_battery
Battery percentages, charge statuses, and telemetry freshness across deployed devices.
export_hive_data
hive_id, start_date, end_date, format, destination_dir
Triggers structured data export to local disk in JSON, NDJSON, or CSV.
2. MCP Resources
broodminder://apiaries/list (JSON inventory of all registered apiaries and hives)
broodminder://hives/{hive_id}/status (Real-time snapshot of hive metrics)
broodminder://devices/health (Device battery and sync status overview)
3. MCP Prompts
inspection_prep: Prepares a pre-inspection briefing for an apiary highlighting hives with unusual weight loss, abnormal brood temperatures, or past notes.
overwintering_audit: Analyzes cluster temperature maintenance and food consumption rate heading into or during winter.
nectar_flow_tracker: Identifies daily weight gains and hive scale inflection points to guide supering decisions.
Installation & Configuration
# Install with optional MCP dependencies
pip install "broodminder-data[mcp]"# Or run instantly via uvx
uvx --from "broodminder-data[mcp]" broodminder-mcp
Agent configuration in claude_desktop_config.json or mcp.json:
Provide an offline mock/sandbox mode (broodminder-mcp --sandbox) using synthetic or anonymized telemetry fixtures so developers and agents can test without live API credentials.
Acceptance Criteria
FastMCP implementation in bm/mcp_server.py with CLI entrypoint broodminder-mcp.
Comprehensive test suite covering all tools and resources with mocked and sandbox data.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Context & Objective
We will provide a native Model Context Protocol (MCP) Server (
broodminder-mcp) forbroodminder-data.This will allow AI assistants and autonomous coding/agent environments鈥攊ncluding Claude Desktop, Antigravity CLI, Cursor, Windsurf, and Claude Code鈥攖o securely and intelligently query beehive telemetry, inspect apiary health, detect colony anomalies, and examine beekeeper notes using structured tools and resources.
Target Agent Capabilities
Beekeepers and researchers can ask conversational AI questions such as:
Proposed Tools & Resources
1. MCP Tools
get_apiary_summaryapiary_id,formatget_hive_statushive_id,formatget_telemetry_trendshive_id,metric,days,resample_interval,formatget_hive_noteshive_id,limit,formatget_device_healthapiary_id,min_batteryexport_hive_datahive_id,start_date,end_date,format,destination_dir2. MCP Resources
broodminder://apiaries/list(JSON inventory of all registered apiaries and hives)broodminder://hives/{hive_id}/status(Real-time snapshot of hive metrics)broodminder://devices/health(Device battery and sync status overview)3. MCP Prompts
inspection_prep: Prepares a pre-inspection briefing for an apiary highlighting hives with unusual weight loss, abnormal brood temperatures, or past notes.overwintering_audit: Analyzes cluster temperature maintenance and food consumption rate heading into or during winter.nectar_flow_tracker: Identifies daily weight gains and hive scale inflection points to guide supering decisions.Installation & Configuration
Agent configuration in
claude_desktop_config.jsonormcp.json:{ "mcpServers": { "broodminder": { "command": "broodminder-mcp", "env": { "BROODMINDER_API_KEY": "your-api-key-here" } } } }Sandbox Mode
Provide an offline mock/sandbox mode (
broodminder-mcp --sandbox) using synthetic or anonymized telemetry fixtures so developers and agents can test without live API credentials.Acceptance Criteria
bm/mcp_server.pywith CLI entrypointbroodminder-mcp.All reactions