MCP server for Cronometer β food logs, macros, and micronutrient tracking
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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).
Or install from source:
Or add them to a .env file in your project root (if your MCP client supports it).
.mcp.json)claude_desktop_config.json)If you installed from source with pip install -e ., you can also use the full Python path:
| Tool | Description |
|---|---|
get_food_log | Individual food entries with macros + micros for a date range |
get_daily_nutrition | Daily macro totals (calories, protein, carbs, fat, fiber) |
get_micronutrients | Detailed vitamin/mineral breakdown with period averages |
export_raw_csv | Raw CSV export for any data type (servings, exercises, biometrics, etc.) |
| Tool | Description |
|---|---|
search_foods | Search the Cronometer food database |
list_diary_groups | List this account's diary groups and the values diary_group accepts |
get_food_details | Get full nutrition info and serving measure IDs for a food |
add_food_entry | Add a food entry to the diary |
remove_food_entry | Remove a food entry from the diary |
copy_day | Copy all diary entries from one date to another |
set_day_complete | Mark a diary day as complete or incomplete |
| Tool | Description |
|---|---|
get_repeated_items | List all recurring food entries |
add_repeat_item | Add a recurring food entry that auto-logs on selected days |
delete_repeat_item | Delete a recurring food entry |
| Tool | Description |
|---|---|
get_macro_targets | Get daily macro targets (or full weekly schedule with target_date="all") |
set_macro_targets | Update daily macro targets (partial updates supported) |
list_macro_templates | List all saved macro target templates |
create_macro_template | Create a new saved macro target template |
set_weekly_macro_schedule | Assign a template to days of the week as the recurring default |
| Tool | Description |
|---|---|
get_fasting_history | View all fasts or fasts within a date range |
get_fasting_stats | Aggregate fasting statistics (total hours, longest, averages) |
cancel_active_fast | Cancel an in-progress fast while preserving the recurring schedule |
delete_fast | Delete a fast entry |
| Tool | Description |
|---|---|
get_recent_biometrics | Get recently logged biometric entries |
add_biometric | Log weight (lbs), blood glucose (mg/dL), heart rate (bpm), or body fat (%) |
remove_biometric | Remove a biometric entry |
| Tool | Description |
|---|---|
sync_cronometer | Download JSON exports + generate food-log.md to disk |
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 scheduleThe sync_cronometer tool saves files to ~/.local/share/cronometer-mcp/ by default. Override with the CRONOMETER_DATA_DIR environment variable:
Output files:
exports/servings_{start}_{end}.jsonexports/daily_summary_{start}_{end}.jsonexports/servings_latest.jsonexports/daily_summary_latest.jsonfood-log.mdCronometer 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:
authenticate to get a user IDgenerateAuthorizationToken for short-lived export tokensSession 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).
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):
7B121DC5483BF272B1BC1916DA9FA9632D6A926E3729946302DC68073CB0D550If authentication starts failing with GWT errors, these values likely need updating. You can find the current values by:
cronometer.com/cronometer/appx-gwt-permutation header and the payload structureYou can override them via the CronometerClient constructor:
You can also use the client directly in Python:
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/cronometer)<a href="https://allmcps.com/mcp/cronometer"><img src="https://allmcps.com/api/badge/cronometer?style=directory" alt="Cronometer on AllMCPs" /></a>