Yazio Mcp

io.github.fliptheweb由 GitHub 账号 fliptheweb 发布v0.0.15更新于 Oct 29, 2026

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

已验证STDIO仅桌面位置与生活数据与分析

概览

AI 生成的概览

非官方 MCP 服务器,让助手连接 Yazio 账号,读取营养、运动与体重数据,并记录饮食和饮水。

可以做什么
  • 读取个人资料、设置、饮食偏好与营养目标
  • 按日期或日期范围获取每日营养汇总、已摄入食物记录、饮水量、运动与体重数据
  • 搜索 Yazio 食物数据库并按 ID 获取产品详细信息
  • 添加或删除饮食记录,并按累计值记录饮水量
适用场景
适合已在 Yazio 记录饮食、希望让助手分析饮食模式、查询食物营养信息,或补录遗漏的餐食与饮水记录而无需打开应用的用户。
运行要求
通过 npx 在本地运行,需要 Node.js 18+ 和支持 MCP 的客户端。需要有效的 Yazio 账号,并设置 YAZIO_USERNAME 与 YAZIO_PASSWORD 环境变量;需能访问 Yazio 服务器。
安装前请注意
Yazio 账号凭据以环境变量形式传入,用于登录 Yazio 服务器。该服务器依赖非官方逆向工程 API,可能随时失效。它可添加和删除饮食记录并修改饮水量,写入会改动真实记录数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Yazio Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Yazio MCP Server [Yazio Logo]

[!IMPORTANT] This is not an official MCP server and Yazio does not provide an official API. This server uses an unofficial reverse-engineered API and may stop working at any time.

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

  • 🔐 Authentication - Connect with your Yazio account
  • 📊 Nutrition Analysis - Get comprehensive diet data and insights
  • 🍎 Food Tracking - Search, add, and manage food entries
  • 🏃‍♂️ Fitness Data - Track exercises and water intake
  • ⚖️ Weight Monitoring - View weight history and trends
  • 🎯 Goal Management - Access and manage nutrition goals
  • 🔍 Product Search - Search Yazio's extensive food database

🚀 Quick Start

Add the following JSON your MCP client configuration:

json
{  "mcpServers": {    "yazio": {      "command": "npx",      "args": ["-y", "yazio-mcp"],      "env": {        "YAZIO_USERNAME": "[email protected]",        "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)

bash
claude mcp add yazio -e [email protected] -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
get_user_daily_summaryGet daily nutrition summarydate
get_user_consumed_itemsGet food entries for a datedate
get_user_weightGet weight data-
get_user_exercisesGet exercise datadate
get_user_water_intakeGet water intakedate
get_user_goalsGet nutrition goals-
get_user_settingsGet user preferences-
search_productsSearch food databasequery
get_productGet detailed product infoid
add_user_consumed_itemAdd food to your logproductId, amount, date, mealType
add_user_water_intakeAdd water intake entry (cumulative value in ml)date, water_intake
remove_user_consumed_itemRemove food from logitemId

Test Connection

bash
YAZIO_USERNAME='your_email' YAZIO_PASSWORD='your_password' npx yazio-mcp

⚠️ Important Disclaimers

  • Unofficial API: This uses a reverse-engineered API that may break
  • Credentials: Your Yazio credentials are only used for auth on Yazio servers
  • Use at Your Own Risk: API changes could affect functionality

📋 Requirements

  • Node.js 18+ (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

📄 License

MIT License - see LICENSE file for details.

来源:README.md,提交 492696d

工具

15

get_user

Get Yazio user profile information

无需输入参数。

get_user_consumed_items

Get food entries for a specific date

输入参数date必填

get_user_dietary_preferences

Get user dietary preferences and restrictions

无需输入参数。

get_user_exercises

Get user exercise data for a date or date range

输入参数date

get_user_goals

Get user nutrition and fitness goals

无需输入参数。

get_user_settings

Get user settings and preferences

无需输入参数。

get_user_suggested_products

Get product suggestions for the user for a meal (daytime) on a date

输入参数datelimitdaytime

get_user_water_intake

Get water intake data for a specific date

输入参数date必填

get_user_weight

Get user weight data

无需输入参数。

get_user_daily_summary

Get daily nutrition summary for a specific date

输入参数date必填

search_products

Search for food products in Yazio database. You can optionally specify user's sex, country and locale of the products to search for.

输入参数sexquery必填localescountries

get_product

Get detailed information about a specific product by ID

输入参数id必填

add_user_consumed_item

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.

输入参数date必填amount必填daytime必填servingproduct_id必填serving_quantity

remove_user_consumed_item

Remove a food item from user consumption log

输入参数itemId必填

add_user_water_intake

Log a water intake entry. Requires date (YYYY-MM-DD HH:mm:ss format) and cumulative water_intake in milliliters (ml). Always get the latest water intake first and add the new amount to calculate the cumulative value.

输入参数date必填water_intake必填

版本历史

2
  1. v0.0.15最新Oct 23, 2026
  2. v0.0.13Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分