a207-nutrition-assessment-mcp
This server provides MCP tools for comprehensive pediatric CKD nutrition assessment based on PRNT 2020 guidelines. You can:
Calculate daily energy and protein targets (
calc_prnt_targets) using age/sex-segmented calculations with adjustments for CKD stage, dialysis mode (peritoneal/hemodialysis), vegetarian diet (lacto-ovo/vegan multipliers), growth status (failure/overweight/normal), edema-corrected ideal body weight, and peritoneal dialysis glucose energy deduction. Schofield cross-validation is included.Assess dietary intake vs. PRNT targets (
assess_intake_vs_target): Compare a patient's 3-day average intake to targets, returning energy/protein achievement rates, nutritional gaps, and PEW risk, with same edema/glucose adjustments.Manage food diaries: Insert or update entries (
upsert_food_diary, restricted to parent_assistant/child_companion roles) and retrieve aggregated 3-day summaries (get_food_diary_summary, read-only for all).Screen for Protein-Energy Wasting (PEW) risk (
assess_pew_risk): Independently assess risk (low/medium/high) with rationale, using intake vs. targets and optional serum albumin.Track PEW risk history (
record_pew_risk/get_pew_history): Persist and retrieve PEW risk trends (as per README).
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-assessment-mcpCalculate PRNT energy and protein targets for a 5yo girl with CKD on PD"
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-assessment-mcp-nfyy(M3 · 营养评估)
儿童 CKD 营养评估 MCP。对应 PCP 契约 nutrition_assessment 输出位,是 Wave 2 首个交付包。
PRNT 目标唯一权威引擎:M5 的目标计算工具已去重并入本包(Schofield 交叉校验 / 水肿理想体重校正 / 腹透葡萄糖供能扣减),全项目只有一把"尺子"。
权威标尺:PRNT 2020(Shaw V, et al. Pediatr Nephrol 35:519-531)——与用户提供的《PRNT指南:能量与蛋白质需求及营养处方实操》一致。
工具清单
工具 | 类型 | 权限 | 说明 |
| 读 | 全 caller | PRNT 唯一权威引擎。按年龄×性别分段 SDI 计算每日能量/蛋白质目标(含 CKD 分期/透析/素食/生长状态);并吸收 M5 特性: |
| 读 | 全 caller | 对照 PRNT 目标评估 3 日饮食日记均值,给达成率、缺口、PEW 风险 |
| 写 | parent_assistant / child_companion(MX-3) | 写入饮食条目并聚合 |
| 读 | 全 caller | 读取并聚合某患者饮食日记 |
| 读 | 全 caller | 独立 PEW(蛋白质-能量消耗)风险筛查 |
| 读 | 全 caller | 增长 Z 评分(中国卫健委标准,非 WHO)。按 WS/T 423-2022(7 岁以下 体重/身高/BMI 年龄别 SD)+ WS/T 612-2018(7-18 岁身高年龄别)计算 HAZ/WAZ/BAZ:Z=(实测-中位数)/SD,SD 由标准附录给出。HAZ 0-18 岁全覆盖;WAZ/BAZ 仅 <7 岁(7-18 体重/BMI 标准未提供则跳过并 warning)。返回 5 等级 + 营养状况分类,并给 PRNT |
| 写 | 编排层(orchestrator/医生/营养) | PEW 历史落库(ADR-007)。每次 |
| 读 | 全 caller | 读取 PEW 历史(ADR-007)。返回按日期升序的历史点 + 趋势(improving/worsening/stable/no_data),供 M9 报告与 M4 聚合时间线 |
PEW 历史归属(ADR-007):
assess_pew_risk是 M3 的产出,其历史时间线由 M3 拥有并落库(data/pew_history_store.json,按 patient_id 追加);M4 的get_pew_history仅作聚合 facade,从 M3 读取,零跨包 import。详见docs/decisions/ADR-007.md。
Related MCP server: MedCalc MCP Server
关键口径(与 contracts/pcp-schema.json 一致)
能量 kcal、蛋白 g、体重 kg、身高 cm;无跨包调用。
能量初始 = SDI 100%:生长不良取上限、超重取下限、正常取中点。
蛋白质:目标取 SDI 上限;绝对下限取 SDI 下限(绝不可低于);透析额外补充(PD 0.15–0.30 / HD 0.10 g/kg/day)叠加于目标与下限;素食按倍数上调(蛋奶素 1.2 / 纯素 1.3)。
PE 比:理想 7–12%,CKD 可接受 5.3–6.4%(需总蛋白 ≥100% 需求)。
验证
python -m py_compile src/a207_nutrition_assessment_mcp/*.py
python tests/test_tools.py # 83 断言全过运行与部署
本地开发(最快验证)
fastmcp dev src/a207_nutrition_assessment_mcp/server.py无需打包,直接起 stdio 服务,适合本地联调。
发布到 PyPI(与 his / lis / calc / router 完全同流程)
本项目 5 个 MCP 全部发布到 PyPI(维护者 NFYY)。发布后裸 uvx <包名> 即可拉取,
GitHub Codespace / ModelScope 部署同理。报 uvx ... was not found in the package registry
唯一原因就是该版本还没发到 PyPI——把包构建并上传即可,和其他 4 个包一模一样。
命名说明:本包 PyPI 发行名是
a207-nutrition-assessment-mcp-nfyy(带-nfyy后缀), 不是a207-nutrition-assessment-mcp——后者在 PyPI 上已被他人占用(极小概率撞名),故加-nfyy规避。 Python 导入名仍为a207_nutrition_assessment_mcp(不变),仅发行名 / 控制台脚本名带后缀。 其余 4 个包名未被占用,故无后缀。
# 1. 构建 sdist + wheel(产物落 dist/)
python -m build
# 2. 校验产物可上传(应 PASSED)
python -m twine check dist/*
# 3. 上传到 PyPI(需 NFYY 凭据:环境变量 PYPI_API_TOKEN 或 ~/.pypirc)
python -m twine upload dist/*用 uvx 运行(已发布后 —— 与另外 4 个一致)
uvx a207-nutrition-assessment-mcp-nfyy # 裸名,和 his/lis/calc/router 一样
uvx --refresh a207-nutrition-assessment-mcp-nfyy # 强制刷新、重拉最新版本地 / 离线开发(不发布也能跑,仅开发用)
包目录内直接跑:
uvx --from . a207-nutrition-assessment-mcp-nfyy或装成本地工具后裸名可用:
uv tool install --from . a207-nutrition-assessment-mcp-nfyy
GitHub / ModelScope 等远程部署
远程环境用已发布的 PyPI 包最直接(裸 uvx a207-nutrition-assessment-mcp-nfyy);
若想锁定 git 源,可用:
uvx --from "git+https://github.com/<owner>/<repo>.git" a207-nutrition-assessment-mcp-nfyy确保 <repo> 指向本包仓库(根目录含 pyproject.toml),不要指向 A207 大仓根目录。
已知缺口(非阻断)
增长 Z 评分已按中国卫健委标准实现(WS/T 423-2022 + WS/T 612-2018,数据资产
data/growth_ref_cn.json由 PDF 抽取生成)。未采用 WHO 2007(用户判定偏旧)——若未来需 WHO 口径,再补 LMS 参考表。WAZ/BAZ 仅覆盖 7 岁以下:WS/T 423 随附 7 岁以下体重/BMI 年龄别 SD 值;7-18 岁体重/BMI 标准未提供,故 7 岁以上跳过并给出 warning(未编造数据)。
本机未安装 fastmcp,
server.py仅py_compile静态校验,未实跑 stdio 服务。
Maintenance
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
- AlicenseNot gradedqualityDmaintenanceProvides access to 56 professional medical calculators covering multiple specialties including cardiovascular, renal, hepatic, respiratory, and critical care assessments. Enables healthcare professionals to perform evidence-based calculations with detailed explanations and automatic unit conversions.11Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides 59 clinical medical calculators and scoring tools for healthcare professionals and AI assistants, covering renal, cardiovascular, pulmonary, critical care, and other specialties.5MIT
- 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
- AlicenseAqualityCmaintenanceProvides deterministic parental guidance for children with chronic kidney disease, including food safety checks, lab report interpretation, and nutrient-aware food substitutions based on authoritative guidelines and the Chinese Food Composition Table.12MIT
Related MCP Connectors
Patient, meal plan, prescription, chart and anthropometry management for dietitians.
Patient, prescription, anthropometry, scheduling, chat and food diary management for dietitians.
MCP tools for Malawian food search, clinical nutrition calculators, and RAG-backed guidance.
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-assessment-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server