原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Cronometer

作者:cphoskins版本 2.4.2i★ 28i在你的电脑上运行
注册名称io.github.cphoskins/cronometer

安装方法

概览

作者提供的说明(英文原文)

MCP server for Cronometer — food logs, macros, fasting, biometrics, and recurring foods

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 游戏、体育、美食与学习
  • 你需要填写:CRONOMETER_USERNAME, CRONOMETER_PASSWORD

安装

选择你使用的 AI 应用,然后复制设置。

通过 2/2 项检查 · 在你的电脑上运行

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 Cronometer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

  2. 注册并创建 Cronometer 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。

    获取密钥的方法见下方开发者的 README

  3. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  4. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "cronometer": {
          "command": "uvx",
          "args": [
            "cronometer-mcp"
          ],
          "env": {
            "CRONOMETER_USERNAME": "your-value",
            "CRONOMETER_PASSWORD": "your-value",
            "CRONOMETER_DATA_DIR": "your-value"
          }
        }
      }
    }

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 退出 Claude 再重新打开

  6. 试一试

    用 Cronometer 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Cronometer,或回答中出现 Cronometer 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Cronometer

Cronometer 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Cronometer 的应用

  • 需要 Cronometer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 Cronometer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)
  • 需要 Cronometer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)
  • 需要 Cronometer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)

B · 游戏、体育、美食与学习 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 Cronometer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

  2. 注册并创建 Cronometer 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。

    获取密钥的方法见下方开发者的 README

  3. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  4. 粘贴这条命令并按 Enter

    claude mcp add cronometer --env CRONOMETER_USERNAME=your-value --env CRONOMETER_PASSWORD=your-value --env CRONOMETER_DATA_DIR=your-value -- uvx cronometer-mcp

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Claude Code 中输入 /mcp

    应能看到 Cronometer 在列表中并显示已连接

  6. 试一试

    用 Cronometer 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Cronometer,或回答中出现 Cronometer 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 Cronometer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

  2. 注册并创建 Cronometer 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。

    获取密钥的方法见下方开发者的 README

  3. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Cronometer 的设置中,CRONOMETER_USERNAME, CRONOMETER_PASSWORD, CRONOMETER_DATA_DIR 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Cursor 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Cronometer 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Cronometer,或回答中出现 Cronometer 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 Cronometer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

  2. 注册并创建 Cronometer 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。

    获取密钥的方法见下方开发者的 README

  3. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Cronometer 的设置中,CRONOMETER_USERNAME, CRONOMETER_PASSWORD, CRONOMETER_DATA_DIR 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 VS Code 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Cronometer 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Cronometer,或回答中出现 Cronometer 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Cronometer 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add cronometer --env CRONOMETER_USERNAME=your-value --env CRONOMETER_PASSWORD=your-value --env CRONOMETER_DATA_DIR=your-value -- uvx cronometer-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "cronometer": {
      "command": "uvx",
      "args": [
        "cronometer-mcp"
      ],
      "env": {
        "CRONOMETER_USERNAME": "your-value",
        "CRONOMETER_PASSWORD": "your-value",
        "CRONOMETER_DATA_DIR": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "cronometer": {
      "command": "uvx",
      "args": [
        "cronometer-mcp"
      ],
      "env": {
        "CRONOMETER_USERNAME": "your-value",
        "CRONOMETER_PASSWORD": "your-value",
        "CRONOMETER_DATA_DIR": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "cronometer": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "cronometer-mcp"
      ],
      "env": {
        "CRONOMETER_USERNAME": "your-value",
        "CRONOMETER_PASSWORD": "your-value",
        "CRONOMETER_DATA_DIR": "your-value"
      }
    }
  }
}

需要你填写的值

  • CRONOMETER_USERNAME 必填 env
    Your Cronometer account email
  • CRONOMETER_PASSWORD 机密 必填 env
    Your Cronometer account password
  • CRONOMETER_DATA_DIR env
    Directory for sync output (defaults to ~/.local/share/cronometer-mcp/)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
559/周
许可证i
未注明许可证
连接方式
在你的电脑上运行
最新版本i
2.4.2
发布到注册中心i
2026年11月1日
代码最后更新i
2026年11月1日
作者
cphoskins
软件包
pypi: cronometer-mcp
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 cphoskins 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于10天前

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

使用 Google 登录后发帖

用户评价

还没有评价

用 Google 登录后写评价

与“游戏、体育、美食与学习”中的其他服务器比较i

  • 星标数多于此分类中其他 1374 个服务器的 97%
  • 发布到注册中心的时间比此分类中其他 1374 个服务器的 75% 更新
  • 基础检查结果等于或优于此分类中其他 1374 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Cronometer 安全吗?

