
rwestergren/cronometer-api-mcp 是从 https://github.com/rwestergren/cronometer-api-mcp. 导入的 MCP 服务器候选
概览
rwestergren/cronometer-api-mcp 是从 https://github.com/rwestergren/cronometer-api-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
Claude.ai、ChatGPT和Grok的托管版本即将上线。 加入候补名单→
一个基于逆向工程的移动REST API构建的MCP(模型上下文协议)服务器,用于Cronometer营养追踪。
与 cronometer-mcp 不同,后者采用全面的 GWT-RPC 方法对抗 Cronometer 的网页后端,该服务器与 Cronometer Android 应用使用的相同 JSON REST API 通信——负载干净,端点稳定且有版本限制。
特色
- 食物日志 ——带有食物名称、数量、餐食组的日记条目
- 营养数据——每日宏观/微观总量及营养评分,含各营养素置信度
- 食物搜索 —— 搜索Cronometer食物数据库,获取详细营养信息
- 日程管理 ——添加/删除条目,复制日期,标记日期完成
- 自定义食品——创建带有自定义营养数据的食物
- 宏目标——阅读每周计划和保存模板
- Fasting —— 查看历史和汇总统计
- 生物识别——体重、体脂、心率及其他特定日期范围内的追踪指标
快速启动
1.安装UV
2.设置凭证
可选:双因素认证
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
cronometer-api-mcp
Hosted version for Claude.ai, ChatGPT, and Grok coming soon. Join the waitlist →
An MCP (Model Context Protocol) server for Cronometer nutrition tracking, built on the reverse-engineered mobile REST API.
Unlike cronometer-mcp, which takes a comprehensive GWT-RPC approach against Cronometer’s web backend, this server talks to the same JSON REST API used by the Cronometer Android app – with clean payloads and stable, versioned endpoints.
Features
- Food log – diary entries with food names, amounts, meal groups
- Nutrition data – daily macro/micro totals and nutrition scores with per-nutrient confidence
- Food search – search the Cronometer food database, get detailed nutrition info
- Diary management – add/remove entries, copy days, mark days complete
- Custom foods – create foods with custom nutrition data
- Macro targets – read weekly schedule and saved templates
- Fasting – view history and aggregate statistics
- Biometrics – weight, body fat, heart rate, and other tracked metrics over a date range
Quick Start
1. Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
2. Set credentials
export CRONOMETER_USERNAME="[email protected]"
export CRONOMETER_PASSWORD="your-password"
Optional: two-factor authentication
If the account has two-factor authentication enabled, /api/v2/login
answers TOTP_CODE_REQUIRED unless the request carries the current 6-digit
code. Give the server the base32 key that Cronometer showed when 2FA was set
up (the same key you scanned into your authenticator app) and it derives the
code itself at every login (RFC 6238, SHA-1, 30 s period):
export CRONOMETER_TOTP_SECRET="ABCD EFGH IJKL MNOP QRST UVWX YZ23 4567"
Spaces and lowercase are fine. Leave it unset for accounts without 2FA.
Optional: override the account timezone
Diary entries are stamped in your Cronometer account’s timezone, which the server reports at login. If that zone is wrong (for example, an older build had reset it) you can force a specific IANA zone without changing your account settings:
安装
uvx cronometer-api-mcp配置
{
"mcpServers": {
"cronometer": {
"command": "uvx",
"args": ["cronometer-api-mcp"],
"env": {
"CRONOMETER_USERNAME": "[email protected]",
"CRONOMETER_PASSWORD": "your-password",
"CRONOMETER_TOTP_SECRET": "your-base32-key",
"CRONOMETER_ACCOUNT_TZ": "America/Los_Angeles"
}
}
}
}