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 分