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.
- 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. - Intent. You say "Log an espresso: 18g in, 36g out, 28 seconds". The assistant chooses
create_brewand fills in the parameters. - Authenticated call. The client sends
tools/callwith your token in theAuthorizationheader. - 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, withAUTH_INVALID_FORMATorAUTH_INVALID_TOKENin the error data). - Each token can make 60 requests a minute. Past that, the server answers with HTTP 429 (code
-32005) and aRetry-Afterheader. Every authenticated response carriesX-RateLimit-Limit,X-RateLimit-RemainingandX-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.
| Tool | Category | Type | Description |
|---|---|---|---|
list_beans | Beans | Read | List all coffee beans for the authenticated user. Returns beans with roaster, origin, process, and other details. |
get_bean | Beans | Read | Get details of a specific bean by ID. |
create_bean | Beans | Write | Create a new coffee bean entry. Requires at least a name. |
update_bean | Beans | Write | Update an existing coffee bean. |
delete_bean | Beans | Archive | Delete (archive) a coffee bean. This is a soft delete. |
list_brews | Brews | Read | List brews for the authenticated user. Can filter by bean, method, or date range. |
get_brew | Brews | Read | Get details of a specific brew by ID. |
create_brew | Brews | Write | Log a new brew. Requires bean ID and brew method at minimum. |
update_brew | Brews | Write | Update an existing brew. |
delete_brew | Brews | Archive | Delete (archive) a brew. This is a soft delete. |
list_bags | Bags | Read | List bags for a specific bean or all beans. |
get_active_bag | Bags | Read | Get the currently active bag. Returns null if no bag is active. |
get_bag | Bags | Read | Get details of a specific bag by ID. |
create_bag | Bags | Write | Create a new bag for a bean. Represents a physical purchase of coffee. |
update_bag | Bags | Write | Update an existing bag. |
delete_bag | Bags | Archive | Delete (archive) a bag. This is a soft delete. |
set_active_bag | Bags | Write | Set a bag as the active bag. Deactivates any other active bag for the same bean. |
parse_brew_text | AI and account | AI (uses credits) | Parse natural language brew description into structured parameters. Example: "18g in, 36g out, 28 seconds, really balanced" |
get_limits | AI and account | Read | Get 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
- Get Pro in the BrewLogica app, then create a token under Settings → API Tokens. How tokens work.
- Add BrewLogica to your client's MCP settings. The MCP quickstart has the exact config for each client.
- 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.