yazio-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
yazio-mcp
A remote MCP server that gives Claude access to a Yazio food diary: search the product catalogue, log what you ate, read the diary, and check calories and macros against your goals.
It runs as a custom connector in claude.ai (web, desktop, mobile), and works the same way in ChatGPT and Codex — the client calls it from its side, so there is nothing to run locally.
Setup
1. Deploy
The button signs you in to Cloudflare, copies this repository into your own GitHub account and
deploys it from there. Nothing to install, and nothing to fill in: no secrets, no variables, no KV
namespace, no database. (The two rate limiters are bindings, but they are declared in
wrangler.jsonc and need no provisioning.) Note the *.workers.dev URL it gives you at the end —
you need it below.
bun installbunx wrangler loginbun run deploy2. Add it to Claude
Settings → Connectors → Add custom connector:
URL —
https://yazio-mcp.<your-subdomain>.workers.devOAuth Client ID — your Yazio email
OAuth Client Secret — your Yazio password
Claude then runs the OAuth flow by itself. There is no login page and none is needed: those two fields already are the credentials. The Worker exchanges them with Yazio once, hands Claude back Yazio's own 48-hour token, and forgets both. Claude renews it through Yazio's refresh grant, so the password is never sent again.
Or add it to ChatGPT
Custom connectors in ChatGPT need Developer mode, which is available on Pro, Business, Enterprise and Edu plans.
Settings → Apps & Connectors → Advanced settings → turn on Developer mode.
Back in Apps & Connectors, Create a connector:
MCP Server URL —
https://yazio-mcp.<your-subdomain>.workers.devAuthentication — OAuth
Open the OAuth advanced settings and fill in the client yourself — the connector does not offer dynamic registration, so ChatGPT will not do it for you:
Client ID — your Yazio email
Client Secret — your Yazio password
Tick that you trust the connector, then Create. ChatGPT runs the OAuth flow and comes back connected.
To use it in a chat, pick it from the + menu → Developer mode. ChatGPT asks for confirmation before each write (logging food, deleting entries); reads go through without asking.
Or add it to Codex
codex mcp add yazio --url https://yazio-mcp.<your-subdomain>.workers.dev --oauth-client-id you@example.com --oauth-client-secret 'your-yazio-password'codex mcp login yazioCodex keeps the secret in ~/.codex/config.toml, so keep that file private.
If you don't have password (e.g. registered via Google), reset it here.
Related MCP server: foodlog
Tools
Tool | What it does |
| Search the Yazio catalogue. Returns ids, kcal and macros per 100 g/ml, default portion |
| One product in full, with every portion size Yazio knows for it |
| What you eat regularly for a meal, with your usual portion |
| Add a food Yazio does not have, private to you, and get its |
| Write products into the diary — a whole meal in one call |
| Log calories with no product behind them, the app's Quick Add |
| The day's diary by meal, with the |
| Remove one or more entries by |
| Eaten versus goal for a day, or a day-by-day table plus averages (up to 31 days) |
| One nutrient day by day: fibre, sugar, sodium, a vitamin |
| Set the day's water total in millilitres |
| Workouts logged for a day and what they burned |
| Calorie, macro, water and step targets, diet split, restriction, current and target weight |
Every write answers with the macros of that meal, the day's totals so far and the calories left, so Claude can report them back without a second call.
Security
Your Yazio password goes to whoever runs the Worker. Yazio offers third parties no OAuth, only a password grant, so there is no way around it. Deploy your own Worker rather than trusting someone else's.
Nothing is stored. No database, no credential logging. The password exists only for the duration of one
/tokenrequest. Obtained token is returned to Claude./tokenis an unauthenticated login proxy, so it is rate-limited: 10 requests a minute per IP, and 60 a minute per session on the MCP endpoint.The Yazio API is unofficial (
https://yzapi.yazio.com/v20) and can change without notice. It gates writes on the client's user agent — a request that does not look like the Android app is refused withversion_blocked, sosrc/yazio/api.tssends the app's own.A Yazio refresh invalidates every access token on the account, not just the one it replaces — including the session on your phone, and the phone's own refresh kills this one. Two things follow. The connector never calls Yazio's refresh grant: it signs in again instead, which disturbs nothing. And when Yazio does turn a session down mid-call, the Worker answers
401withWWW-Authenticate, so Claude renews and retries by itself rather than leaving you to reconnect.
Limitations
A food you create is yours alone and can be logged straight away, but it does not turn up in the Yazio app's own search until the app rebuilds its catalogue. Nothing here can force that, which is what
list_my_productsis for.Deleting one of your foods takes it off your list; diary entries already logged with it keep their calories, as they do in the app.
Recipe portions are counted but not described —
list_food_logsays so on its own line. They still count towardsget_daily_summary.Energy is always kcal; portions are grams or millilitres, whichever the product uses.
log_watersets the day's total rather than adding to it, which is all Yazio offers.Exercise is read-only:
list_exercisesshows what is there, nothing writes to it.
Development
bun run devbun testbun run smokebun run checkbun run lintbun test— units: dates, nutrient maths, portion resolution, rendering, and the exact requests the Yazio client sends.bun run smoke— every service path against a live account: searches, logs one test entry, reads the diary, deletes the entry again.bun run check— the whole path claude.ai walks: discovery documents, the OAuth flow with PKCE, then MCP over HTTP with the resulting token. Covers the failure cases too (no token, tampered token, foreignredirect_uri, wrong password, someone else's code, wrongcode_verifier) and prints exactly the text a model would see. It finishes by bursting/tokenuntil the rate limiter refuses it, which spends that IP's budget — wait a minute between runs. Pass a URL to check a deployed Worker.bun run lint— prettier, eslint, tsc and knip.
wrangler dev needs Node even when everything else runs on Bun. On a Bun-only machine:
bun add -d node-linux-x64 (or the package for your platform) and put its bin on PATH.
Both live scripts need YAZIO_EMAIL and YAZIO_PASSWORD in the environment or in a gitignored
.env. Liveness check: GET /health.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Log meals, check calories and macros, set up a nutrition plan, and search foods.
Log and edit meals with photos, read daily calories and macros, goals, weigh-ins and progress.
Log workouts and meals by telling your AI. 873 exercises, muscle diagrams, food lookup.
Food logging, nutrition summaries, and meal photo calorie and macro estimates.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to read and log MyFitnessPal nutrition data, including tracking calories, macros, searching foods, and adding meals through natural conversation.7MIT
- FlicenseNot gradedqualityCmaintenanceEnables agents to log and edit meals, query a food journal, and retrieve calorie/macro/quality KPIs with server-side nutritional grading, plus manage staples and targets.1-
- AlicenseNot gradedqualityDmaintenanceEnables nutrition tracking via AI, allowing users to read food logs with macros, goals, and profile, log meals by text or photo, and access diary, subscription, diabetes, and wearable/glucose data.MIT
- AlicenseNot gradedqualityBmaintenanceEnables conversational logging and retrieval of workouts, sets, weigh-ins, meals, goals, plans, and progress photos through MCP-capable AI clients, with authenticated per-user storage and export/query capabilities.ISC