Skip to main content
Glama
Brewfather MCP Server

Brewfather MCP Server

Brewfather MCP Server

A Model Context Protocol (MCP) server that integrates with the Brewfather API to provide brewing inventory management and recipe analysis capabilities. This server allows MCP clients like Claude to interact with your Brewfather brewing data.

Features

  • Inventory Management: List and manage fermentables, hops, yeasts, and miscellaneous brewing supplies

  • Recipe Analysis: Access detailed recipe information including ingredients and process details

  • Batch Tracking: Monitor brewing batches, update measurements, and track progress

  • Brewing Insights: Get brewing process guidance and sensor readings

Related MCP server: MCP OpenAPI Connector

Prerequisites

  • Python 3.13 or later

  • Brewfather account with API access

  • Brewfather API credentials (User ID and API Key)

Getting Your Brewfather API Credentials

  1. Log in to your Brewfather account

  2. Navigate to Settings → API

  3. Generate or copy your API User ID and API Key

  4. Keep these credentials secure - you'll need them for configuration

Installation

The easiest way to use this MCP server is with uvx, directly from the GitHub repository:

# Set your credentials as environment variables
export BREWFATHER_API_USER_ID="your-api-user-id"
export BREWFATHER_API_KEY="your-api-key"

# Run the server
uvx --from git+https://github.com/mindsocket/brewfather-mcp.git brewfather-mcp

For debugging:

uvx --from git+https://github.com/mindsocket/brewfather-mcp.git brewfather-mcp --debug

Option 2: Local Development Installation

  1. Clone this repository

  2. Install dependencies:

uv sync

Configuration

Claude Desktop Configuration

To use this server with Claude Desktop via uvx, add the following to your Claude Desktop configuration file:

Location of config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\\Claude\\claude_desktop_config.json

Configuration:

{
  "mcpServers": {
    "brewfather": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/mindsocket/brewfather-mcp.git",
        "brewfather-mcp"
      ],
      "env": {
        "BREWFATHER_API_USER_ID": "your-api-user-id",
        "BREWFATHER_API_KEY": "your-api-key"
      }
    }
  }
}

Option 2: Using Local Installation

To use this server with Claude Desktop from a local clone, use the same config file location as above with this configuration:

{
  "mcpServers": {
    "brewfather": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/absolute/path/to/brewfather-mcp/src/main.py"
      ],
      "cwd": "/absolute/path/to/brewfather-mcp",
      "env": {
        "BREWFATHER_API_USER_ID": "your-api-user-id",
        "BREWFATHER_API_KEY": "your-api-key"
      }
    }
  }
}

Replace:

  • /absolute/path/to/brewfather-mcp with the full path to your cloned repository

  • your-api-user-id with your Brewfather API User ID

  • your-api-key with your Brewfather API Key

You may also need to provide the full path to the uv command.

Other MCP Clients

For other MCP clients that support stdio transport, use:

  • Command: uv run --with mcp[cli] mcp run src/main.py

  • Working Directory: Path to this repository

  • Environment Variables: BREWFATHER_API_USER_ID and BREWFATHER_API_KEY

For Local Development & Testing

When developing or testing the server locally, there is the option of providing credentials via a .env file instead:

cp .env.example .env
# Edit .env with your Brewfather API credentials

Available Tools

The server provides the following MCP tools:

Inventory Management

  • list_fermentables - List all fermentables (malts, adjuncts, grains)

  • get_fermentable_detail(identifier) - Get detailed fermentable information

  • list_hops - List all hops with properties like alpha acids

  • get_hop_detail(identifier) - Get detailed hop information

  • list_yeasts - List all yeasts with attenuation and type

  • get_yeast_detail(identifier) - Get detailed yeast information

  • list_misc_items - List miscellaneous brewing supplies

  • get_misc_detail(item_id) - Get detailed misc item information

  • inventory_summary - Get comprehensive inventory overview

Recipe Management

  • list_recipes - List all recipes

  • get_recipe_detail(recipe_id) - Get detailed recipe information

Batch Management

  • list_batches - List all brewing batches

  • get_batch_detail(batch_id) - Get detailed batch information

  • update_batch(batch_id, ...) - Update batch measurements and status

  • get_batch_brewtracker(batch_id) - Get brewing process guidance

  • get_batch_last_reading(batch_id) - Get latest sensor readings

  • get_batch_readings_summary(batch_id) - Get sensor readings summary

Inventory Updates

  • update_fermentable_inventory(item_id, amount) - Update fermentable stock

  • update_hop_inventory(item_id, amount) - Update hop stock

  • update_yeast_inventory(item_id, amount) - Update yeast stock

  • update_misc_inventory(item_id, amount) - Update misc item stock

Development

Running Tests

uv run pytest

Testing the Server Locally

mcptools can be handy for local testing:

# List available tools
mcpt tools uv run --with 'mcp[cli]' mcp run src/main.py

# Call a specific tool
mcpt call list_inventory_categories uv run --with 'mcp[cli]' mcp run src/main.py

HTTP/SSE Server (for cloud deployment)

