Skip to main content
Glama

NutriBalance MCP 服务器

一个免费、开源的 MCP 服务器,用于营养计算、膳食计划和营养缺乏分析 —— 由 NutriBalance 提供支持。

将此服务器连接到任何兼容 MCP 的 AI 助手(Claude Desktop、Cursor、Windsurf、Copilot 等),为其提供真正的营养智能。


工具

calculate_tdee

计算 TDEE、BMR 和个性化的每日宏量营养素目标。

输入: 体重 (kg)、身高 (cm)、年龄、性别、活动水平、目标(减脂/维持/增肌) 返回: BMR、TDEE、目标卡路里、蛋白质/碳水化合物/脂肪的目标克数

当有人询问每天摄入多少卡路里、他们的维持卡路里是多少,或者如何设置宏量营养素时使用。


lookup_nutrition

通过名称和份量查询任何食物的完整营养概况。

输入: 食物名称、数量(克,默认为 100g) 返回: 卡路里、蛋白质、碳水化合物、脂肪、纤维、钠、钙、铁、维生素 C/D、镁、钾、锌

当有人询问特定食物中的宏量营养素或微量营养素时使用。


generate_meal_plan

根据卡路里目标和饮食偏好生成全天膳食计划。

输入: 目标卡路里、目标(减脂/维持/增肌)、饮食偏好(标准/素食/纯素/生酮/高蛋白) 返回: 包含食物、份量、每餐宏量营养素和每日总计的 4 餐计划

当有人询问膳食计划或针对特定目标该吃什么时使用。


fix_deficiency

获取针对特定营养缺乏的行动计划。

输入: 营养素名称、可选性别、可选年龄 返回: RDI(每日推荐摄入量)、缺乏症状、6 种最佳食物及其份量、应避免的食物、补充剂建议、5 步行动计划

支持的营养素:铁、钙、维生素 C、维生素 D、镁、钾、锌、钠、纤维、蛋白质


nutrition_score

对一天的饮食进行 0-100 分的评分,并给出等级和改进优先级。

输入: 摄入/目标卡路里、摄入/目标蛋白质、碳水化合物、脂肪、可选纤维、可选蔬菜份数、可选饮水量 返回: 总分、各类别细分、等级、前 2 项改进优先级


Related MCP server: nutrients-mcp

使用方法

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "nutribalance": {
      "command": "npx",
      "args": ["-y", "nutribalance-mcp"]
    }
  }
}

HTTP (Vercel 部署)

POST https://nutribalance-mcp.vercel.app/mcp

标准的 MCP 可流式传输 HTTP 传输协议 —— 兼容任何 MCP 客户端。


本地开发

git clone https://github.com/CK-Boodhram/nutribalance-mcp
cd nutribalance-mcp
npm install
npm run dev

关于 NutriBalance

NutriBalance 是一款营养追踪应用程序(iOS 和 Android),用于记录膳食、追踪宏量和微量营养素,并提醒您注意营养缺乏。

在 App Store 或 Google Play 中搜索 "NutriBalance"。

Available Tools

5 tools
calculate_tdeeA
Read-onlyIdempotent

Calculate TDEE (Total Daily Energy Expenditure), BMR, and personalised daily macro targets (protein, carbs, fat) based on the user's stats and goal. Use this when someone asks how many calories they should eat, what their maintenance calories are, or how to set up their macros.

Inputs: weight_kg (required), height_cm (required), age (required), gender (required), +2 more.

fix_deficiencyA
Read-onlyIdempotent

Get a detailed action plan to fix a specific nutritional deficiency — including the best foods to eat (with serving sizes), foods to avoid, supplement advice, and deficiency symptoms. Use this when someone asks how to increase a specific nutrient, what to eat for a deficiency, or what causes low levels of a nutrient.

Inputs: nutrient (required), gender, age.

generate_meal_planA
Read-onlyIdempotent

Generate a full day meal plan (breakfast, lunch, snack, dinner) tailored to the user's calorie goal, dietary preference, and fitness goal. Use this when someone asks for a meal plan, what to eat for a goal, or how to structure their diet.

Inputs: target_calories (required), goal (required), dietary_preference.

lookup_nutritionA
Read-onlyIdempotent

Look up the full nutritional profile (calories, protein, carbs, fat, fibre, and key micronutrients) for any food by name and serving size. Use this when someone asks about the nutrition or macros in a specific food.

Inputs: food_name (required), amount_grams.

nutrition_scoreA
Read-onlyIdempotent

Calculate a nutrition quality score (0–100) for a day's eating based on macros and optional micronutrient data. Returns a breakdown by category, a letter grade, and actionable recommendations. Use this when someone wants to rate their diet, check if they're eating well, or get feedback on a day's meals.

Inputs: calories_eaten (required), calorie_target (required), protein_g (required), protein_target_g (required), +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct phase of nutrition management: calculating metabolic needs (calculate_tdee), retrieving food data (lookup_nutrition), creating eating plans (generate_meal_plan), addressing specific health issues (fix_deficiency), and evaluating dietary quality (nutrition_score). No functional overlap exists between tools.

    Naming Consistency4/5

    Four tools follow a clear verb_noun pattern (calculate_tdee, fix_deficiency, generate_meal_plan, lookup_nutrition) using snake_case. However, nutrition_score breaks the pattern by placing the noun first, creating a minor inconsistency in an otherwise uniform convention.

    Tool Count5/5

    Five tools is an ideal scope for a focused nutrition server, covering the essential workflows (calculation, lookup, planning, deficiency correction, and evaluation) without bloat or unnecessary fragmentation.

    Completeness4/5

    The surface covers the core nutrition lifecycle well: determining needs, sourcing foods, planning meals, correcting deficiencies, and scoring intake. A minor gap exists in exploratory discovery (e.g., searching for foods by nutrient criteria rather than by name), though fix_deficiency partially addresses this for specific nutrients.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Give your AI assistant the ability to analyze food images and look up nutrition data for any food — calories, macros, vitamins, minerals, allergens, and dietary flags in under 1 second — powered by TastyAPI. Much faster and more accurate than Gemini and GPT-4 Vision (4-10 seconds).
      2
      36 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables nutrition tracking via AI, allowing users to read food logs with macros, goals, and profile, log meals by text or photo, and access diary, subscription, diabetes, and wearable/glucose data.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI agents and LLMs to retrieve precise food chemistry and nutrition data from USDA, Open Food Facts, and IFCT, evaluate recipes, optimize macros, look up barcodes, and detect ultra-processed foods through MCP tools.
      9
      MIT