Skip to content
Guide

How MCP integrations work

How an assistant uses the Model Context Protocol to call BrewLogica’s 19 tools on a remote server.

Updated November 2026 · By Samuel Coe, founder of Coe Code

The Model Context Protocol (MCP) is an open standard that lets AI assistants connect to outside data and tools through one interface. A service implements MCP once and any MCP client can use it, including Claude and Cursor. BrewLogica's MCP server exposes 19 tools for beans, bags, brews and AI. It lives at https://api.brewlogica.app/mcp and uses Bearer tokens that you create in the BrewLogica app.

What is the Model Context Protocol?

MCP uses a client and a server to help your assistant find and call tools.

  • The MCP server (here, BrewLogica) publishes a list of tools, each with a name, a description and a parameter schema.
  • The MCP client (your assistant) reads that list and calls a tool when your request needs it.
  • The assistant decides when and how to call tools from the conversation. You don't have to name them.

MCP gives assistants and services a shared protocol, much like HTTP for browsers and web servers. Each pair would otherwise need its own integration.

How BrewLogica's MCP server works

BrewLogica hosts the remote MCP server. Your client sends JSON-RPC 2.0 messages by HTTP POST to https://api.brewlogica.app/mcp (also available at /v1/mcp). The server supports initialize, ping, tools/list and tools/call.

  1. Tool discovery. When your client starts, it calls tools/list. BrewLogica returns 19 tool definitions with a name, a description and a JSON Schema for the parameters.
  2. Intent. You say "Log an espresso: 18g in, 36g out, 28 seconds". The assistant chooses create_brew and fills in the parameters.
  3. Authenticated call. The client sends tools/call with your token in the Authorization header.
  4. Response. BrewLogica saves the brew and sends the result to your assistant, which confirms the entry.

Auth and limits

  • Tokens start with bl_. A request with no Bearer token gets HTTP 401 (JSON-RPC code -32001). A malformed or revoked token gets HTTP 403 (code -32003, with AUTH_INVALID_FORMAT or AUTH_INVALID_TOKEN in the error data).
  • Each token can make 60 requests a minute. Past that, the server answers with HTTP 429 (code -32005) and a Retry-After header. Every authenticated response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. See Rate limits.
  • A token reads and writes only the data of the account that created it.

All 19 BrewLogica MCP tools

Parameter names are camelCase, such as beanId. Delete tools archive the item.

ToolCategoryTypeDescription
list_beansBeansReadList all coffee beans for the authenticated user. Returns beans with roaster, origin, process, and other details.
get_beanBeansReadGet details of a specific bean by ID.
create_beanBeansWriteCreate a new coffee bean entry. Requires at least a name.
update_beanBeansWriteUpdate an existing coffee bean.
delete_beanBeansArchiveDelete (archive) a coffee bean. This is a soft delete.
list_brewsBrewsReadList brews for the authenticated user. Can filter by bean, method, or date range.
get_brewBrewsReadGet details of a specific brew by ID.
create_brewBrewsWriteLog a new brew. Requires bean ID and brew method at minimum.
update_brewBrewsWriteUpdate an existing brew.
delete_brewBrewsArchiveDelete (archive) a brew. This is a soft delete.
list_bagsBagsReadList bags for a specific bean or all beans.
get_active_bagBagsReadGet the currently active bag. Returns null if no bag is active.
get_bagBagsReadGet details of a specific bag by ID.
create_bagBagsWriteCreate a new bag for a bean. Represents a physical purchase of coffee.
update_bagBagsWriteUpdate an existing bag.
delete_bagBagsArchiveDelete (archive) a bag. This is a soft delete.
set_active_bagBagsWriteSet a bag as the active bag. Deactivates any other active bag for the same bean.
parse_brew_textAI and accountAI (uses credits)Parse natural language brew description into structured parameters. Example: "18g in, 36g out, 28 seconds, really balanced"
get_limitsAI and accountReadGet the current user's AI usage limits and remaining quota.

Full parameter lists are in the tool reference.

Example tool calls

Each prompt is followed by the tool call your assistant makes.

Log a shot

"Log an espresso with my Ethiopia: 18g in, 36g out, 28 seconds, a touch sour"

create_brew(beanId: "…", method: "ESPRESSO", doseGrams: 18, yieldGrams: 36, brewTimeSeconds: 28, notes: "a touch sour")

Look back at a method

"What were my last 5 V60 brews?"

list_brews(method: "V60", limit: 5)

Add a new bag

"I just bought a 250g bag of Onyx Tropical Weather, roasted Feb 1st, paid $28"

1. list_beans()  // find the bean's id
2. create_bag(beanId: "…", roastDate: "2026-02-01", bagWeightGrams: 250, pricePaid: 28, currency: "USD")

Count this month's brews

"How many brews did I make this month?"

list_brews(startDate: "2026-11-01", limit: 100)

Check AI credits

"How many AI credits do I have left?"

get_limits()

How to connect your assistant

  1. Get Pro in the BrewLogica app, then create a token under Settings → API Tokens. How tokens work.
  2. Add BrewLogica to your client's MCP settings. The MCP quickstart has the exact config for each client.
  3. Restart the client and say "List my beans in BrewLogica" to check the connection.

Full quickstart · Complete tool reference

Frequently asked questions

What is the Model Context Protocol (MCP)?

MCP is an open standard developed by Anthropic that lets AI assistants connect to outside data and tools through one interface. A service implements MCP once and any MCP client can use it.

What MCP clients support BrewLogica?

Any MCP client, including Claude Code, Claude Desktop and Cursor. The server is hosted at https://api.brewlogica.app/mcp, so there is nothing to run yourself.

How does BrewLogica authenticate MCP requests?

With Bearer tokens. You create one in the app under Settings → API Tokens and send it in the Authorization header of every request. Tokens start with bl_, are shown once, and reach only the account that created them.

How many MCP tools does BrewLogica expose?

19 tools across beans, brews, bags, and AI and account. See the tool reference for parameters.

Do I need to install anything locally?

No server install: BrewLogica's MCP server is hosted. If your client only runs local servers, the quickstart shows how to bridge it with an npx proxy, which needs Node.js.