mcp-server-brewfather

v0.3.0
mcp-server-brewfather Checked 4 days ago Published 2 months ago

MCP server for Brewfather: read batches, recipes, readings, and inventory; create and edit recipes; update batch status and stock

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

find_batches

Find batches by name (case-insensitive substring) and/or status. ``status`` is one of Planning, Brewing, Fermenting, Conditioning, Completed, Archived; empty means any. Returns compact dicts: {id, name, batch_no, status, brewer, brew_date, recipe}. Use the id with get_batch / get_readings / get_brewtracker / update_batch.

ParameterTypeDescription
namestring
statusstring

get_batch

Read one batch: summary, fermentation/bottling dates, estimated targets (OG, FG, IBU, color), all measured values, and the embedded recipe (target stats + ingredient bill). Units are metric (SG, L, °C). Also returns the brewer's ``notes`` text, the batch ``log`` oldest first ([{time, status, note, type}]: entries without ``type`` were typed by the brewer, automatic ones carry one, e.g. ``statusChanged``; entries hidden in the app are left out), and scheduled ``events`` oldest first ([{time, event, description, active}], e.g. brew day, dry hop, bottling; ``time`` is a date for all-day events,…

ParameterTypeDescription
batch_id *string

get_readings

Read a batch's sensor readings (hydrometer, e.g. Tilt/iSpindel), newest last. Returns {total, readings: [{time, sg, temp, ...}]} with only the most recent ``limit`` readings (0 = all — can be thousands over a fermentation). ``total`` counts every reading the batch has. Temperatures are °C.

ParameterTypeDescription
batch_id *string
limitinteger

get_brewtracker

Read a batch's brew-day tracker: current stage (e.g. Mash, Boil) and step, time left on the stage timer, the steps still to come, and the next stage. Returns {active, completed, started, stage, paused, stage_duration, stage_remaining, current_step, upcoming: [...], next_stage}. Times are seconds; a step's ``at`` is the stage-timer value (seconds left) when it fires, and ``waits_for_you`` marks steps the tracker pauses for. ``stage_remaining`` is computed at call time. A step's ``value`` is its target temperature in °C, omitted when it has none; descriptions use the account's display units.…

ParameterTypeDescription
batch_id *string

update_batch

Update a batch's status and/or measured values. ``status``: Planning, Brewing, Fermenting, Conditioning, Completed, Archived. ``measurements`` keys (metric only — gravities SG, volumes liters, temps °C): measuredMashPh, measuredBoilSize, measuredFirstWortGravity, measuredPreBoilGravity, measuredPostBoilGravity, measuredKettleSize, measuredOg, measuredFermenterTopUp, measuredBatchSize, measuredFg, measuredBottlingSize, carbonationTemp. Returns {batch_id, result}.

ParameterTypeDescription
batch_id *string
measurements
status

find_recipes

Find recipes by name (case-insensitive substring; empty returns all). Returns compact dicts: {id, name, author, type, style, equipment}.

ParameterTypeDescription
namestring

get_recipe

Read one recipe: summary, target stats (batchSize, og, fg, abv, ibu, color, …) and ingredient bill (fermentables, hops, miscs, yeasts). Units are metric. Stats are as last saved in the Brewfather app, so they can be stale after update_recipe.

ParameterTypeDescription
recipe_id *string

create_recipe

Create a new recipe. ``type`` is All Grain or Extract. ``fields`` takes the same settings as update_recipe (author, notes, batchSize, boilSize, boilTime, efficiency). ``ingredients`` is a list of new items in update_recipe's add form (``kind``, name, amount, … — no index). So Brewfather can compute stats, give fermentables color and potential (SG, e.g. 1.037), hops alpha, use and time, and yeasts attenuation. Returns {recipe_id, note}; stats stay empty until the recipe is opened in the Brewfather app.

ParameterTypeDescription
name *string
fields
ingredients
typestring

update_recipe

Edit a recipe's settings and/or ingredient bill. ``fields`` keys (metric — liters, minutes, percent): name, author, notes, batchSize, boilSize, boilTime, efficiency. Stats (og, fg, abv, ibu, color) can't be set; Brewfather computes them from the ingredients. ``ingredients`` is a list of changes, each with ``kind`` (fermentables, hops, miscs, yeasts) and: - ``index`` + fields to change an item — index is its 0-based position in get_recipe's list, e.g. {"kind": "hops", "index": 1, "amount": 50}; - ``index`` + ``"remove": true`` to delete it; - with ``index``, pass ``current_name`` (the i…

ParameterTypeDescription
recipe_id *string
fields
ingredients

list_inventory

List inventory items of one ``kind``: fermentables, hops, miscs, or yeasts. Filter by ``name`` (case-insensitive substring) and/or ``in_stock_only`` (inventory > 0). Returns {id, name, inventory, type, supplier, ...}; amounts are in Brewfather's stored metric units.

ParameterTypeDescription
kind *string
in_stock_onlyboolean
namestring

set_inventory

Change the stock of one inventory item. Pass exactly one of ``amount`` (set absolute stock) or ``adjust`` (add, or subtract with a negative number — e.g. after brew day). ``kind`` is fermentables, hops, miscs, or yeasts. Returns {item_id, result}.

ParameterTypeDescription
item_id *string
kind *string
adjust
amount

create_inventory_item

Add a new item to the inventory. ``kind`` is fermentables, hops, miscs, or yeasts. ``amount`` is the starting stock in Brewfather's stored metric units (kg for fermentables, g for hops). ``fields`` keys, all kinds: type, supplier, origin (the name goes in ``name``); plus - fermentables: color (SRM), potential (SG, e.g. 1.037); - hops: alpha (percent); - miscs: unit, use; - yeasts: attenuation (percent), laboratory, productId, form. Returns {item_id}.

ParameterTypeDescription
kind *string
name *string
amount
fields

update_inventory_item

Edit an inventory item's details (not its stock — use set_inventory). ``kind`` is fermentables, hops, miscs, or yeasts. Only the given ``fields`` are written. Keys, all kinds: name, type, supplier, origin; plus - fermentables: color (SRM), potential (SG, e.g. 1.037); - hops: alpha (percent); - miscs: unit, use; - yeasts: attenuation (percent), laboratory, productId, form. Returns {item_id, result}.

ParameterTypeDescription
fields *object
item_id *string
kind *string