groowooth

groowooth

MCP server that enables AI agents to assess child growth, plot growth curves, and interpret z-scores using WHO and China NHC standards.

Category
访问服务器

README

groowooth

开源儿童成长曲线工具——支持 WHO + 中国卫健委标准,自带 AI agent 接入。 Open-source child growth curve toolkit — WHO + China NHC standards, with native AI agent (MCP) integration.

CI tests license status

🚀 在线试用 / Try it nowhttps://groowooth.pages.dev

是什么

家长用浏览器记录孩子身高/体重/头围,按 WHO 2006/2007中国卫健委 WS/T 423-2022 标准看百分位曲线。数据本地存(IndexedDB),零账号、零云、零广告。

同时提供 MCP server,让 Claude Desktop / Cursor / Cline 等 AI 客户端可以直接调用「评估生长」「画曲线」「解读 z-score」三个工具。

截图

<table> <tr> <td align="center"><img src="docs/screenshots/dashboard-desktop.png" alt="桌面端 Dashboard" width="640" /></td> <td align="center"><img src="docs/screenshots/dashboard-mobile.png" alt="移动端 Dashboard" width="240" /></td> </tr> <tr> <td align="center"><sub>桌面:4 张曲线 + 最近一次记录的统计解读 + 标准切换</sub></td> <td align="center"><sub>移动:单列布局,PWA 可安装</sub></td> </tr> </table>

三层架构

@groowooth/core   纯 TS 计算库 + 标准数据,零 runtime deps(除 zod)
                  WHO 2006/2007 用 LMS Box-Cox;NHC 2022 用 SD 表分段线性内插
       ↑                          ↑
       │                          │
@groowooth/web              @groowooth/mcp
React + Vite                Node + @modelcontextprotocol/sdk
IndexedDB 本地存             stdio transport,3 个 tool
家长用                       AI agent 用

快速开始

先决条件

  • Node.js 18+
  • pnpm 10+

装依赖 + 跑

pnpm install

# 网页(开发模式,http://localhost:5173)
pnpm dev:web

# 网页(生产构建)
pnpm build:web

# 跑全部测试
pnpm test

# 单独构建核心库
pnpm --filter @groowooth/core build

# 构建 MCP server(产出 packages/mcp/dist/server.js)
pnpm --filter @groowooth/mcp build

接入 Claude Desktop

构建后在 Claude Desktop 配置文件加:

{
  "mcpServers": {
    "groowooth": {
      "command": "node",
      "args": ["/path/to/groowooth/packages/mcp/dist/server.js"]
    }
  }
}

然后在 Claude 里直接说「我家娃 24 个月,身高 86 cm,体重 12 kg,按卫健委标准评估一下」即可。

核心 API

所有标准数据都是按需懒加载的。自 v0.1.0 起,核心 API 全部为 async;如果页面首屏一定会用到某个标准,可在 mount 时先 await loadStandard('nhc-2022') 预热。

import { assess, interpret, loadStandard, lookup, renderChart } from '@groowooth/core'

await loadStandard('nhc-2022')

// 评估
const result = await assess({
  ageMonths: 24,
  sex: 'female',
  heightCm: 86,
  weightKg: 12,
  standard: 'nhc-2022',
})
// → { assessments: [...], standard, standardVersion, disclaimer }

// 查曲线数据
const curves = await lookup({
  standard: 'who-2006',
  indicator: 'height-for-age',
  sex: 'male',
  xRange: [0, 60],
  percentiles: [3, 15, 50, 85, 97],
})

// 渲染 SVG
const svg = await renderChart({
  standard: 'nhc-2022',
  indicator: 'height-for-age',
  sex: 'female',
  measurements: [{ x: 24, value: 86 }],
})

// 中文统计描述(无临床建议)
const text = await interpret({
  zScore: 0.31,
  indicator: 'height-for-age',
  sex: 'female',
  ageMonths: 24,
})

设计原则

  1. 一件事:只做曲线,不做喂奶/睡眠/辅食/疫苗/社区
  2. 不诊断:v1 只输出统计描述("位于第 62 百分位"),不输出"矮小/肥胖/正常"等临床词;每个返回带 disclaimer
  3. 本地优先:web 用 IndexedDB;MCP stateless(数据由调用方传,服务端 0 儿童数据)
  4. 多端共享同一份逻辑:web 和 mcp 都消费 @groowooth/core
  5. 足月儿假设:v1 不支持早产儿矫正与 Fenton;v1.1 roadmap

标准数据来源

公有数据,无版权问题。

路线图

v0.x(当前)

  • ✅ core: LMS + SD-table + assess/lookup/interpret/chart-svg
  • ✅ web: 单孩子录入 + 4 张曲线
  • ✅ mcp: 3 个 tool,Claude Desktop 可接入

v1.0(下一站)

  • [x] 多孩子 UI、JSON 导入导出
  • [x] 标准切换 UI(NHC ⟷ WHO 2006 ⟷ WHO 2007)
  • [x] PWA 离线可用
  • [x] CI/CD(GitHub Actions)
  • [x] Bundle size 优化:主包 25 kB,标准数据按需懒加载
  • [x] Cloudflare Pages 部署:https://groowooth.pages.dev
  • [ ] 自定义域名
  • [ ] npm 发布 @groowooth/core + @groowooth/mcp

v1.1+

  • [ ] 早产儿矫正 + Fenton 2013 标准
  • [ ] zh-TW / zh-HK / en UI
  • [ ] R anthro golden value 容差校验(目前用 vitest 内置 fixture)
  • [ ] MCP HTTP transport(stdio 之外)
  • [ ] PDF 报告导出

免责声明

本工具仅为统计可视化,不构成医疗建议。如对孩子生长发育有疑虑,请咨询儿科医生。

License

MIT © 2026 yuxuan

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选