y

yazio-mcp

@fliptheweb/yazio-mcp
0 Stars 3 次浏览 fliptheweb 更新于 2026-08-23

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

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "yazio-mcp": {
      "args": [
        "yazio-mcp@0.0.12"
      ],
      "command": "npx"
    }
  }
}

可用工具 (5 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

tavily_search 14 个参数 需填 1 项

Search the web for current information on any topic. Use for news, facts, or data beyond your knowledge cutoff. Returns snippets and source URLs.

必填参数:query

tavily_extract 6 个参数 需填 1 项

Extract content from URLs. Returns raw page content in markdown or text format.

必填参数:urls

tavily_crawl 11 个参数 需填 1 项

Crawl a website starting from a URL. Extracts content from pages with configurable depth and breadth.

必填参数:url

tavily_map 8 个参数 需填 1 项

Map a website's structure. Returns a list of URLs found starting from the base URL.

必填参数:url

tavily_research 2 个参数 需填 1 项

Perform comprehensive research on a given topic or question. Use this tool when you need to gather information from multiple sources to answer a question or complete a task. Returns a detailed response based on the research findings.

必填参数:input

服务介绍

Yazio MCP Server

[!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

# ✨ 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:

{
  "mcpServers": {
    "yazio": {
      "command": "npx",
      "args": ["-y", "yazio-mcp"],
      "env": {
        "YAZIO_USERNAME": "your_email@emai.com",
        "YAZIO_PASSWORD": "your_password"
      }
    }
  }
}

# # Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json

# # Claude Code (CLI)

  • Create a file named .mcp.json in a folder
  • Run claude in that folder
  • Approve access to the MCP when Claude runs for the first time in that folder
  • Optional: check configured MCP servers with claude mcp list

# # Cursor

Add JSON in your Cursor MCP configuration file (~/.cursor/mcp.json)

# 💡 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

| Tool | Description | Key Parameters |
|- -- -- -|- -- -- -- -- -- --|- -- -- -- -- -- -- -- -|
| get_user_daily_summary | Get daily nutrition summary | date |
| get_user_consumed_items | Get food entries for a date | date |
| get_user_weight | Get weight data | - |
| get_user_exercises | Get exercise data | date |
| get_user_water_intake | Get water intake | date |
| get_user_goals | Get nutrition goals | - |
| get_user_settings | Get user preferences | - |
| search_products | Search food database | query |
| get_product | Get detailed product info | id |
| add_user_consumed_item | Add food to your log | productId, amount, date, mealType |
| add_user_water_intake | Add water intake entry (cumulative value in ml) | date, water_intake |
| remove_user_consumed_item | Remove food from log | itemId |

# Test Connection

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.

相关 MCP 服务