它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:CRONOMETER_USERNAME, CRONOMETER_PASSWORD

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于10天前,最新版本(2.4.2)于10天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Honcho, ShipSwift, Pm Claude Skills

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Honcho

Memory that reasons: continual learning for stateful agents. Better context, fewer tokens.

作者:plastic-labs广泛使用★ 80503个月前更新

在云端运行

ShipSwift

40+ production-ready SwiftUI recipes for building full-stack iOS apps via MCP.

作者:signerlabs广泛使用★ 32659个月前更新

在云端运行

Pm Claude Skills

1310 professional Agent Skills + workflow recipes — searchable & fetchable over MCP.

作者:mohitagw15856广泛使用↓ 2542/周★ 153819天前更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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="your@email.com"

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": "your@email.com", "CRONOMETER_PASSWORD": "your-password" } } } }

Claude Desktop (claude_desktop_config.json)
{

"mcpServers": { "cronometer": { "command": "cronometer-mcp", "env": { "CRONOMETER_USERNAME": "your@email.com", "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.

This limits what the server offers, not what your credentials can do. Cronometer has no read-only login, so the password in env still has full access to the account.

Remote access (streamable HTTP)

By default the server talks to its client over stdio. To run it on another machine or in a container, set CRONOMETER_TRANSPORT=streamable-http and it serves the MCP endpoint at http:// : /mcp instead.

VariableDefaultMeaning
CRONOMETER_TRANSPORTstdiostdio or streamable-http
CRONOMETER_HOST127.0.0.1Interface to bind. Use 0.0.0.0 inside a container.
CRONOMETER_PORT8000TCP port, 1 to 65535
CRONOMETER_ALLOWED_HOSTSunsetComma-separated Host header values clients may use, as host:port or host:*. Set it whenever the bind host is not loopback.

In Docker, against the published package, reachable as your-server on your network:

docker run --rm -p 8000:8000 \

-e CRONOMETER_USERNAME=your@email.com \ -e CRONOMETER_PASSWORD=your-password \ -e CRONOMETER_TRANSPORT=streamable-http \ -e CRONOMETER_HOST=0.0.0.0 \ -e CRONOMETER_ALLOWED_HOSTS=your-server:8000 \ python:3.12-slim sh -c "pip install -q cronometer-mcp && cronometer-mcp"

CRONOMETER_ALLOWED_HOSTS matters: the MCP SDK checks Host and Origin headers on its own only when bound to loopback. On any other bind it accepts every Host, which lets a web page you happen to open on the same network reach the server through DNS rebinding. With the allowlist set, requests whose Host or Origin is not on it get 421 or 403. Without it the server logs a warning at startup and runs anyway.

Then point the client at the URL. Claude Code (.mcp.json):

{

"mcpServers": { "cronometer": { "type": "http", "url": "http://your-server:8000/mcp" } } }

The endpoint has no authentication. Anyone who can reach the port can read and change the Cronometer account whose credentials the server holds. Keep it bound to 127.0.0.1, or put it on a network only you can reach (a VPN or Tailscale keeps strangers out; it does not stop the DNS rebinding case above, so set the allowlist as well) or behind a reverse proxy that authenticates. Adding CRONOMETER_READ_ONLY=1 narrows what a remote client can do, with the same caveat as above: the credentials themselves keep full access.

Available Tools

Food Log & Nutrition
ToolDescription
get_food_logIndividual food entries with macros + micros for a date range
get_daily_nutritionDaily macro totals (calories, protein, carbs, fat, fiber)
get_micronutrientsDetailed vitamin/mineral breakdown with period averages
export_raw_csvRaw CSV export for any data type (servings, exercises, biometrics, etc.)
Food Search & Diary Management
ToolDescription
search_foodsSearch the Cronometer food database
list_diary_groupsList this account's diary groups and the values diary_group accepts
get_food_detailsGet full nutrition info and serving measure IDs for a food
add_food_entryAdd a food entry to the diary
remove_food_entryRemove a food entry from the diary
copy_dayCopy all diary entries from one date to another
set_day_completeMark a diary day as complete or incomplete
Recurring Foods (Repeat Items)
ToolDescription
get_repeated_itemsList all recurring food entries
add_repeat_itemAdd a recurring food entry that auto-logs on selected days
delete_repeat_itemDelete a recurring food entry
Macro Targets & Templates
ToolDescription
get_macro_targetsGet daily macro targets (or full weekly schedule with target_date="all")
set_macro_targetsUpdate daily macro targets (partial updates supported)
list_macro_templatesList all saved macro target templates
create_macro_templateCreate a new saved macro target template
set_weekly_macro_scheduleAssign a template to days of the week as the recurring default
Fasting
ToolDescription
get_fasting_historyView all fasts or fasts within a date range
get_fasting_statsAggregate fasting statistics (total hours, longest, averages)
cancel_active_fastCancel an in-progress fast while preserving the recurring schedule
delete_fastDelete a fast entry
Biometrics
ToolDescription
get_recent_biometricsGet recently logged biometric entries
add_biometricLog weight (lbs), blood glucose (mg/dL), heart rate (bpm), or body fat (%)
remove_biometricRemove a biometric entry
Sync
ToolDescription
sync_cronometerDownload JSON exports + generate food-log.md to disk
Tool Parameters

All date parameters use YYYY-MM-DD format. Most tools default to today or the last 7 days when dates are omitted.

Key parameter patterns:

  • diary_group — a diary group name (case-insensitive) or a 0-based index. Cronometer Gold gives every account 8 diary group slots and lets you rename and enable them freely, so the names are account-specific and are *not* always Breakfast/Lunch/Dinner/Snacks. Call list_diary_groups to see yours. On an untouched account the four standard meals are indices 1–4 (index 0 is a slot that ships disabled). Unknown names, disabled groups, and out-of-range indices are rejected rather than silently defaulting — Cronometer itself accepts a bad index without complaint and the entry becomes unreachable.
  • days_of_week — "all", "weekdays", "weekends", or comma-separated day numbers (0=Sun through 6=Sat)
  • measure_id — pass 0 to use the universal gram-based measure (works for all food sources)
  • target_date — pass "all" on get_macro_targets to get the full weekly schedule
Sync Output

The sync_cronometer tool saves files to ~/.local/share/cronometer-mcp/ by default. Override with the CRONOMETER_DATA_DIR environment variable:

export CRONOMETER_DATA_DIR="/path/to/your/project/data/cronometer"

Output files:

  • exports/servings_{start}_{end}.json
  • exports/daily_summary_{start}_{end}.json
  • exports/servings_latest.json
  • exports/daily_summary_latest.json
  • food-log.md

How It Works

Cronometer does not have a public API for individual users. This server uses the same GWT-RPC (Google Web Toolkit Remote Procedure Call) protocol that the Cronometer web app uses internally:

  1. Fetches the login page to get an anti-CSRF token
  2. POSTs credentials to authenticate
  3. Calls GWT-RPC authenticate to get a user ID
  4. Calls GWT-RPC generateAuthorizationToken for short-lived export tokens
  5. Downloads CSV exports using the token
  6. Calls GWT-RPC methods directly for diary edits, fasting, biometrics, macro targets, and repeat items

Session cookies are persisted to ~/.local/share/cronometer-mcp/.session_cookies so that subsequent invocations reuse the session without re-authenticating (Cronometer has aggressive login rate limiting).

GWT Magic Values

The GWT protocol uses a permutation hash and header value that are baked into each Cronometer web deploy. These values are hardcoded in the client and may break when Cronometer pushes a new build.

Current values (as of February 2026):

  • Permutation: 7B121DC5483BF272B1BC1916DA9FA963
  • Header: 2D6A926E3729946302DC68073CB0D550

If authentication starts failing with GWT errors, these values likely need updating. You can find the current values by:

  1. Opening Cronometer in your browser
  2. Going to Developer Tools → Network tab
  3. Looking for requests to cronometer.com/cronometer/app
  4. Checking the x-gwt-permutation header and the payload structure

You can override them via the CronometerClient constructor:

from cronometer_mcp import CronometerClient

client = CronometerClient( gwt_permutation="NEW_PERMUTATION_HASH", gwt_header="NEW_HEADER_VALUE", )

Python API

You can also use the client directly in Python:

from datetime import date, timedelta

from cronometer_mcp import CronometerClient

client = CronometerClient() # reads from env vars

Get today's food log

foods = client.get_food_log()

Get last 7 days of daily summaries

start = date.today() - timedelta(days=7) summaries = client.get_daily_summary(start)

Raw CSV export

csv_text = client.export_raw("exercises", start, date.today())

Copy a day's diary entries

client.copy_day(date(2026, 3, 1), date(2026, 3, 8))

Add a recurring food entry (every weekday)

client.add_repeat_item( food_source_id=12345, measure_id=0, # universal gram-based measure quantity=200, food_name="Oatmeal", diary_group=1, # 0-based wire index; 1 == Breakfast on a default account days_of_week=[1, 2, 3, 4, 5], )

Diary groups are user-configured - check

只显示了开头部分;其余内容请在仓库中阅读