Skip to main content
Glama

dial-in-mcp

Espresso dial-in help as an MCP server: why a shot tastes sour or bitter and the one change for the next shot, with the new grind setting, dose or yield as a number (grind finer: 13 → 12); espresso brew ratio, yield and shot style (ristretto, normale, lungo); V60, Kalita Wave, Chemex, AeroPress and French press recipes scaled to any dose; and whether coffee beans are resting, at their peak or past it for espresso. Four read-only tools, no sign-in, nothing stored.

It is the dial-in assistant of the Dial In espresso shot log app by Dre Dev, ported from Dart to Python and checked against the app's own test values. The ratio part runs in the browser too: espresso ratio calculator.

Tools

Tool

Gives

advise_next_espresso_shot

Diagnosis (under-extracted, over-extracted, uneven / channeling, too weak, too strong, ran fast or slow, went past the sweet spot, dialed in) and the one change for the next shot with its number: grind one step finer or coarser, a longer or shorter shot, ±0.5 g of coffee, or fix the puck prep; a second option, why it works, and the next shot's grind, dose, yield and ratio

calculate_espresso_ratio

Brew ratio from dose and yield, or yield / dose from a target ratio; shot style; yields at 1:1.5, 1:2, 1:2.5, 1:3; a check of the shot time against 25–30 s

scale_pour_over_recipe

A V60, Kalita Wave, Chemex, AeroPress or French press recipe scaled to your dose or water: bloom and pours with times and grams, ratio, water temperature in °C and °F, grind size, and the grind change after a sour or bitter cup

check_bean_freshness

Resting, at its peak or past its peak for espresso, from the roast date and roast level, with the peak window dates

Weights in grams (coffee in, espresso out), temperatures in °C (recipes also in °F). Any grinder: give one step on its dial (1, 0.5, 0.25…) and whether lower is finer, and the advice names the exact setting. All tools: readOnlyHint: true, destructiveHint: false, openWorldHint: false.

Related MCP server: OboeLib MCP Server

Connect

Claude (claude.ai, Desktop), ChatGPT (developer mode), Cursor, VS Code — add a remote MCP server with the URL https://mcp.zhukovskyi.space/dial-in/mcp, no authentication.

Local (stdio):

git clone https://github.com/andronaft/dial-in-mcp && cd dial-in-mcp
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
{ "mcpServers": { "dial-in": { "command": "/path/to/dial-in-mcp/.venv/bin/python",
                               "args": ["/path/to/dial-in-mcp/server.py", "--stdio"] } } }

Ask, for example: "My espresso is sour: 18 g in, 36 g out in 24 s, grinder on 13. What should I change?" or "V60 recipe for 22 g of coffee, my last cup was bitter."

Method

  • Dial-in rules: Barista Hustle's Espresso Compass (Matt Perger, 2017). Taste shows extraction (sour = under, bitter = over), body shows strength (weak / strong). Finer grind raises extraction and strength; more yield raises extraction and lowers strength; more dose raises strength and lowers extraction. One change per shot:

    • sour → grind finer (or a longer shot); sour and strong, or sour and already slow → a longer shot;

    • bitter → grind coarser (or a shorter shot); bitter and weak → a shorter shot; bitter and strong → coarser or less coffee; balanced but weak / strong → more coffee / a longer shot; balanced with good body → keep it;

    • channeling, a dry astringent finish, fast and bitter, or a puck with holes → fix puck prep first (WDT, level bed, flat tamp); a soupy puck on a fast shot that isn't bitter or strong → 0.5 g more coffee;

    • sour after bitter (or back) with only the grind changed → halfway between the two settings, or fine-tune with the yield when the grinder has no step there;

    • with no taste given, the time is the clue: under 22 s grind finer, over 35 s coarser.

  • Step sizes: one grinder step (default 1, or 0.5 for settings with halves; lower = finer unless told), yield ± round(dose × 0.2) clamped to 2–8 g and never below the dose (18 g → 4 g), dose ± 0.5 g.

  • Ratio and style: ratio = yield ÷ dose by weight; ristretto up to 1:1.5, normale to 1:2.5, lungo beyond (Barista Hustle's ratio naming; La Marzocco Home draws the lines at 1:2 and 1:3).

  • Recipes: SCA brewing guidance, about 1:15–1:18 and 92–96 °C; the built-in recipes use 1:15.3–1:16.7 and 90–95 °C. Scaling multiplies water and each pour by new dose ÷ recipe dose, rounded to whole grams; times stay.

  • Freshness: rest light roasts 10 days, medium 7, dark 3 (Simon & Bearns, RAVE Coffee, Scott Rao); peak until day 30, dark roasts day 21 (SCA "Coffee Decoded: freshly roasted coffee", citing Smrke et al., J. Agric. Food Chem. 2018). Under 5 days off roast, shots can gush and taste sour.

  • Checked against the app's own tests (test/dial_in_test.dart, test/puck_test.dart, test/brew_taste_test.dart): 18 g / 36 g sour at 12 → 11; sour and strong → 36 → 40 g; bitter and weak → 32 g; 13 sour then 12 bitter on a 0.5-step grinder → 12.5; 2.0 bitter then 2.5 sour on a 0.25-step grinder → 2.25; V60 scaled to 20 g → 333 g water, bloom 60 g, second pour to 200 g; Kalita 20 : 320 reads 1:16. And the site's yield table (18 g → 27 / 36 / 45 / 54 g). See tests/test_server.py.

  • Not here: TDS and extraction yield (refractometer math) and the shot log itself; the app keeps shots per bean and grinder and remembers the shot before for you.

Brewing advice from published barista practice, a starting point: your taste decides.

Run and test

pip install -r requirements.txt
python server.py                  # http://127.0.0.1:8000/mcp
python server.py --stdio
python -m unittest discover tests   # 12 tests

Hosted with the other Dre Dev MCP servers in one process; build_app() is mounted at /dial-in.

Licence

MIT for the code. Made by Andrii Zhukovskyi (Dre Dev).

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables users to calculate chronotype-aligned sleep schedules, optimize 90-minute ultradian cycles, determine caffeine cutoffs, and plan light exposure for better recovery and circadian alignment.
      7
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables users to look up Conservatory oboe fingerings, half-hole and left/forked F choices, octave keys, and trill charts, and to diagnose reed response issues through four read-only tools.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables users to calculate pool chemical doses from water tests, determine FC/CYA chlorine targets, evaluate CSI/LSI water balance, and compute pool volume in US or metric units via four read-only tools.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables calculating sodium hydroxide or potassium hydroxide and water amounts for soap recipes at a given superfat, evaluating soap qualities against suggested ranges, looking up oil properties, and sizing batches or molds. It provides read-only tools for bar, liquid, and dual-lye soap calculations.
      MIT