CC

cphoskins/cronometer-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

28 stars 16 forks 质量 87 趋势 14MIT

一个MCP(模型上下文协议)服务器,提供访问你的Cronometer营养数据。拉取详细的食物日志、每日宏观/微观摘要、管理日记条目、禁食、生物识别,以及......

概览

一个MCP(模型上下文协议)服务器,提供访问您的Cronometer营养数据。通过Claude、Cursor或任何兼容MCP的客户端,拉取详细的食物日志、每日宏观/微观摘要、管理日记条目、禁食、生物识别和重复食物。 (或任何支持网页登录的付费套餐)。 - — 包含完整宏量和微量营养素分解的单项食物条目 - — 每日热量、蛋白质、碳水化合物、脂肪和纤维总和 - — 详细的维生素/矿物质分解及月经平均值 - — 添加/删除食物条目,复制整天,标记天数完成 - — 创建、列出并删除自动在特定日期自动登录的重复项目 - 阅读/书写每日目标,创建模板,设置每周计划 - 查看历史和统计,取消或删除禁食 - - 记录并删除体重、血糖、心率、体脂 - — 食用量、每日总结、锻炼、生物识别或笔记 - - 下载 JSON 导出并生成 Markdown 食物日志 或者将它们添加到 .

概述(AI 翻译)

一个MCP(模型上下文协议)服务器,提供访问您的Cronometer营养数据。通过Claude、Cursor或任何兼容MCP的客户端,拉取详细的食物日志、每日宏观/微观摘要、管理日记条目、禁食、生物识别和重复食物。

需要Cronometer Gold账户(或任何支持网页登录的付费套餐)。

特色

  • 食品日志 — 包含完整宏量和微量营养素分解的单个食品条目
  • 每日营养——每日热量、蛋白质、碳水化合物、脂肪和纤维总量
  • 微量元素——详细的维生素/矿物质分解及时期平均值
  • 日程管理 — 添加/删除食物条目,复制整天,标记完成日期
  • 重复食物 — 创建、列出并删除重复项目,这些项目在选定日期自动记录
  • 宏目标 — 每日读写目标,创建模板,设定周计划
  • 禁食 — 查看历史和统计,取消或删除禁食
  • 生物识别 — 记录和去除体重、血糖、心率、体脂
  • 原始CSV导出 — 份量、每日摘要、练习、生物识别或笔记
  • 同步到磁盘 — 下载JSON导出文件并生成折扣食品日志

快速启动

1.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

cronometer-mcp

An MCP (Model Context Protocol) server that provides access to your Cronometer nutrition data. Pull detailed food logs, daily macro/micro summaries, manage diary entries, fasting, biometrics, and recurring foods — all from Claude, Cursor, or any MCP-compatible client.

Requires a Cronometer Gold account (or any paid tier that supports web login).

Features

  • Food log — individual food entries with full macro and micronutrient breakdown
  • Daily nutrition — daily calorie, protein, carb, fat, and fiber totals
  • Micronutrients — detailed vitamin/mineral breakdown with period averages
  • Diary management — add/remove food entries, copy entire days, mark days complete
  • Recurring foods — create, list, and delete repeat items that auto-log on selected days
  • Macro targets — read/write daily targets, create templates, set weekly schedules
  • Fasting — view history and stats, cancel or delete fasts
  • Biometrics — log and remove weight, blood glucose, heart rate, body fat
  • Raw CSV export — servings, daily summary, exercises, biometrics, or notes
  • Sync to disk — download JSON exports and generate a markdown food log

Quick Start

1. Install

pip install cronometer-mcp

Or install from source:

git clone https://github.com/cphoskins/cronometer-mcp.git
cd cronometer-mcp
pip install -e .

2. Set credentials

export CRONOMETER_USERNAME="[email protected]"
export CRONOMETER_PASSWORD="your-password"

Or add them to a .env file in your project root (if your MCP client supports it).

3. Configure your MCP client

Claude Code (.mcp.json)

{
  "mcpServers": {
    "cronometer": {
      "command": "cronometer-mcp",
      "env": {
        "CRONOMETER_USERNAME": "[email protected]",
        "CRONOMETER_PASSWORD": "your-password"
      }
    }
  }
}

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "cronometer": {
      "command": "cronometer-mcp",
      "env": {
        "CRONOMETER_USERNAME": "[email protected]",
        "CRONOMETER_PASSWORD": "your-password"
      }
    }
  }
}

If you installed from source with pip install -e ., you can also use the full Python path:

{
  "command": "/path/to/venv/bin/python",
  "args": ["-m", "cronometer_mcp.server"]
}

Read-only mode

Set CRONOMETER_READ_ONLY=1 (also accepts true or yes) in the server’s env to expose only the read tools. The 13 tools that change your Cronometer account are not registered at all, so the client never sees them: adding or removing food entries, macro targets, schedules and templates, fasts, biometrics, copy day, mark day complete, and repeat items. sync_cronometer stays available; it only writes files on your machine.

在 GitHub 查看完整 README

安装

docker run --rm -p 8000:8000 \
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "cronometer": { "command": "cronometer-mcp", "env": { "CRONOMETER_USERNAME": "[email protected]", "CRONOMETER_PASSWORD": "your-password" } } } }