grocy-mcp
Provides tools for managing Grocy, including stock, shopping lists, recipes, chores, batteries, equipment, calendar exports, file groups, print helpers, and generic entity management.
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., "@grocy-mcp What's on my shopping list?"
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.
grocy-mcp
Python MCP server and CLI for Grocy.
grocy-mcp lets AI agents and terminal users work with Grocy through one shared codebase. It exposes stock, shopping lists, recipes, chores, batteries, equipment, calendar exports, file groups, print helpers, workflow preview/apply helpers, discovery tools, and generic entity management through:
an MCP server for tools like Claude Desktop, Claude Code, and other MCP clients
a
grocyCLI for direct command-line use
Choose your path
Want to connect Grocy to Claude, ChatGPT, or another MCP client? Install
grocy-mcp, run the MCP server, and point your client at it.Want to manage Grocy from the terminal? Install the package and use the
grocyCLI directly.Want to build chat, OCR, or photo-driven flows? Normalize items outside this repo, then call the workflow preview/apply tools here.
If you only want the fastest possible first run, this is enough:
pip install grocy-mcp
export GROCY_URL="https://grocy.example.com"
export GROCY_API_KEY="your-api-key-here"
grocy stock overviewRelated MCP server: Mealie MCP
Why this project
Grocy already has a solid REST API, but most day-to-day interactions still require either:
clicking through the Grocy UI
writing one-off API scripts
wiring ad hoc automations around numeric IDs
grocy-mcp packages those API capabilities into a cleaner operator experience:
human-friendly names instead of IDs for common flows
a reusable MCP surface for AI agents
a mirrored CLI for shell workflows and scripting
one shared implementation for both interfaces
Features
80+ MCP tools across stock, shopping, recipes, chores, locations, tasks, meal plans, batteries, equipment, calendar, files, print, discovery, workflow helpers, and system operations
Full Typer CLI with grouped subcommands under
grocyGlobal
--jsonmode for machine-readable output on the supported list/view/reporting commandsTop-level CLI config overrides via
--urland--api-keyName-based resolution for products, recipes, chores, locations, batteries, and equipment
Stable workflow-oriented JSON contracts for preview/apply flows driven by chat, OCR, or vision clients
Batch preview/apply helpers for product matching, stock intake, and shopping-list reconciliation
First-class catalog helpers for shopping metadata, quantity metadata, task categories, meal-plan sections, and price-history views
First-class household helpers for batteries, equipment, calendar summaries, file groups, print actions, and discovery
Streamable HTTP and stdio MCP transports
Async client layer with retry handling for transient server errors
Generic entity access for Grocy resources outside the dedicated commands
Test suite built with
pytest,pytest-asyncio, andrespx
Current status
This project is in active development and the current published version is 0.2.0.
Python:
3.11+Grocy:
v4.4.1+Packaging: PyPI package plus a multi-architecture OCI image at
ghcr.io/rubio-enterprises/grocy-mcp
Installation
Install from PyPI:
pip install grocy-mcpOr run without a permanent install:
uvx grocy-mcp --transport stdioOr run the Streamable HTTP server as a container:
docker run --rm -p 8000:8000 \
-e GROCY_URL="https://grocy.example.com" \
-e GROCY_API_KEY="your-api-key-here" \
ghcr.io/rubio-enterprises/grocy-mcp:v0.2.0-rubio.1Quick start
1. Configure access to Grocy
Use whichever option fits your environment best.
Bash / zsh:
export GROCY_URL="https://grocy.example.com"
export GROCY_API_KEY="your-api-key-here"PowerShell:
$env:GROCY_URL = "https://grocy.example.com"
$env:GROCY_API_KEY = "your-api-key-here"Or create a config file:
[grocy]
url = "https://grocy.example.com"
api_key = "your-api-key-here"Expected config path:
Linux:
~/.config/grocy-mcp/config.tomlmacOS:
~/Library/Application Support/grocy-mcp/config.tomlWindows: platform-specific
grocy-mcp/config.tomlconfig dir viaplatformdirs
2. Pick your path
If you want to use an MCP client such as Claude Desktop or Claude Code, start the server:
Local stdio clients:
grocy-mcp --transport stdioHTTP transport:
grocy-mcp --transport streamable-http --host 0.0.0.0 --port 8000 --path /mcpIf you just want the CLI, run a command immediately:
grocy stock overview
grocy shopping view
grocy recipes list
grocy chores overdueIf you want structured output for scripts or LLM clients:
grocy --json stock overview
grocy --json workflow match-products-preview '[{"label":"whole milk","quantity":2}]'MCP usage
Example Claude Desktop / Claude Code-style MCP configuration:
{
"mcpServers": {
"grocy": {
"command": "grocy-mcp",
"args": ["--transport", "stdio"],
"env": {
"GROCY_URL": "https://grocy.example.com",
"GROCY_API_KEY": "your-api-key-here"
}
}
}
}The MCP server currently supports:
stdiostreamable-http80+ registered tools in the current implementation
Architecture split
grocy-mcp intentionally stays on the Grocy side of the boundary.
This repo handles Grocy-aware matching, preview/apply flows, CLI commands, and MCP tools.
Raw images, OCR payloads, and model-specific prompting stay outside this repo.
ChatGPT, Claude, or another client should first turn receipts, photos, or chat into normalized JSON items, then call the workflow tools here.
That keeps the project easier to test, safer for mutations, and usable by any model or automation stack.
Stable workflow contracts
The workflow layer is designed for multi-step, confirmation-first flows.
Normalized input items are used for preview only:
{
"label": "whole milk",
"quantity": 2,
"unit_text": "cartons",
"barcode": "5000112637922",
"note": "organic"
}Preview results return matched, ambiguous, or unmatched plus candidate Grocy products:
{
"input_index": 0,
"label": "whole milk",
"status": "matched",
"matched_product_id": 12,
"matched_product_name": "Whole Milk",
"candidates": [{"product_id": 12, "name": "Whole Milk"}],
"suggested_amount": 2,
"unit_text": "cartons"
}Apply steps accept explicit IDs only:
{
"product_id": 12,
"amount": 2,
"note": "organic"
}Matching policy for preview tools:
exact barcode match
exact normalized product-name match
case-insensitive substring match
If a stage returns multiple plausible products, the result is ambiguous and should be confirmed before any apply step.
Agent workflow examples
These are practical multi-step workflows an AI agent can perform by chaining grocy-mcp tools together:
"What can I cook tonight?"
recipes_list_tool— see all available recipesrecipe_fulfillment_tool("Spaghetti Bolognese")— check if ingredients are in stockIf fulfillable:
recipe_consume_tool("Spaghetti Bolognese")— deduct ingredientsIf not:
recipe_add_to_shopping_tool("Spaghetti Bolognese")— add missing items to shopping list
"Restock after a grocery run"
shopping_list_view_tool— see what was on the listFor each purchased item:
stock_add_tool("Milk", 2)— add to stockshopping_list_remove_tool(item_id)— clear purchased items from the list
"Weekly kitchen check"
stock_expiring_tool— find expiring or below-minimum productschores_overdue_tool— find overdue household choresshopping_list_add_missing_tool— auto-add understocked products to shopping listFor each overdue chore:
chore_execute_tool("Vacuum living room")— mark as done
"Add a new recipe from a description"
stock_search_tool("flour")— find product IDs for ingredientsrecipe_create_tool("Banana Bread", "Easy banana bread", '[{"product_id": 3, "amount": 2}, ...]')— create the reciperecipe_fulfillment_tool("Banana Bread")— check if you can make it right away
Workflow-oriented chat and vision examples
These flows use the workflow surface instead of asking an LLM to mutate Grocy directly.
Receipt text -> preview -> confirm -> apply
External client extracts normalized items from a receipt:
[
{"label": "whole milk", "quantity": 2, "unit_text": "cartons"},
{"label": "bananas", "quantity": 6},
{"label": "oat milk", "quantity": 1}
]Call
workflow_match_products_preview_tool(...)or:
grocy --json workflow match-products-preview '[{"label":"whole milk","quantity":2},{"label":"bananas","quantity":6}]'Confirm any
ambiguousorunmatchedlines with the user.Apply confirmed stock additions:
grocy --json workflow stock-intake-apply '[{"product_id":12,"amount":2},{"product_id":44,"amount":6}]'Preview shopping reconciliation:
grocy --json workflow shopping-reconcile-preview '[{"product_id":12,"amount":2},{"product_id":44,"amount":6}]'Apply only the explicit actions returned by the preview.
Grocery photo interpreted by an LLM -> preview -> confirm -> apply
ChatGPT or Claude looks at a grocery-bag photo and produces normalized JSON items.
Call
workflow_stock_intake_preview_tool(...).Review the proposed product matches and quantities.
Confirm explicit
product_idvalues.Call
workflow_stock_intake_apply_tool(...).
Pantry photo -> read-only audit preview
External model describes visible pantry items as normalized JSON.
Call
workflow_match_products_preview_tool(...).Use the preview as a read-only audit to compare what the model sees against Grocy product names.
Do not apply anything until quantities and matches are confirmed.
Sample prompts for ChatGPT and Claude
Use prompts like these outside grocy-mcp to produce normalized items before calling MCP/CLI workflow commands:
Read this grocery receipt and return only JSON.
Return an array of objects with:
- label
- quantity
- unit_text
- barcode
- note
Do not guess Grocy product IDs.
If quantity is unclear, use 1.Look at this grocery photo and list the likely purchased items as JSON only.
Use this schema for each item:
{"label":"string","quantity":number,"unit_text":"string|null","barcode":"string|null","note":"string|null"}
Do not include commentary.
Do not invent product IDs.Look at this pantry photo and return the visible products as JSON only.
Keep the output read-only and approximate if needed, but do not invent Grocy IDs.
Use the same normalized item schema as above.CLI usage
Top-level command groups:
grocy stock ...
grocy shopping ...
grocy recipes ...
grocy chores ...
grocy locations ...
grocy tasks ...
grocy meal-plan ...
grocy catalog ...
grocy batteries ...
grocy equipment ...
grocy calendar ...
grocy files ...
grocy print ...
grocy discover ...
grocy workflow ...
grocy system ...
grocy entity ...Use grocy --help or grocy <group> --help to explore the full surface. The examples below focus on the highest-value day-to-day commands.
Example commands
# Stock and shopping
grocy stock overview
grocy stock info Milk
grocy stock add Milk 2
grocy shopping view --list-id 1
grocy shopping add "Oat Milk" --amount 2 --list-id 2 --note "for breakfast"
# Recipes and chores
grocy recipes list
grocy recipes details "Spaghetti Bolognese"
grocy recipes add-to-shopping "Spaghetti Bolognese"
grocy chores overdue
grocy chores execute "Vacuum living room"
# Workflow preview/apply
grocy --json workflow match-products-preview '[{"label":"whole milk","quantity":2}]'
grocy --json workflow stock-intake-preview '[{"label":"whole milk","quantity":2}]'
grocy --json workflow stock-intake-apply '[{"product_id":12,"amount":2}]'
grocy --json workflow shopping-reconcile-preview '[{"product_id":12,"amount":2}]'
# Catalog, planning, and discovery
grocy --json catalog list shopping-lists
grocy --json batteries list
grocy --json meal-plan summary --from 2026-04-01 --to 2026-04-07
grocy --json calendar summary --from 2026-04-01 --to 2026-04-07
grocy --json discover search products milkProject structure
src/grocy_mcp/
client.py async HTTP client for the Grocy REST API
config.py environment/config loading
exceptions.py typed error hierarchy
models.py pydantic models
workflow_models.py stable workflow JSON contracts
core/ shared business logic for MCP and CLI
core/batteries.py battery views and charge-cycle actions
core/calendar.py combined planning summaries and iCal helpers
core/equipment.py equipment views with linked battery context
core/files.py file-group download/upload/delete and print helpers
core/reference_data.py first-class metadata/discovery helpers
core/workflows.py preview/apply workflow helpers
mcp/server.py FastMCP entry point
cli/app.py Typer CLI entry point
tests/
unit tests for client, core modules, MCP entry point, and CLIDevelopment
Clone and install for local development:
git clone https://github.com/Rubio-Enterprises/grocy-mcp
cd grocy-mcp
pip install -e ".[dev]"Run checks:
pytest -v
ruff check src/ tests/
ruff format --check src/ tests/Run a specific test:
pytest tests/test_stock.py -v
pytest tests/test_stock.py::test_stock_overview -vRun the deterministic end-to-end testbed:
python -m testbed.seed.reset_demo_env
python -m testbed.runners.run_suite prTroubleshooting
"Grocy URL not configured"
Set GROCY_URL via environment variable, config file, or --url flag. The URL
should be the base URL of your Grocy instance (e.g. https://grocy.example.com),
not the API endpoint.
"Auth failed (401)"
Your API key is invalid or expired. Generate a new one in Grocy under
Settings → Manage API keys. Pass it via GROCY_API_KEY, config file, or --api-key.
"Connection failed" or timeouts Check that the Grocy URL is reachable from the machine running grocy-mcp. Common causes: wrong port, firewall rules, Grocy behind a reverse proxy without proper forwarding.
"No products found matching '...'"
The name resolver uses case-insensitive substring matching. Check grocy stock search
to see available product names. You can also pass numeric IDs directly.
"Multiple products match '...'" Be more specific with the name, or use the numeric ID shown in the error message.
MCP server not connecting in Claude Desktop
Make sure the command in your MCP config points to the grocy-mcp executable
and that GROCY_URL and GROCY_API_KEY are set in the env block. Check
Claude Desktop logs for error details.
Documentation
Contributing
See CONTRIBUTING.md for setup instructions, code style, and guidelines.
License
MIT
Available Tools
89 toolsbatteries_due_toolBatteries Due ToolB
Return batteries due within the next given number of days.
Inputs: days. Returns: result
batteries_list_toolBatteries List ToolA
List batteries with next estimated charge times.
Inputs: no named parameters. Returns: result
batteries_overdue_toolBatteries Overdue ToolA
Return batteries that are already overdue for charging.
Inputs: no named parameters. Returns: result
battery_charge_toolBattery Charge ToolC
Track a battery charge cycle.
Inputs: battery (required), tracked_time. Returns: result
battery_create_toolBattery Create ToolC
Create a battery object.
Inputs: name (required), used_in, description, charge_interval_days. Returns: result
battery_details_toolBattery Details ToolB
Return detailed information for a battery by name or ID.
Inputs: battery (required). Returns: object
battery_history_toolBattery History ToolC
Return charge-cycle history for a battery.
Inputs: battery (required). Returns: result
battery_undo_cycle_toolBattery Undo Cycle ToolC
Undo a tracked battery charge cycle.
Inputs: cycle_id (required). Returns: result
battery_update_toolBattery Update ToolD
Update a battery object.
Inputs: battery (required), name, used_in, description, +1 more. Returns: result
calendar_ical_toolCalendar Ical ToolA
Return the raw Grocy iCal export.
Inputs: no named parameters. Returns: object
calendar_sharing_link_toolCalendar Sharing Link ToolB
Return the public Grocy iCal sharing link.
Inputs: no named parameters. Returns: object
calendar_summary_toolCalendar Summary ToolC
Return a read-only planning summary across tasks, chores, batteries, and meal plan.
Inputs: end_date, start_date. Returns: object
catalog_create_toolCatalog Create ToolC
Create a record in a writable first-class catalog entity.
Inputs: data (required), entity (required). Returns: result
catalog_details_toolCatalog Details ToolC
Return details for a first-class catalog entity record.
Inputs: entity (required), obj_id (required). Returns: object
catalog_list_toolCatalog List ToolA
List first-class catalog and metadata entities.
Supported entities include shopping_lists, shopping_locations, quantity_units, quantity_unit_conversions, product_groups, task_categories, meal_plan_sections, products_last_purchased, and products_average_price.
Inputs: entity (required), query. Returns: result
catalog_update_toolCatalog Update ToolC
Update a record in a writable first-class catalog entity.
Inputs: data (required), entity (required), obj_id (required). Returns: result
chore_create_toolChore Create ToolB
Create a new chore in Grocy.
Inputs: name (required). Returns: result
chore_execute_toolChore Execute ToolA
Mark a chore as done.
This records an execution and advances the next scheduled time.
Inputs: chore (required), done_by. Returns: result
chores_list_toolChores List ToolA
List all chores with their IDs and next scheduled execution time.
Use this to see what chores exist and when they are due next.
Inputs: no named parameters. Returns: result
chores_overdue_toolChores Overdue ToolA
List chores that are past their scheduled execution time.
Returns only chores where the next execution time is in the past.
Inputs: no named parameters. Returns: result
chore_undo_toolChore Undo ToolA
Undo the most recent execution of a chore.
Removes the last recorded execution and reverts the schedule.
Inputs: chore (required). Returns: result
describe_entity_toolDescribe Entity ToolC
Describe a Grocy entity and its discovered fields.
Inputs: entity (required). Returns: object
discover_candidates_toolDiscover Candidates ToolC
Search products, recipes, chores, locations, tasks, or supported metadata domains.
Inputs: query (required), entity (required), limit. Returns: result
discover_fields_toolDiscover Fields ToolC
Return discovered sample fields for a Grocy entity.
Inputs: entity (required). Returns: object
entity_create_toolEntity Create ToolA
Create a new object of any Grocy entity type.
This is a low-level tool — prefer the domain-specific create tools (recipe_create_tool, chore_create_tool) when available.
Inputs: data (required), entity (required). Returns: result
entity_delete_toolEntity Delete ToolA
Delete a Grocy entity object by its ID. This cannot be undone.
Inputs: entity (required), obj_id (required). Returns: result
entity_list_toolEntity List ToolA
List all objects of a Grocy entity type.
This is a generic tool for browsing any Grocy data table.
Inputs: entity (required). Returns: result
entity_update_toolEntity Update ToolB
Update an existing Grocy entity object by its ID.
Only the fields provided in data are changed; other fields are left as-is.
Inputs: data (required), entity (required), obj_id (required). Returns: result
equipment_create_toolEquipment Create ToolC
Create an equipment item.
Inputs: name (required), battery_id, description. Returns: result
equipment_details_toolEquipment Details ToolA
Return details for an equipment item by name or ID.
Inputs: equipment (required). Returns: object
equipment_list_toolEquipment List ToolA
List equipment with linked battery visibility where available.
Inputs: no named parameters. Returns: result
equipment_update_toolEquipment Update ToolD
Update an equipment item.
Inputs: equipment (required), name, battery_id, description. Returns: result
file_delete_toolFile Delete ToolC
Delete a Grocy-managed file.
Inputs: group (required), file_name (required). Returns: result
file_download_toolFile Download ToolB
Download a Grocy-managed file as base64 content.
Inputs: group (required), file_name (required), force_picture, best_fit_width, +1 more. Returns: object
file_upload_toolFile Upload ToolC
Upload a Grocy-managed file from base64 content.
Inputs: group (required), file_name (required), content_base64 (required). Returns: object
location_create_toolLocation Create ToolA
Create a new storage location.
Inputs: name (required), is_freezer, description. Returns: result
locations_list_toolLocations List ToolA
List all storage locations in Grocy.
Shows location names, IDs, and whether each is a freezer.
Inputs: no named parameters. Returns: result
meal_plan_add_toolMeal Plan Add ToolA
Add an entry to the meal plan.
Either specify a recipe or a free-text note (or both).
Inputs: day (required), note, recipe, meal_type. Returns: result
meal_plan_list_toolMeal Plan List ToolA
List all meal plan entries sorted by date.
Shows scheduled meals with their dates, recipe names, and notes.
Inputs: no named parameters. Returns: result
meal_plan_remove_toolMeal Plan Remove ToolB
Remove an entry from the meal plan.
Inputs: entry_id (required). Returns: result
meal_plan_shopping_toolMeal Plan Shopping ToolA
Add missing ingredients for all planned recipes to the shopping list.
Scans the meal plan (optionally filtered by date range), finds all scheduled recipes, and adds their unfulfilled ingredients to the shopping list. This is the "plan meals → shop" workflow in one step.
Inputs: end_date, start_date. Returns: result
meal_plan_summary_toolMeal Plan Summary ToolB
Return a structured meal-plan summary with recipe and section names.
Inputs: end_date, section_id, start_date. Returns: object
print_battery_label_toolPrint Battery Label ToolC
Trigger printing of a battery label.
Inputs: battery (required). Returns: result
print_chore_label_toolPrint Chore Label ToolC
Trigger printing of a chore label.
Inputs: chore (required). Returns: result
print_product_label_toolPrint Product Label ToolC
Trigger printing of a product label.
Inputs: product (required). Returns: result
print_recipe_label_toolPrint Recipe Label ToolD
Trigger printing of a recipe label.
Inputs: recipe (required). Returns: result
print_shopping_list_thermal_toolPrint Shopping List Thermal ToolA
Trigger thermal printing of the shopping list.
Inputs: no named parameters. Returns: result
print_stock_entry_label_toolPrint Stock Entry Label ToolC
Trigger printing of a stock-entry label.
Inputs: entry_id (required). Returns: result
recipe_add_ingredient_toolRecipe Add Ingredient ToolB
Add an ingredient to an existing recipe using the product name.
Inputs: recipe (required), product (required), amount. Returns: result
recipe_add_to_shopping_toolRecipe Add To Shopping ToolA
Add only the missing ingredients for a recipe to the shopping list.
Does not add ingredients that are already sufficiently in stock.
Inputs: recipe (required). Returns: result
recipe_consume_preview_toolRecipe Consume Preview ToolA
Preview what stock would be consumed without actually consuming.
Shows each ingredient, the amount needed, and whether there is enough in stock. Use this before recipe_consume_tool to verify.
Inputs: recipe (required). Returns: result
recipe_consume_toolRecipe Consume ToolA
Consume stock for all ingredients of a recipe (as if you cooked it).
This deducts each ingredient amount from stock. Check fulfillment first to make sure all ingredients are available.
Inputs: recipe (required). Returns: result
recipe_create_by_name_toolRecipe Create By Name ToolA
Create a recipe with ingredients specified by product name instead of ID.
This is the easier alternative to recipe_create_tool — you can use product names directly, and they will be resolved automatically.
Inputs: name (required), description, ingredients. Returns: result
recipe_create_toolRecipe Create ToolC
Create a new recipe in Grocy.
Inputs: name (required), description, ingredients. Returns: result
recipe_details_toolRecipe Details ToolA
Show full details for a recipe including all ingredients and amounts.
Inputs: recipe (required). Returns: result
recipe_fulfillment_toolRecipe Fulfillment ToolA
Check whether a recipe can be made with current stock.
Reports whether all ingredients are available and how many are missing.
Inputs: recipe (required). Returns: result
recipe_remove_ingredient_toolRecipe Remove Ingredient ToolB
Remove an ingredient from a recipe.
Use recipe_details_tool to see ingredient position IDs.
Inputs: position_id (required). Returns: result
recipes_list_toolRecipes List ToolA
List all recipes with their IDs and descriptions.
Use this to discover available recipes before checking fulfillment or consuming ingredients.
Inputs: no named parameters. Returns: result
recipe_update_toolRecipe Update ToolA
Update a recipe's name or description.
Inputs: recipe (required), name, description. Returns: result
shopping_list_add_missing_toolShopping List Add Missing ToolA
Add all products that are below their minimum stock level to the shopping list.
This is a bulk operation — it scans all products and adds any that are below their configured minimum stock quantity.
Inputs: list_id. Returns: result
shopping_list_add_toolShopping List Add ToolC
Add a product to the shopping list.
Inputs: product (required), note, amount, list_id. Returns: result
shopping_list_clear_toolShopping List Clear ToolA
Remove ALL items from a shopping list. This cannot be undone.
Inputs: list_id. Returns: result
shopping_list_remove_toolShopping List Remove ToolA
Remove a single item from the shopping list.
Use shopping_list_view_tool first to find the item_id.
Inputs: item_id (required). Returns: result
shopping_list_set_amount_toolShopping List Set Amount ToolA
Change the quantity for a shopping list item.
A simpler alternative to shopping_list_update_tool when you only need to change the amount.
Inputs: amount (required), item_id (required). Returns: result
shopping_list_set_note_toolShopping List Set Note ToolA
Set or update the note on a shopping list item.
A simpler alternative to shopping_list_update_tool when you only need to change the note.
Inputs: note (required), item_id (required). Returns: result
shopping_list_update_toolShopping List Update ToolB
Update fields on an existing shopping list item.
Use shopping_list_view_tool first to find the item_id.
Inputs: data (required), item_id (required). Returns: result
shopping_list_view_toolShopping List View ToolA
View all items on a shopping list.
Returns each item with its ID, product name, quantity, and optional note. Item IDs are needed for update and remove operations.
Inputs: list_id. Returns: result
stock_add_toolStock Add ToolB
Add stock for a product (e.g. after a purchase).
Inputs: amount (required), product (required). Returns: result
stock_barcode_lookup_toolStock Barcode Lookup ToolA
Look up a product and its current stock level by exact barcode.
Returns the product name and quantity in stock. For partial or name-based searches, use stock_search_tool instead.
Inputs: barcode (required). Returns: result
stock_consume_toolStock Consume ToolA
Consume stock for a product (reduces the quantity on hand).
Inputs: amount (required), product (required). Returns: result
stock_expiring_toolStock Expiring ToolA
List products that are expiring soon, already expired, or below minimum stock.
Useful for daily checks or deciding what to consume or restock first.
Inputs: no named parameters. Returns: result
stock_inventory_toolStock Inventory ToolA
Correct the stock level for a product by setting an absolute quantity.
Use this when the actual count differs from what Grocy shows — e.g. after a manual count. This replaces the current amount, not adds to it.
Inputs: product (required), new_amount (required). Returns: result
stock_journal_toolStock Journal ToolA
View recent stock transaction history.
Shows the 50 most recent stock changes (purchases, consumption, transfers, inventory corrections). Optionally filter by product.
Inputs: product. Returns: result
stock_open_toolStock Open ToolB
Mark stock units as opened (e.g. an opened bottle of milk).
Inputs: product (required), amount. Returns: result
stock_overview_toolStock Overview ToolA
List all products currently in stock with their quantities.
Returns each product with its ID, name, and amount. Use this to see what is available before adding, consuming, or transferring stock.
Inputs: no named parameters. Returns: result
stock_product_info_toolStock Product Info ToolA
Get detailed stock information for a single product.
Returns current amount, best-before date, and product metadata.
Inputs: product (required). Returns: result
stock_search_toolStock Search ToolA
Search for products by name substring or barcode.
Returns matching product names and IDs. Use this when you are not sure of the exact product name. For a direct barcode lookup with stock details, use stock_barcode_lookup_tool instead.
Inputs: query (required). Returns: result
stock_transfer_toolStock Transfer ToolC
Move stock of a product to a different storage location.
Inputs: amount (required), product (required), to_location (required). Returns: result
system_info_toolSystem Info ToolA
Show Grocy server version, PHP version, and SQLite version.
Useful for verifying connectivity and checking compatibility.
Inputs: no named parameters. Returns: result
task_complete_toolTask Complete ToolB
Mark a task as done.
Inputs: task_id (required). Returns: result
task_create_toolTask Create ToolB
Create a new task.
Inputs: name (required), due_date, description, assigned_to_user_id. Returns: result
task_delete_toolTask Delete ToolA
Delete a task. This cannot be undone.
Inputs: task_id (required). Returns: result
tasks_list_toolTasks List ToolA
List tasks (to-do items separate from chores).
By default shows only incomplete tasks.
Inputs: show_done. Returns: result
task_undo_toolTask Undo ToolA
Mark a task as not completed.
Inputs: task_id (required). Returns: result
workflow_match_products_preview_toolWorkflow Match Products Preview ToolA
Preview product matches for normalized external items.
Use this when an LLM or another client has already converted a receipt, chat message, or image into a normalized item list and you need Grocy product IDs before applying stock changes.
Inputs: items (required). Returns: result
workflow_shopping_reconcile_apply_toolWorkflow Shopping Reconcile Apply ToolB
Apply explicit shopping-list reconciliation actions from a preview step.
Inputs: actions (required). Returns: object
workflow_shopping_reconcile_preview_toolWorkflow Shopping Reconcile Preview ToolA
Preview shopping-list removals and amount updates after a purchase.
Provide confirmed Grocy product IDs for what was purchased and this tool will propose explicit shopping-item actions without applying them.
Inputs: items (required), list_id. Returns: result
workflow_stock_intake_apply_toolWorkflow Stock Intake Apply ToolA
Apply confirmed stock additions using explicit Grocy product IDs.
Apply only confirmed IDs from a prior preview step. This tool does not resolve names implicitly.
Inputs: items (required). Returns: object
workflow_stock_intake_preview_toolWorkflow Stock Intake Preview ToolA
Preview Grocy stock additions for normalized external items.
This uses the same matching contract as workflow_match_products_preview_tool, but is named for the common "I bought these groceries" workflow.
Inputs: items (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 89 tools
Most tools have distinct scopes with clear descriptions and cross-references (e.g., stock_search vs stock_barcode_lookup). Some overlap exists between recipe_fulfillment and recipe_consume_preview, and between shopping_list_set_amount and shopping_list_update, but descriptions help disambiguate. Overall, an agent can generally tell tools apart despite the large set.
The dominant pattern is <domain>_<action>_tool, which is predictable and readable. However, singular/plural prefixes are inconsistent (chores_list vs chore_execute, batteries_list vs battery_details), and a few tools like discover_candidates_tool break the pattern. Still, the convention is mostly consistent.
89 tools is far above the typical well-scoped range and feels excessive. Many tools are near-duplicates (six print label tools, multiple shopping-list population tools, and generic entity CRUD alongside domain-specific CRUD). This could be consolidated with parameterized tools, making the surface heavy and harder to navigate.
Core workflows (stock, shopping list, recipes, chores, tasks, meal plans, batteries, equipment) are well covered. However, there are notable lifecycle gaps: recipe deletion, chore update, location update/delete, battery delete, equipment delete, and file listing are missing. Generic entity tools partially mask these gaps but require low-level knowledge, so agents may hit dead ends.
Related MCP Connectors
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables interaction with Grocy's API through MCP, allowing management of grocery inventory, shopping lists, and household tasks via natural language.203 npm28MIT
- AlicenseBqualityDmaintenanceExposes a self-hosted Mealie instance to MCP clients, enabling management of recipes, meal plans, shopping lists, and organizers through natural language.21Eclipse Public 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage household operations including groceries, inventory, chores, recipes, and shopping lists through the Grocy self-hosted ERP system.5MIT
- AlicenseAqualityCmaintenanceMCP server for Grocy that enables AI assistants to read and manage pantry stock, product catalogs, and shopping lists, with safety checks against common errors.27MIT