Back to Browse

Yazio MCP Server

Developer ToolsModerate5.4MCP RegistryLocal
Free

Server data from the Official MCP Registry

MCP server for accessing Yazio user & nutrition data (unofficial)

About

MCP server for accessing Yazio user & nutrition data (unofficial)

Security Report

5.4
Moderate5.4Moderate Risk

This is a legitimate Yazio nutrition diary MCP server that authenticates with the user's own Yazio credentials read from environment variables and uses network access that matches its purpose. No malicious patterns, hardcoded secrets, or shell execution appear in the visible code. The main caveats are that the HTTP client and token handling in src/api/http.ts were truncated and could not be verified, and several tools perform destructive writes that rely on the AI client to confirm with the user. Supply chain analysis found 3 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue.

5 files analyzed ยท 8 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

stdio

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Yazio UsernameRequired

Environment variable: YAZIO_USERNAME

Yazio PasswordRequired

Environment variable: YAZIO_PASSWORD

Client id of the Yazio app (optional, a built-in default is used)Required

Environment variable: YAZIO_CLIENT_ID

Client secret of the Yazio app (optional, a built-in default is used)Required

Environment variable: YAZIO_CLIENT_SECRET

User agent of a Yazio app build, e.g. YAZIO/26.41.2 (com.yazio.android; build:610090905; Android 36) Ktor. Sent only to the API versions that check it (v20 and later); no current call needs it (optional)Optional

Environment variable: YAZIO_USER_AGENT

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "yazio-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "yazio-mcp@0.0.25"
      ],
      "env": {
        "YAZIO_PASSWORD": "your-yazio-password-here",
        "YAZIO_USERNAME": "your-yazio-username-here",
        "YAZIO_CLIENT_ID": "your-yazio-client-id-here",
        "YAZIO_USER_AGENT": "your-yazio-user-agent-here",
        "YAZIO_CLIENT_SECRET": "your-yazio-client-secret-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

Yazio MCP Server

[!IMPORTANT] This is not 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

๐Ÿš€ 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)

[!WARNING] 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-mcp

Verify 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 env
  • Project config โ€” add JSON to .cursor/mcp.json in your project root
  • Global config โ€” add JSON to ~/.cursor/mcp.json (applies to all projects)

๐Ÿ’ก Use Cases

Showcase

๐Ÿ“ˆ 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

ToolDescriptionKey Parameters
๐Ÿ‘ค Profile & Goals
get_userGet user profile-
get_user_settingsGet user preferences-
get_user_dietary_preferencesGet dietary preferences-
get_user_goalsGet nutrition goalsdate (optional)
set_user_goalsChange some of your daily goals from a date ongoals, date (optional)
get_user_streakGet your tracking streak by day-
get_user_fastingsGet your fasting timer and completed fasts-
๐Ÿ” Food & Product Search
search_productsSearch food databasequery
get_productGet detailed product infoid
get_user_suggested_productsGet suggested products for a mealdate, daytime, limit (all optional)
get_user_productsGet your own products-
create_productCreate a custom product from label values per 100 g/mlname, category, energy_per_100, protein_per_100, fat_per_100, carb_per_100
delete_user_productDelete one of your productsid
๐Ÿ“ Food Diary
get_user_consumed_itemsGet food entries for a date, with names and nutrientsdate
get_user_consumed_items_latestGet recently logged items-
get_user_daily_summaryGet daily nutrition summarydate
get_user_daily_nutrientsGet daily energy and macro totals for a date rangestart, end (optional)
get_user_water_intakeGet water intakedate
add_user_consumed_itemAdd food to your logproduct_id, amount, date, daytime
add_quick_entryLog a one-off entry with total nutrition, without a product ("quick add")name, date, daytime, energy
add_user_consumed_recipeLog portions of a reciperecipe_id, portion_count, date, daytime
add_user_consumed_mealLog all items of a saved mealmeal_id, date, daytime
add_user_water_intakeAdd water intake entry (cumulative value in ml)date, water_intake
remove_user_consumed_itemRemove food from logitemId
๐Ÿฅฃ Recipes
get_user_recipesGet your own recipes-
get_recipeGet a recipe with ingredients and nutrientsid
create_user_recipeCreate a recipe from products; nutrients per portion are calculatedname, portion_count, ingredients
update_user_recipeReplace one of your recipes; nutrients are recalculatedid, name, portion_count, ingredients
delete_user_recipeDelete one of your own recipesid
๐Ÿฝ๏ธ Saved Meals
get_user_mealsGet your saved meals-
create_user_mealSave a set of products as a mealname, products
delete_user_mealDelete a saved mealid
โญ Favorites
get_user_favoritesGet your favorite products and recipes-
add_user_favorite_productAdd a product to favoritesproduct_id, amount
add_user_favorite_recipeAdd a recipe to favoritesrecipe_id, portion_count
remove_user_favorite_productRemove a product from favoritesproduct_id
remove_user_favorite_recipeRemove a recipe from favoritesid
โš–๏ธ Weight & Body
get_user_weightGet the last weight entry up to a datedate (optional)
get_user_weight_historyGet all weight entries in a date rangestart, end (optional)
get_user_body_valuesGet every body value of a daydate (optional)
add_user_weightLog a weight measurement in kgdate, weight
add_user_body_valueLog body fat, muscle, blood glucose or a circumference, in metric unitstype, date, value
update_user_body_valueChange a weight or body value entryid, value
delete_user_weightDelete a weight entryid
delete_user_body_valueDelete a body value entryid
๐Ÿƒโ€โ™‚๏ธ Exercise & Activity
get_user_exercisesGet exercise datadate
add_user_exerciseLog a Yazio training or a custom exercisedate, name, duration, energy
set_user_activitySet the day's total steps or activity energy (replaces the day's values)date, steps, energy
delete_user_exerciseDelete an exercise entryid
๐Ÿ““ Diary Notes
get_user_noteGet the diary note and feeling tags for a datedate
set_user_noteSet the diary note and/or feeling tags for a date; note: null and tags: [] clear the daydate, note, tags

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-mcp
import { 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, then remove_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

  1. Download the repository
  2. Point to local copy in your mcp config
  3. Debugging:
YAZIO_USERNAME=X YAZIO_PASSWORD=X npx -y @modelcontextprotocol/inspector npx <local-path>/yazio-mcp

Releasing

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 npm beta: npx yazio-mcp@beta.
  • Stable: run npm run release:prepare -- X.Y.Z, commit and merge, then publish the stable draft with tag vX.Y.Z. It goes to npm latest and the MCP Registry.

๐Ÿ“„ License

MIT License - see LICENSE file for details.

Reviews

No reviews yet

Be the first to review this server!