HortusFox MCP Server
HortusFox MCP server connects AI assistants to a HortusFox plant management instance to inspect, search, log, and update garden data.
List active plants, optionally filter by location or limit, and view species, locations, and care status.
Get detailed plant information, including care attributes, timestamps, and custom properties.
Retrieve plant history with past logs, care notes, watering records, and observations.
Add plant care logs for watering, fertilizing, repotting, pruning, measurements, or general notes, with automatic timestamp updates when applicable.
Search plants across all locations by common name, scientific name, or tag.
List all growing locations such as balcony, indoor, or garden.
Directly update plant attributes like last_watered, last_fertilised, last_repotted, health_state, and notes.
List inventory items such as fertilizers, substrates, and pest control supplies.
Increment or decrement inventory stock counts.
Support proxied/authenticated HortusFox instances via custom headers and Cloudflare Access credentials.
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., "@HortusFox MCP Server Which plants need watering today?"
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.
HortusFox MCP Server 🌿🦊
A Model Context Protocol (MCP) server for HortusFox, the self-hosted collaborative plant management system.
Connect your AI coding assistants (Claude Code, Cursor, Antigravity, OpenCode, Windsurf) directly to your home garden database to inspect plant health, query watering schedules, log care events, and update timestamps.
Note: This project is open-source, community-driven, and was vibe-coded / AI-assisted with Google Antigravity pair programming.
Features
Flexible Connectivity: Connect to local LAN instances or remote instances behind reverse proxies and authentication gateways.
Rich Care Tools:
list_plants: Overview of active plants, species, locations, and care dates.get_plant_details: In-depth attributes (both default and custom fields like "Last pruned", "Soil moisture", etc.).get_plant_history: Full audit trail of care logs, measurements, and status updates.add_plant_log: Record watering, repotting, or health observations directly from conversation, with automatic timestamp synchronization!search_plants: Fuzzy search across botanical names, common names, and tags.list_locations: Discover garden zones (e.g. Indoor, Balcony, Greenhouse).update_plant_attribute: Modify attributes (last_watered,last_repotted,health_state,notes).list_inventory&update_inventory_amount: Monitor and update garden supplies and substrate stock.
Related MCP server: MySQL MCP Server
Tool Reference
Tool | Arguments | Description |
|
| Retrieve active plants and their care status. |
|
| Get comprehensive plant specs and custom attributes. |
|
| Fetch historical activity logs and notes for a plant. |
|
| Add care note. If action is |
|
| Search plants across all locations. |
| None | List all registered growing locations. |
|
| Directly update an attribute (e.g. |
|
| Retrieve inventory items (fertilizers, substrates, pest control, supplies) and stock counts. |
|
| Increment or decrement stock count of an inventory item. |
Prerequisites
Node.js 18+ and npm.
HortusFox v3.1+ instance with API enabled:
In HortusFox, navigate to Admin Panel -> API.
Generate an API Key.
Installation & Build
git clone https://github.com/gotylergo/hortusfox-mcp.git # or local folder
cd hortusfox-mcp
npm install
npm run buildThe compiled server entrypoint is located at dist/index.js.
Configuration & Environment Variables
Variable | Description | Example |
| Base URL of your HortusFox instance. |
|
| HortusFox API token generated in Admin -> API. |
|
| (Optional) JSON map of custom HTTP headers (e.g. reverse proxy or auth tokens). |
|
| (Optional) Shorthand for Cloudflare Access Service Token Client ID. |
|
| (Optional) Shorthand for Cloudflare Access Service Token Client Secret. |
|
Registering with MCP Clients
Claude Desktop / Claude Code (claude_desktop_config.json)
{
"mcpServers": {
"hortusfox": {
"command": "node",
"args": ["/absolute/path/to/hortusfox-mcp/dist/index.js"],
"env": {
"HORTUSFOX_URL": "http://localhost:8080",
"HORTUSFOX_API_TOKEN": "YOUR_API_TOKEN"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"hortusfox": {
"command": "node",
"args": ["/absolute/path/to/hortusfox-mcp/dist/index.js"],
"env": {
"HORTUSFOX_URL": "http://localhost:8080",
"HORTUSFOX_API_TOKEN": "YOUR_API_TOKEN"
}
}
}
}Antigravity / Gemini CLI (~/.gemini/antigravity/mcp_config.json)
{
"mcpServers": {
"hortusfox": {
"command": "node",
"args": ["/absolute/path/to/hortusfox-mcp/dist/index.js"],
"env": {
"HORTUSFOX_URL": "http://localhost:8080",
"HORTUSFOX_API_TOKEN": "YOUR_API_TOKEN"
}
}
}
}OpenCode (~/.config/opencode/opencode.jsonc)
{
"mcp": {
"hortusfox": {
"type": "local",
"command": ["node", "/absolute/path/to/hortusfox-mcp/dist/index.js"],
"environment": {
"HORTUSFOX_URL": "http://localhost:8080",
"HORTUSFOX_API_TOKEN": "YOUR_API_TOKEN"
}
}
}
}Authentication Proxies & Custom Headers
If your HortusFox instance is protected by an authentication gateway (such as Cloudflare Access, Authelia, or an OAuth proxy), pass custom headers via HORTUSFOX_CUSTOM_HEADERS:
"env": {
"HORTUSFOX_URL": "https://plants.example.com",
"HORTUSFOX_API_TOKEN": "YOUR_API_TOKEN",
"HORTUSFOX_CUSTOM_HEADERS": "{\"CF-Access-Client-Id\": \"...\", \"CF-Access-Client-Secret\": \"...\"}"
}For Cloudflare Access specifically, CF_ACCESS_CLIENT_ID and CF_ACCESS_CLIENT_SECRET can also be supplied directly as environment variables.
Bundled Skills & Agent Guides
This repository includes a ready-to-use agent skill located at skills/plant-care-bootstrap/SKILL.md:
plant-care-bootstrap: Audits active plants in the user's HortusFox database, pulls verified botanical care requirements on-demand from authoritative databases (RHS, NC Extension, Missouri Botanical Garden, ICPS), and can either pre-populate HortusFox plant notes/knowledge links or equip local assistants with zero-hallucination care reference guides.Compatible with OpenCode, Claude Code, Antigravity, and Cursor.
License
MIT
Available Tools
9 toolsadd_plant_logB
Log watering, repotting, fertilization, or observation notes for a plant directly from conversation.
Inputs: notes (required), plant_id (required), action, update_timestamp.
get_plant_detailsB
Get deep plant information, care attributes, last watered/fertilized timestamps, and custom properties.
Inputs: plant_id (required).
get_plant_historyA
Retrieve historical log events, care notes, watering records, and observations for a plant.
Inputs: plant_id (required), limit.
list_inventoryA
Retrieve inventory items (fertilizers, substrates, pest control, supplies) and stock counts from HortusFox.
Inputs: group.
list_locationsA
List all growing locations (e.g. Balcony, Indoor, Garden) in HortusFox.
Inputs: no named parameters.
list_plantsB
Retrieve active plants, species, locations, and care statuses from HortusFox.
Inputs: limit, location_id.
search_plantsA
Search for plants across all locations by name, scientific name, or tag.
Inputs: query (required), limit.
update_inventory_amountB
Increment or decrement the stock count of an inventory item in HortusFox.
Inputs: action (required), item_id (required).
update_plant_attributeC
Directly update a plant default attribute (e.g., last_watered, last_fertilised, last_repotted, health_state, notes).
Inputs: value (required), plant_id (required), attribute (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools map to clearly distinct resources and actions: plants, plant history, locations, and inventory. The only minor ambiguity is between search_plants and list_plants, which both return plant collections but differ in query flexibility.
All tool names follow a consistent lowercase snake_case verb_noun pattern, with clear verbs like search, list, get, add, and update. There is no mixing of styles or vague names.
Nine tools is a well-scoped set for a plant management server, covering retrieval, updates, logging, and inventory without unnecessary redundancy. Each tool has a clear role.
The read, update, and logging operations are solid, but the set lacks create or delete operations for plants, locations, and inventory items. This creates a notable lifecycle gap for agents managing a HortusFox collection.
Maintenance
Related MCP Connectors
Work with your database from AI tools: ask, export, approved changes, and scheduled jobs.
Query, explore, and manage your databases through natural conversation.
Store, query, and update structured data from any AI agent
Connects AI assistants to TrackingTime for querying time entries, projects, tasks, customers, and team data using natural language.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to connect to and interact with PostgreSQL, MySQL, SQLite, and MongoDB databases through natural language, supporting schema exploration, query execution, data export, and more.13MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to directly query MySQL databases, list tables, and view table structures through natural language.20 npmMIT
- AlicenseBqualityDmaintenanceEnables AI assistants to directly manage database tables, execute SQL, and handle user operations in iadev projects from the editor.15MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI tools to understand a database, inspect schema, and run safe SELECT queries with SQL guardrails, plus optional codebase reading.MIT