yazio-mcp
This MCP server lets an AI assistant read and manage a user's Yazio nutrition, diet, body, and activity data.
Read profile, settings, dietary preferences, goals, daily summaries, nutrient ranges, water intake, notes, weight/body values, exercises, products, recipes, meals, and favorites.
Search Yazio's food database, fetch product details, create custom products, and delete user-created products.
Manage the food diary: view and remove consumed items, log products, quick entries, recipe portions, and saved meals.
Manage water intake by adding to the daily total or correcting the absolute total.
Create, update, delete, and read user recipes with ingredients and calculated per-portion nutrients.
Create, read, and delete saved meals; log all items from a saved meal.
Manage favorite products and recipes.
Track weight and body values: add/update/delete weight, body fat, muscle, blood glucose, and circumference entries.
Log exercises, delete exercises, and set daily steps/activity energy.
Read and set diary notes and feeling tags.
Query date-specific data and date ranges for trends and weekly/monthly overviews.
Yazio MCP Server
This isnot an official MCP server and Yazio does not provide an official API.
An MCP (Model Context Protocol) server that connects Claude/Cursor to your Yazio nutrition data. Track your diet, search food products, and manage your nutrition goals directly from your AI assistant.
Available on NPM: npx yazio-mcp
Claude Desktop Extension: yazio-mcp.mcpb — one-click install is broken upstream, see workaround.
✨ Features
👤 Profile & Goals - Read your profile, settings, dietary preferences and daily goals
🔍 Food & Product Search - Search Yazio's food database, get suggestions, and manage your own products
📝 Food Diary - Log food and water, read entries and daily totals, and remove entries
🥣 Recipes - Create, read, update and delete your own recipes
🍽️ Saved Meals - Save sets of products as meals and manage them
⭐ Favorites - Manage your favorite products and recipes
⚖️ Weight & Body - Log weight, body fat, muscle, blood glucose and circumferences, and view the history
🏃♂️ Exercise & Activity - Log exercises and the day's steps
📓 Diary Notes - Read, write and clear daily notes and feeling tags
Related MCP server: Fitatu MCP Unofficial
🚀 Quick Start
Add the following JSON your MCP client configuration:
{
"mcpServers": {
"yazio": {
"command": "npx",
"args": ["-y", "yazio-mcp"],
"env": {
"YAZIO_USERNAME": "your_email@emai.com",
"YAZIO_PASSWORD": "your_password"
}
}
}
}Claude Desktop (Extension)
One-click.mcpb install is broken by a Claude Desktop bug (mcpb#281). Workaround: download yazio-mcp.zip, extract it, and use Settings → Extensions → Advanced settings → Install Unpacked Extension. Or just use the npx config above.
Claude Desktop (Manual)
~/Library/Application Support/Claude/claude_desktop_config.json
Claude Code (CLI)
claude mcp add yazio -e YAZIO_USERNAME=your_email@email.com -e YAZIO_PASSWORD=your_password -- npx -y yazio-mcpVerify with claude mcp list.
Cursor
There are a few ways to add the server:
Settings UI (easiest) —
Settings → MCP → + Add new MCP server, then fill in the command, args, and envProject config — add JSON to
.cursor/mcp.jsonin your project rootGlobal config — add JSON to
~/.cursor/mcp.json(applies to all projects)
💡 Use Cases
📈 Analyze Your Nutrition Trends
"Get my nutrition data for the last week and analyze my eating patterns"
Claude can retrieve your daily summaries, identify trends, and provide insights about your eating habits, macro distribution, and areas for improvement.
🔍 Search Food Products
"Search for 'chicken breast' in the Yazio database"
Find detailed nutritional information for any food product, including calories, macros, vitamins, and minerals.
📝 Add Forgotten Meals
"Add 200g of grilled salmon for yesterday's dinner"
Easily log meals you forgot to track in the Yazio app directly from Claude or Cursor.
🛠️ Available Tools
Tool | Description | Key Parameters |
👤 Profile & Goals | ||
| Get user profile | - |
| Get user preferences | - |
| Get dietary preferences | - |
| Get nutrition goals |
|
| Change some of your daily goals from a date on |
|
| Get your tracking streak by day | - |
| Get your fasting timer and completed fasts | - |
🔍 Food & Product Search | ||
| Search food database |
|
| Get detailed product info |
|
| Get suggested products for a meal |
|
| Get your own products | - |
| Create a custom product from label values per 100 g/ml |
|
| Delete one of your products |
|
📝 Food Diary | ||
| Get food entries for a date, with names and nutrients |
|
| Get recently logged items | - |
| Get daily nutrition summary |
|
| Get daily energy and macro totals for a date range |
|
| Get water intake |
|
| Add food to your log |
|
| Log a one-off entry with total nutrition, without a product ("quick add") |
|
| Log portions of a recipe |
|
| Log all items of a saved meal |
|
| Add water intake entry (cumulative value in ml) |
|
| Remove food from log |
|
🥣 Recipes | ||
| Get your own recipes | - |
| Get a recipe with ingredients and nutrients |
|
| Create a recipe from products; nutrients per portion are calculated |
|
| Replace one of your recipes; nutrients are recalculated |
|
| Delete one of your own recipes |
|
🍽️ Saved Meals | ||
| Get your saved meals | - |
| Save a set of products as a meal |
|
| Delete a saved meal |
|
⭐ Favorites | ||
| Get your favorite products and recipes | - |
| Add a product to favorites |
|
| Add a recipe to favorites |
|
| Remove a product from favorites |
|
| Remove a recipe from favorites |
|
⚖️ Weight & Body | ||
| Get the last weight entry up to a date |
|
| Get all weight entries in a date range |
|
| Get every body value of a day |
|
| Log a weight measurement in kg |
|
| Log body fat, muscle, blood glucose or a circumference, in metric units |
|
| Change a weight or body value entry |
|
| Delete a weight entry |
|
| Delete a body value entry |
|
🏃♂️ Exercise & Activity | ||
| Get exercise data |
|
| Log a Yazio training or a custom exercise |
|
| Set the day's total steps or activity energy (replaces the day's values) |
|
| Delete an exercise entry |
|
📓 Diary Notes | ||
| Get the diary note and feeling tags for a date |
|
| Set the diary note and/or feeling tags for a date; |
|
Test Connection
YAZIO_USERNAME='your_email' YAZIO_PASSWORD='your_password' npx yazio-mcp📦 Use the API Client
The package also exports the Yazio API client that the server uses:
npm install yazio-mcpimport { YazioApi } from 'yazio-mcp';
const yazio = new YazioApi({ username: 'your_email@email.com', password: 'your_password' });
const goals = await yazio.getGoals();
const entries = await yazio.getConsumedItems('2026-01-15');❕ Disclaimers
Credentials: Your Yazio credentials are only used for auth on Yazio servers
Use at Your Own Risk: API changes could affect functionality
Gotcha: the Yazio app may cache each day's items. It may keep the item list of a day from the first time it shows that day. Entries logged here later count in the totals, but get no row in the meal.
Log out of the app and in again to see the rows.
Or edit and delete them here:
get_user_consumed_items, thenremove_user_consumed_item.Or log first, then open the app.
📋 Requirements
Node.js 20+ (for npx)
Valid Yazio account
MCP-compatible client (Claude Desktop, Cursor, etc.)
Development
Download the repository
Point to local copy in your mcp config
Debugging:
YAZIO_USERNAME=X YAZIO_PASSWORD=X npx -y @modelcontextprotocol/inspector npx <local-path>/yazio-mcpReleasing
Publishing a GitHub Release publishes the package. Release Drafter keeps a stable and a beta draft up to date.
Beta: publish the beta draft (tag
vX.Y.Z-beta.N, marked as pre-release). It goes to npmbeta:npx yazio-mcp@beta.Stable: run
npm run release:prepare -- X.Y.Z, commit and merge, then publish the stable draft with tagvX.Y.Z. It goes to npmlatestand the MCP Registry.
📄 License
MIT License - see LICENSE file for details.
Available Tools
47 toolsadd_quick_entryAdd Quick EntryA
Log a one-off diary entry with a name and total nutrition of the eaten amount (Yazio "quick add"), without creating a product. Shows up in get_user_consumed_items as simple_products and is removed with remove_user_consumed_item.
Inputs: date (required), name (required), energy (required), daytime (required), +4 more.
add_user_body_valueAdd Body ValueA
Log a body fat or muscle percentage, a blood glucose level or a circumference. Convert to the metric unit first: Yazio stores metric whatever units the app shows. For weight use add_user_weight. Returns the entry ID for delete_user_body_value.
Inputs: date (required), type (required), value (required).
add_user_consumed_itemAdd Consumed ItemA
Add a food item to user consumption log. Pass date with time ("YYYY-MM-DD HH:mm:ss") to keep the time of the entry; date only (YYYY-MM-DD) logs it at 00:00. Returns the entry ID for remove_user_consumed_item.
Inputs: date (required), amount (required), daytime (required), product_id (required), +2 more.
add_user_consumed_mealAdd Saved MealA
Log all items of a saved meal to the diary. Each item shows up in get_user_consumed_items as a separate entry. Returns the entry IDs for remove_user_consumed_item.
Inputs: date (required), daytime (required), meal_id (required).
add_user_consumed_recipeAdd Recipe PortionA
Log portions of a recipe to the diary. Shows up in get_user_consumed_items as recipe_portions. Use get_recipe for the nutrients per portion.
Inputs: date (required), daytime (required), recipe_id (required), portion_count (required).
add_user_exerciseAdd ExerciseA
Log an exercise: a Yazio training (e.g. running) or, with custom: true, an exercise with any name. Pass the burned energy, because Yazio does not calculate it. Returns the entry ID.
Inputs: date (required), name (required), energy (required), duration (required), +2 more.
add_user_favorite_productAdd Favorite ProductB
Add a product to the user's favorites, with the amount (and optionally serving) it is usually eaten in.
Inputs: amount (required), product_id (required), serving, serving_quantity.
add_user_favorite_recipeAdd Favorite RecipeB
Add a recipe to the user's favorites, with the number of portions usually eaten.
Inputs: recipe_id (required), portion_count (required).
add_user_water_intakeAdd Water IntakeA
Log water intake at a date and time ("YYYY-MM-DD HH:mm:ss"). Pass add_ml (the amount drunk): the server reads the current daily total and adds to it. To correct the day's total, pass water_intake as the corrected absolute total in ml.
Inputs: date (required), add_ml, water_intake.
add_user_weightAdd WeightA
Log a weight measurement in kg. Returns the entry ID for delete_user_weight.
Inputs: date (required), weight (required).
create_productCreate ProductA
Create a custom product (e.g. a restaurant dish or a brand missing in search) from label values per 100 g/ml. Returns its product_id for add_user_consumed_item. Search first: creating duplicates clutters the database.
Inputs: name (required), category (required), fat_per_100 (required), carb_per_100 (required), +7 more.
create_user_mealCreate Saved MealA
Save a set of products as a meal to log it again later with add_user_consumed_meal. Returns the meal ID.
Inputs: name (required), products (required).
create_user_recipeCreate RecipeA
Create a recipe from products and their amounts in the whole recipe. The nutrients per portion are calculated from the products. Returns the recipe ID for add_user_consumed_recipe.
Inputs: name (required), ingredients (required), portion_count (required), instructions.
delete_user_body_valueDelete Body ValueBDestructiveIdempotent
Delete a body value entry by its ID, from add_user_body_value or get_user_body_values.
Inputs: id (required).
delete_user_exerciseDelete ExerciseADestructiveIdempotent
Delete an exercise entry by its ID from get_user_exercises or add_user_exercise.
Inputs: id (required).
delete_user_mealDelete Saved MealADestructiveIdempotent
Permanently delete one of the user's saved meals. Diary entries logged from it stay. It can't be restored, so confirm with the user first.
Inputs: id (required).
delete_user_productDelete ProductADestructiveIdempotent
Permanently delete one of the user's own products. It can't be restored, so confirm with the user first.
Inputs: id (required).
delete_user_recipeDelete RecipeADestructiveIdempotent
Permanently delete one of the user's own recipes. It can't be restored, so confirm with the user first.
Inputs: id (required).
delete_user_weightDelete WeightADestructiveIdempotent
Delete a weight entry by its ID, from add_user_weight or get_user_weight.
Inputs: id (required).
get_productGet Product DetailsBRead-onlyIdempotent
Get detailed information about a specific product by ID
Inputs: id (required). Returns: eans, name, has_ean, category, +10 more
get_recipeGet RecipeARead-onlyIdempotent
Get a recipe by ID with its ingredients, portion count and nutrients per portion. Use it to resolve recipe_id of recipe portions in get_user_consumed_items.
Inputs: id (required).
get_userGet User ProfileCRead-onlyIdempotent
Get Yazio user profile information
Inputs: no named parameters.
get_user_body_valuesGet Body ValuesARead-onlyIdempotent
Get every body value of a day, by type: weight in kg, body fat and muscle in %, blood glucose in mg/dL, circumferences in cm. Always metric, whatever units the app shows.
Inputs: date.
get_user_consumed_itemsGet Consumed ItemsCRead-onlyIdempotent
Get food entries for a specific date
Inputs: date (required).
get_user_daily_nutrientsGet Daily NutrientsARead-onlyIdempotent
Get the energy (kcal), carb, protein and fat totals and the energy goal for each day of a date range, in one request. Use it for weekly or monthly overviews.
Inputs: start (required), end.
get_user_daily_summaryGet Daily SummaryBRead-onlyIdempotent
Get daily nutrition summary for a specific date
Inputs: date (required). Returns: user, goals, meals, steps, +5 more
get_user_dietary_preferencesGet Dietary PreferencesBRead-onlyIdempotent
Get user dietary preferences and restrictions
Inputs: no named parameters.
get_user_exercisesGet ExercisesCRead-onlyIdempotent
Get user exercise data for a date or date range
Inputs: date.
get_user_favoritesGet FavoritesARead-onlyIdempotent
Get the user's favorite products (with their name and the amount and serving they were favorited with) and favorite recipes (with their name and the portion count).
Inputs: no named parameters.
get_user_goalsGet GoalsBRead-onlyIdempotent
Get the user's daily nutrition and fitness goals, including their own adjustments
Inputs: date. Returns: water, nutrient.fat, activity.step, energy.energy, +3 more
get_user_mealsGet Saved MealsBRead-onlyIdempotent
Get the user's saved meals: named sets of foods that are logged together
Inputs: no named parameters.
get_user_noteGet NoteARead-onlyIdempotent
Get the user's diary note and feeling tags for a date (the Notes card in the Yazio diary)
Inputs: date (required).
get_user_productsGet User ProductsARead-onlyIdempotent
Get the products the user created, with their nutrients and servings.
Inputs: no named parameters.
get_user_recipesGet User RecipesARead-onlyIdempotent
Get the user's own recipes with their ingredients and nutrients
Inputs: no named parameters.
get_user_settingsGet SettingsCRead-onlyIdempotent
Get user settings and preferences
Inputs: no named parameters.
get_user_suggested_productsGet Suggested ProductsCRead-onlyIdempotent
Get product suggestions for the user for a meal (daytime) on a date
Inputs: date, limit, daytime.
get_user_water_intakeGet Water IntakeBRead-onlyIdempotent
Get water intake data for a specific date
Inputs: date (required).
get_user_weightGet WeightARead-onlyIdempotent
Get the last weight entry up to a date. Use get_user_weight_history for all entries in a date range.
Inputs: date.
get_user_weight_historyGet Weight HistoryARead-onlyIdempotent
Get all weight entries between two dates in one call, e.g. for trends. A day can have several entries at different times.
Inputs: start (required), end.
remove_user_consumed_itemRemove Consumed ItemCDestructiveIdempotent
Remove a food item from user consumption log
Inputs: itemId (required).
remove_user_favorite_productRemove Favorite ProductBDestructiveIdempotent
Remove a product from the user's favorites by its product_id.
Inputs: product_id (required).
remove_user_favorite_recipeRemove Favorite RecipeADestructiveIdempotent
Remove a recipe from the user's favorites by the favorite's own id from get_user_favorites (not the recipe_id).
Inputs: id (required).
search_productsSearch Food ProductsBRead-onlyIdempotent
Search for food products in Yazio database. You can optionally specify user's sex, country and locale of the products to search for.
Inputs: query (required), sex, locales, countries. Returns: products
set_user_activitySet ActivityAIdempotent
Set the day's total step count and/or energy burned by activity (kcal), as a step counter would. It replaces the day's values; a value left out keeps its current value. For a workout use add_user_exercise.
Inputs: date (required), steps, energy.
set_user_noteSet NoteADestructiveIdempotent
Set the user's diary note and/or feeling tags for a date. Fields you leave out keep their current value; the note text replaces the old text, so include it to append. Yazio has no delete: to clear the day, pass note: null and tags: [].
Inputs: date (required), note, tags.
update_user_body_valueUpdate Body ValueBDestructiveIdempotent
Change the value of a weight or other body value entry by its ID. Values are metric: kg, %, mg/dL or cm.
Inputs: id (required), value (required).
update_user_recipeUpdate RecipeADestructiveIdempotent
Replace one of the user's own recipes: name, portions, ingredients and instructions. Pass the whole recipe, as for create_user_recipe; the nutrients per portion are recalculated from the products.
Inputs: id (required), name (required), ingredients (required), portion_count (required), +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 47 tools
Most tools target a clearly distinct resource and action, and the descriptions actively resolve the few risky pairs (get_user_weight vs get_user_weight_history, add_user_weight vs add_user_body_value, add_quick_entry vs create_product vs add_user_consumed_item). Residual overlap remains between get_user_daily_summary and get_user_daily_nutrients, and between the seven different remove/delete tools for different resources, which an agent must read carefully to keep straight.
The dominant pattern is verb_user_resource (get_user_water_intake, add_user_consumed_meal, delete_user_weight), applied consistently across the bulk of the surface. Deviations are modest: the verb 'remove' vs 'delete' for deletions (remove_user_consumed_item vs delete_user_recipe) and 'add' vs 'create' for creations, plus a handful of unscoped domain tools (search_products, get_product, get_recipe, create_product).
47 tools is heavy for a nutrition-tracker surface and forces the agent to navigate near-parallel families (five weight/body-value getters, eight delete/remove tools, three separate favorite add/remove pairs). The domain is genuinely large, so many tools are justified, but the surface could be consolidated (e.g. generic delete for entries, merged summary/nutrients) without losing capability.
Coverage is unusually thorough: full lifecycle for diary entries, recipes, meals, products, water, weight, body values, exercises, notes, goals and favorites, with explicit cross-references from create to the ID needed for delete. The main gaps are update operations for custom products and saved meals (create/delete only), which agents can work around by recreating.
Maintenance
Related MCP Connectors
MCP server for Withings health data — sleep, activity, heart, and body metrics.
MCP server exposing supplements database used by iNutriPlan.com
Unlock the power of food transparency with our Open Food Facts MCP server. Easily look up any food
timesheet.io MCP server - manage timers, projects, tasks and reports
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for USDA nutrition data lookup, meal logging, and daily macro tracking.3MIT
- AlicenseAqualityAmaintenanceUnofficial MCP server that exposes Fitatu account operations as tools for inspecting and updating your meal plan.1913MIT
- AlicenseAqualityDmaintenanceMCP server for Cronometer nutrition tracking using the mobile API. Enables food logging, nutrition data retrieval, diary management, and fasting tracking.131MIT
- AlicenseNot gradedqualityCmaintenanceMCP 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