a207-nutrition-calc-mcp
This server provides specialized nutrition and food calculation tools for managing pediatric Chronic Kidney Disease (CKD). Capabilities include:
Food Nutrient Lookup: Query energy, protein, potassium, phosphorus, sodium per 100g and portion, with cooking adjustments and alerts for high levels.
Food Substitution: Recommend alternative foods from same category with constraints (e.g., low potassium, low phosphorus).
Household Measure Conversion: Convert between grams and household measures (bowl, palm, spoon) with nutrient content.
Dietary Intake Summary: Aggregate multi-day intake, compare against targets, and provide achievement rates and recommendations.
Phosphorus-to-Protein Ratio: Calculate mg phosphorus per gram protein to select low-phosphorus protein sources.
Peritoneal Dialysis Glucose Absorption: Estimate glucose absorbed from PD and its caloric contribution.
Drug-Nutrient Interaction Check: Alert on interactions between CKD medications (binders, vitamin D, diuretics, steroids, iron) and nutrients.
Nutrition Target Calculation (where available): Compute daily energy and protein targets for children with CKD according to PRNT 2020, adjusting for dialysis and edema.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@a207-nutrition-calc-mcpCalculate daily energy and protein targets for a 4-year-old CKD patient, 16 kg."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
a207-nutrition-calc-mcp
儿童慢性肾脏病(CKD)营养与食物计算 MCP 包,供 CKDNutri 项目的医生、营养师、家长三类智能体共用(M5 营养/食物计算器)。
依据:PRNT 2020(儿童 CKD 能量与蛋白 SDI)、Schofield 方程、腹膜透析葡萄糖吸收折算。
注意:本包不提供目标计算(原
calc_nutrition_target已去重,目标计算统一由 M3calc_prnt_targets作为唯一权威引擎)。本包定位为纯食物层(查养分/份量换算/替换/磷蛋白比/腹透葡萄糖/药食交互)。
单位口径
能量:kcal;蛋白/钾/磷/钠:g 或 mg(食物成分表以 mg/100g 计);血电解质:mmol/L
体重:kg;身高:cm;年龄:岁(内部按月龄插值)
Related MCP server: usda-fdc-mcp
七个工具
工具 | 说明 |
| 食物营养素查询,支持份量(碗/个/掌心/克)与烹饪降钾降磷处理,返回高钾/高磷/高钠警示 |
| 食物替换:低钾 / 低磷 / 低钠 / 低蛋白 / 等能量,优先同类食物候选 |
| 克 ↔ 家庭量具双向换算,附家长可感知锚点(鸡蛋/掌心瘦肉/牛奶/瓷勺油/碗饭) |
| 多日饮食汇总,对比目标给出能量/蛋白达成率与钾磷钠来源排序及建议 |
| 磷蛋白比(mg P/g 蛋白)计算,辅助低磷食物优选 |
| 腹膜透析葡萄糖吸收量(按留腹时长 × 转运特性),折算 kcal |
| 药物-营养素交互提示(磷结合剂、活性维 D、利尿剂、激素、铁剂等) |
目录结构
a207-nutrition-calc-mcp/
├── pyproject.toml
├── README.md
├── src/a207_nutrition_calc_mcp/
│ ├── __init__.py
│ ├── core.py # 7 工具门面(纯逻辑,无 MCP/pydantic 依赖)
│ ├── server.py # FastMCP >=2 服务定义(8 个 @mcp.tool)
│ ├── models.py # pydantic v2 入参模型(extra=forbid)
│ ├── constants.py # 参考表与阈值
│ ├── targets.py # 腹透葡萄糖吸收折算(目标计算已收归 M3)
│ ├── fooddb.py # 食物数据访问与分级
│ ├── measures.py # 家庭量具解析
│ ├── foods.py # 查询/替换/换算/磷蛋白比
│ ├── diary.py # 饮食汇总
│ ├── pharma.py # 药物-营养素交互
│ └── data/food_data.csv
└── tests/test_tools.py设计约束
不依赖、不 import 任何其它
a207-*包(纯计算,无写权限)结果可解释:返回 guideline 引用与规则依据
仅正向/边界/超时分支齐全,错误以
{"ok": false, "error": ...}形式返回
运行与测试
# 编译(server.py/models.py 依赖 fastmcp/pydantic,仅做语法校验)
python -m py_compile src/a207_nutrition_calc_mcp/*.py
# 纯标准库自测(core 逻辑不依赖 fastmcp/pydantic,可独立运行)
python tests/test_tools.py返回非零退出码表示存在失败用例。
启动 MCP 服务
pip install -e .
python -m a207_nutrition_calc_mcp.server
# 或
fastmcp dev src/a207_nutrition_calc_mcp/server.py
# 或(已注册 console script 后)
uvx --from . a207-nutrition-calc-mcpMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceThis MCP server generates individualized meal plans for children with chronic kidney disease (CKD) based on KDIGO 2024/PRNT 2020/KRCP 2025 guidelines, incorporating patient age, CKD stage, allergies, dietary culture, and diet diary analysis. It provides deterministic nutrient computations and tools for meal plan generation, food database lookup, and risk analysis.13MIT
- FlicenseAqualityCmaintenanceMCP server that provides food composition data from USDA FoodData Central, enabling search, nutrient lookups, and recipe nutrition calculations.4
- FlicenseAqualityBmaintenanceMCP server for pediatric CKD lab data, providing lab panel queries, critical value alerts, trend analysis, and write operations with role-based permissions.5
- FlicenseAqualityBmaintenanceRead-only MCP server providing pediatric CKD patient master data with tools for patient profiles, diagnosis, nutrition ceilings, guardian verification, and patient lists, designed for the CKDNutri project.5
Related MCP Connectors
MCP gateway federating 21 biomedical MCP servers behind one endpoint: gnomAD, ClinVar, HPO, VEP.
Patient, meal plan, prescription, chart and anthropometry management for dietitians.
MCP server for medicare-coverage
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ayeyouok/a207-nutrition-calc-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server