Yazio MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Yazio MCP Serverlog 250g chicken breast for lunch today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Yazio MCP Server (Python)
This isnot an official MCP server and Yazio does not provide an official API. It talks to the same reverse-engineered endpoints the Yazio apps use and may stop working at any time.
An MCP (Model Context Protocol) server that connects Claude, Cursor, and other MCP clients to your Yazio nutrition diary. Track your diet, search food products, and manage nutrition goals from your AI assistant.
A Python port of yazio-mcp, requiring no Node.js toolchain.
Quick start
No install step and no cloning — uv fetches, builds, and runs it straight from GitHub:
uvx --python 3.12 --from git+https://github.com/bserem/yazio-mcp-python yazio-mcpAdd it to your MCP client config:
{
"mcpServers": {
"yazio": {
"command": "uvx",
"args": [
"--python", "3.12",
"--from", "git+https://github.com/bserem/yazio-mcp-python",
"yazio-mcp"
],
"env": {
"YAZIO_USERNAME": "your_email@example.com",
"YAZIO_PASSWORD": "your_password"
}
}
}
}Claude Code (CLI)
claude mcp add yazio \
-e YAZIO_USERNAME=your_email@example.com \
-e YAZIO_PASSWORD=your_password \
-- uvx --python 3.12 --from git+https://github.com/bserem/yazio-mcp-python yazio-mcpVerify with claude mcp list.
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json on macOS, or
%APPDATA%\Claude\claude_desktop_config.json on Windows — use the JSON above.
Cursor
Add the same JSON to .cursor/mcp.json (per project) or ~/.cursor/mcp.json (global),
or fill in the command and env via Settings → MCP → + Add new MCP server.
Pinning and updating
uvx caches the resolved git commit, so it will not pick up new commits on its own.
Either pin a tag for reproducibility:
uvx --from git+https://github.com/bserem/yazio-mcp-python@v0.1.0 yazio-mcpor force a re-resolve when you want the latest:
uvx --refresh --from git+https://github.com/bserem/yazio-mcp-python yazio-mcpRelated MCP server: myfitnesspal-mcp
Test your connection
YAZIO_USERNAME='you@example.com' YAZIO_PASSWORD='...' \
uvx --python 3.12 --from git+https://github.com/bserem/yazio-mcp-python yazio-mcpThe server authenticates during startup, so wrong credentials fail immediately with a message on stderr rather than at the first tool call.
Available tools
Tool | Description | Parameters |
| User profile | – |
| Settings and preferences | – |
| Dietary restrictions | – |
| Nutrition and fitness goals |
|
| Daily nutrition summary |
|
| Food entries for a date |
|
| Exercise data |
|
| Latest weight entry |
|
| Water intake for a date |
|
| Search the food database |
|
| Full product details |
|
| Suggestions for a meal |
|
| Add food to the log |
|
| Remove food from the log |
|
| Log water intake |
|
Dates are YYYY-MM-DD, except add_user_water_intake, which needs
YYYY-MM-DD HH:MM:SS. Amounts are in base units (g or ml).
Prompts
Three prompts cover the flows that need more than one call:
add_food_item— search → disambiguate → check servings → logremove_food_item— read the diary to get the entryid, then removeadd_water_intake— read the current total, add to it, write back the new total
Repository layout
This is a uv workspace with two independently publishable packages:
.
├── src/yazio_mcp/ # yazio-mcp — the MCP server
└── packages/yazio-client/ # yazio-client — a standalone async Yazio API clientyazio-client knows nothing about MCP and is usable on its own — see
its README. uv resolves the workspace dependency
automatically when installing from git, so the single uvx --from git+... command
above builds both.
Development
uv sync # create the venv and install both packages plus dev tools
uv run pytest # 58 tests, no credentials or network needed
uv run ruff check .
uv run ruff format .Tests mock the HTTP layer with respx, so they never touch the real Yazio API.
Run the server from a local checkout:
YAZIO_USERNAME=... YAZIO_PASSWORD=... uv run yazio-mcpNotes on behaviour
Water intake is cumulative.
water_intakeis the running total for the day, not the amount being added. Readget_user_water_intakefirst and add to it.item_idis notproduct_id. Removal needs theidof a diary entry fromget_user_consumed_items.add_user_consumed_itemreturns the id it created, so an addition can be undone without re-reading the diary.Credentials are sent only to Yazio's own servers, and only to obtain an OAuth token.
Differences from the TypeScript version
The
yazionpm package and its monkey-patched water-intake method are replaced by the first-classyazio-clientpackage in this repo.Tool parameters use
snake_case:get_producttakesproduct_id(wasid) andremove_user_consumed_itemtakesitem_id(wasitemId).get_user_suggested_productstakesdaytimeanddate, which is what the endpoint actually accepts. The TypeScript version advertisedqueryandlimit, which the API ignored.get_user_goals,get_user_weight, andget_user_exercisesaccept an optionaldate.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server for managing Yazio user & nutrition data (unofficial)1517754MIT
- Alicense-qualityDmaintenanceA Model Context Protocol (MCP) server that connects AI assistants to your MyFitnessPal data, enabling reading food diaries, nutrition goals, weight measurements, and more via MFP's web scraping.MIT
- AlicenseAqualityBmaintenanceMCP server for Cronometer nutrition tracking using the mobile API. Enables food logging, nutrition data retrieval, diary management, and fasting tracking.13MIT
- Alicense-qualityAmaintenanceMCP server over the YAZIO food diary that lets a model read what you've eaten today, log meals, build recipes from tracked products, track water, weight and exercise, and query nutrition summaries, goals and profiles.2MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for Withings health data — sleep, activity, heart, and body metrics.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bserem/yazio-mcp-pyton'
If you have feedback or need assistance with the MCP directory API, please join our Discord server