PYTHONPATH=src uv run python src/http_runner.py --port 8000

Troubleshooting

Common Issues

  1. Import errors: Make sure you've run uv sync to install all dependencies

  2. API authentication errors:

    • For MCP clients: Check that credentials are correctly set in your client configuration

    • For local development: Ensure your .env file exists with valid credentials

    • Verify your Brewfather API credentials are correct and have the necessary permissions

  3. Connection timeouts: Check your internet connection and Brewfather API status

  4. Path issues in Claude Desktop: Ensure you're using absolute paths in the configuration file

Debug Mode

Enable debug mode to save API responses into a debug folder for troubleshooting:

BREWFATHER_MCP_DEBUG=1 mcpt call get_batch_detail --params '{"batch_id": "your-batch-id"}' uv run --with 'mcp[cli]' mcp run src/main.py

Available Tools

22 tools
get_batch_brewtrackerC

Get detailed brewing process guidance and timeline for a batch

Inputs: batch_id (required).

get_batch_detailC

Get detailed information for a specific batch.

Inputs: batch_id (required).

get_batch_last_readingC

Get the most recent sensor reading from brewing devices for a batch

Inputs: batch_id (required).

get_batch_readings_summaryB

Get a summary of recent sensor readings for a batch (limited to avoid large responses)

Inputs: batch_id (required), limit.

get_fermentable_detailC

Detailed information of the fermentable item.

Inputs: identifier (required).

get_hop_detailC

Detailed information about a specific hop including origin, characteristics, oil composition, and storage details.

Inputs: identifier (required).

get_misc_detailB

Get detailed information for a specific miscellaneous inventory item.

Inputs: item_id (required).

get_recipe_detailB

Get detailed information for a specific recipe including ingredients, process details and specifications.

Inputs: recipe_id (required).

get_yeast_detailC

Detailed information about a specific yeast including manufacturer, specifications, temperature range, and storage details.

Inputs: identifier (required).

inventory_summaryB

Creates a comprehensive overview of all inventory items including fermentables, hops, yeasts and miscellaneous items.

Inputs: no named parameters.

list_batchesB

Lists all brew batches.

Inputs: no named parameters.

list_fermentablesB

List all the fermentables (malts, adjuncts, grains, etc) inventory.

Inputs: no named parameters.

list_hopsA

Lists all hops in inventory with their basic properties like alpha acids, quantity, and usage type.

Inputs: no named parameters.

list_inventory_categoriesB

Lists the available inventory categories.

Inputs: no named parameters.

list_misc_itemsB

Lists all miscellaneous inventory items.

Inputs: no named parameters.

list_recipesC

Lists all recipes.

Inputs: no named parameters.

list_yeastsA

Lists all yeasts in inventory with their basic properties like attenuation, quantity, and type.

Inputs: no named parameters.

update_batchC

Updates a batch's status or measured values.

Inputs: batch_id (required), status, measuredFg, measuredOg, +10 more.

update_fermentable_inventoryC

Sets the inventory amount for a specific fermentable.

Inputs: item_id (required), inventory_amount (required).

update_hop_inventoryC

Sets the inventory amount for a specific hop.

Inputs: item_id (required), inventory_amount (required).

update_misc_inventoryC

Sets the inventory amount for a specific miscellaneous item.

Inputs: item_id (required), inventory_amount (required).

update_yeast_inventoryC

Sets the inventory amount for a specific yeast.

Inputs: item_id (required), inventory_amount (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 22 tools

    Disambiguation4/5

    Tools are grouped by resource (fermentables, hops, yeasts, misc, batches, recipes) with a clear list/get/update split, so most selections are unambiguous. The main soft spot is the batch cluster: get_batch_detail, get_batch_brewtracker, get_batch_last_reading, and get_batch_readings_summary all sound like 'batch info' and require reading descriptions to separate.

    Naming Consistency4/5

    Nearly all names follow a consistent snake_case verb_noun pattern (list_hops, get_batch_detail, update_hop_inventory). The only deviations are noun-only names like inventory_summary and the slightly odd 'get_batch_brewtracker', but the overall convention is predictable.

    Tool Count4/5

    22 tools is slightly heavy but justified by the domain: four inventory types each needing list/get/update (12), plus batch and recipe operations. Each tool maps to a distinct data need rather than duplicating another.

    Completeness3/5

    Coverage is read-heavy plus inventory updates, but there are notable gaps: no create/delete for batches, recipes, or inventory items, and no way to log brew-day or fermentation events beyond update_batch. Agents can read and adjust quantities but cannot manage the full lifecycle.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude Desktop and other MCP clients to interact with any OAuth2-authenticated OpenAPI-based API through automatic tool generation from OpenAPI specifications, with built-in token management and authentication handling.
      7 npm
      3
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Read-only MCP server exposing Brewfather brewing data—batches, recipes, fermentation readings, and inventory—as tools for natural language queries.
      9
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables reading, searching, creating, and safely modifying Brewfather recipes via the Brewfather API, with local credential storage and confirmation-based writes.
      8
      MIT