io.github.rwestergren/cronometer-api-mcp
This MCP server lets you read and manage a Cronometer nutrition account through its mobile REST API.
Retrieve food logs for one day or up to 31 days, with full or compact details, meal groups, energy summaries, nutrition summaries, and optional food filtering.
Get daily macro/micronutrient totals and nutrition scores with per-nutrient confidence levels.
Search Cronometer foods and activities; get detailed food nutrition, serving sizes, and measure IDs.
Manage diary entries: add, update, remove foods, notes, exercises, and biometrics; copy previous days; mark days complete; choose diary meal groups.
Create, edit, and delete custom foods, including barcodes and extra nutrients.
Create, edit, import, and delete recipes or saved meals, including free-text recipe import.
Read and set macro targets, macro split, weight goal, and sodium range.
View fasting history and aggregate fasting stats.
List, get, and add biometric readings such as weight, body fat, heart rate, and other tracked metrics.
Use relative dates and multi-day ranges resolved in the account timezone; support 2FA and timezone overrides via environment variables.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.rwestergren/cronometer-api-mcp add an apple to my lunch diary"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: nutrition-mcp
Quick Start
1. Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh2. Set credentials
export CRONOMETER_USERNAME="your@email.com"
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:
export CRONOMETER_ACCOUNT_TZ="America/Los_Angeles"When set, this takes precedence over both the value reported at login and any cached session, so it also overrides a stale cached timezone.
3. Configure your MCP client
uvx downloads and runs the server on demand -- no separate install step.
OpenCode (opencode.json)
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"cronometer": {
"type": "local",
"command": ["uvx", "cronometer-api-mcp"],
"environment": {
"CRONOMETER_USERNAME": "{env:CRONOMETER_USERNAME}",
"CRONOMETER_PASSWORD": "{env:CRONOMETER_PASSWORD}",
"CRONOMETER_TOTP_SECRET": "{env:CRONOMETER_TOTP_SECRET}",
"CRONOMETER_ACCOUNT_TZ": "{env:CRONOMETER_ACCOUNT_TZ}"
},
"enabled": true
}
}
}Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"cronometer": {
"command": "uvx",
"args": ["cronometer-api-mcp"],
"env": {
"CRONOMETER_USERNAME": "your@email.com",
"CRONOMETER_PASSWORD": "your-password",
"CRONOMETER_TOTP_SECRET": "your-base32-key",
"CRONOMETER_ACCOUNT_TZ": "America/Los_Angeles"
}
}
}
}Available Tools
Food Log & Nutrition
Tool | Description |
| Diary entries for a date, each enriched with food name, source, serving measure/count, that food's per-entry nutrient contribution, and the diary group (meal slot) it sits in, plus an energy_summary (target/consumed/remaining kcal) and a nutrition_summary of consumed totals for every tracked nutrient. |
| Consumed macro and micronutrient totals for every nutrient tracked in Cronometer |
| Category scores (Vitamins, Minerals, etc.) with per-nutrient consumed amounts and confidence levels |
Food Search & Details
Tool | Description |
| Search the Cronometer food database by name |
| Full nutrition profile and serving sizes for a food |
Diary Management
Tool | Description |
| The account's diary groups (meal slots) and their names, for interpreting the group in each entry's |
| Log a food serving to the diary, optionally at a given time of day |
| Change a logged entry's amount or measure, or move it to another diary group |
| Remove one or more diary entries: foods, exercises, notes or biometrics |
| Create a custom food with specified nutrition and optional barcodes |
| Edit a custom food in place: name, nutrition, serving size, or barcodes |
| Retire a custom food so it leaves search and the Custom Foods list (existing diary entries are kept) |
| Delete a recipe or saved meal: retired by default (diary entries are kept), or permanently, which also removes the diary entries that logged it |
| Create a recipe from existing foods referenced by ID and gram weight |
| Edit a recipe in place: name, ingredients and amounts, serving size, or notes; nutrition is recalculated |
| Create a recipe from a free-text ingredient list; Cronometer matches each line to a database food and converts the amount to grams |
| Copy all entries from the previous day |
| Mark a diary day as complete or incomplete |
| Add a note to a diary day, optionally at a given time of day |
| Replace the text of a diary note |
Targets & Tracking
Tool | Description |
| Find activities to log as exercise, by name |
| Log an exercise with its duration and calories burned |
| Fixed-gram macro targets, weight goal, macro split (percent of energy), weekly macro schedule and saved target templates |
| Set protein / fat / net-carb targets in grams, the weekly weight goal (which moves the calorie target) and the sodium range; writes both the profile prefs and the per-nutrient target rows |
| Set the protein / carbs / fat split in percent of energy |
| Fasting history within a date range |
| Aggregate fasting statistics |
| List trackable biometric metrics and their units |
| Biometric time series (e.g. weight, body fat) within a date range |
| Record a biometric reading such as a weight or body fat |
All date parameters use YYYY-MM-DD format and default to today when omitted.
Diary groups
add_food_entry, add_note, and add_exercise accept diary_group="auto"
or an enabled group name from get_diary_groups. Names match ignoring case
and whitespace, in any language. Group 0 and Uncategorized are writable;
duplicate enabled names must be made distinct in Cronometer.
"auto" requires unique enabled groups named Breakfast, Lunch, Dinner, and
Snacks, in any positions. It picks by the entry's time in the account timezone
(time= for food and notes, or now). If any of those names is missing,
disabled, or ambiguous, choose an explicit group name. Missing profile prefs
use compatibility defaults; explicit names and visibility flags take precedence.
Python client callers: omit diary_group or pass None for automatic selection.
An integer, including 0, always selects that actual group number.
Relative dates and recent days
get_food_log, get_daily_nutrition, and get_nutrition_scores also accept
"today", "yesterday", and "N days ago" as their date. These are resolved
at call time using your Cronometer account timezone, so Claude can pass relative
inputs without relying on dates from earlier in a long conversation.
get_food_log and get_daily_nutrition accept days (1–31, default 1), counting
back from the inclusive end date:
get_food_log(date="yesterday")
get_nutrition_scores(date="3 days ago")
get_daily_nutrition(days=3) # Last 3 days, including today
get_daily_nutrition(date="yesterday", days=3) # Previous 3 complete calendar days
get_food_log(days=7) # Recent meals, including todayFor “my calories the last few days,” use get_daily_nutrition(days=3).
Single-day responses retain their existing shape. Multi-day responses contain
start_date, end_date, and a days list of daily results, oldest first.
Returned dates are always concrete YYYY-MM-DD values.
Transport
stdio only. For remote/hosted use, the stdio server is wrapped by
supergateway (see Dockerfile),
which owns the HTTP listener and exposes MCP streamable-HTTP at /mcp. The
server has no built-in authentication — any remote deployment must sit
behind an authenticating gateway or reverse proxy.
Development
For local development, copy .env.example to .env and fill in your credentials:
cp .env.example .env
# edit .env
uv run cronometer-api-mcpThe CLI auto-loads .env on startup (dev convenience only). Real environment variables always win over .env, so production deployments and MCP client env blocks are unaffected.
Releases
Open Actions → Release → Run workflow, select main, and choose patch (default), minor, or major. CI must have passed for the selected commit; if it is still running, wait for it to finish before starting the release.
The workflow increments the highest stable vX.Y.Z tag, tags the selected commit,
and creates a GitHub Release with generated notes. Prerelease tags are ignored.
For example, v0.2.7 becomes v0.2.8 for a patch or v0.3.0 for a minor release.
Release runs are serialized, and an already-released commit cannot be released again.
The release workflow then dispatches Publish to PyPI (including the MCP Registry)
and Build Docker image at the new tag. Check their separate runs for publishing
completion; a successful Release run only confirms they were dispatched. Version
fields in pyproject.toml and server.json are set from the tag during publishing.
This uses the built-in GITHUB_TOKEN and existing OIDC publishing configuration;
no PAT or GitHub App is needed. Explicit dispatch is necessary because releases
created with GITHUB_TOKEN do not trigger release: published workflows.
If dispatch or publishing fails, rerun the failed jobs in that workflow run rather than starting a new release. Existing PyPI uploads are skipped on retry so an MCP Registry failure can be retried. Manually published GitHub Releases also continue to trigger publishing.
How It Works
This server communicates with mobile.cronometer.com -- the same REST API used by the Cronometer Android/Flutter app. The API was reverse-engineered through:
Static analysis of
libapp.so(Dart AOT snapshot) from the APK to discover endpoint namesTraffic interception via Frida + mitmproxy to capture exact request/response formats
Trial-and-error against the live API to confirm payload shapes
The API uses two protocols:
v2 (
POST /api/v2/*) -- JSON-body auth, used for most operations (food search, diary read/write, nutrition, fasting, macros, biometrics)v3 (
DELETE /api/v3/user/{id}/*) -- Header-based auth (x-crono-session), used for diary entry deletion
Recipe import is the one asynchronous operation: import_recipe returns a job id, and poll_async_result is polled until the server reports 100% progress and attaches the parsed ingredients.
Python API
You can use the client directly:
from cronometer_api_mcp.client import CronometerClient
from datetime import date
client = CronometerClient()
# Search for foods
results = client.search_food("chicken breast")
# Get food details
food = client.get_food(results[0]["id"])
# Log a serving
client.add_serving(
food_id=food["id"],
measure_id=food["defaultMeasureId"],
grams=200,
)
# Get today's diary
diary = client.get_diary()
# Import a recipe from a free-text ingredient list
recipe = client.import_recipe("one hot dog\nketchup\nbun")
print(recipe["food_id"], recipe["ingredients"])
# Parse without saving, to review the matches first
preview = client.import_recipe("2 tbsp olive oil\n200g chicken", save=False)
# Get nutrition scores
scores = client.get_nutrition_scores()License
MIT
Available Tools
30 toolsadd_biometricA
Record a biometric reading such as a weight or body fat.
Use list_biometrics for metric_id and unit_id (e.g. Weight is metric_id 1 with unit_id 1 for kg; Body Fat is metric_id 8 with unit_id 13 for %). The reading appears in get_food_log's diary as a "Biometric" entry; remove_food_entry with its biometricId deletes it.
Args: metric_id: Numeric metric ID from list_biometrics. unit_id: Numeric unit ID from the metric's units; the amount is in this unit. amount: The reading. date: Date as YYYY-MM-DD (defaults to today).
Inputs: amount (required), unit_id (required), metric_id (required), date. Returns: result
add_custom_foodA
Create a custom food in Cronometer with specified nutrition.
Nutrient amounts should be for the full serving size specified. After creation, use the returned food_id with add_food_entry to log it.
Args: name: Food name. calories: Calories per serving (kcal). protein_g: Protein per serving (g). fat_g: Fat per serving (g). carbs_g: Carbs per serving (g). fiber_g: Fiber per serving (g, default 0). sugar_g: Sugar per serving (g, default 0). sodium_mg: Sodium per serving (mg, default 0). saturated_fat_g: Saturated fat per serving (g, default 0). extra_nutrients: Additional nutrients beyond the core macros above (vitamins, minerals, amino acids, etc.), keyed by Cronometer nutrient ID (from get_daily_nutrition, which pairs each id with its name) and valued per the full serving. IDs aren't validated, so a wrong one writes the wrong nutrient; must not reuse an ID the named macro args already cover. serving_name: Name for the serving size (default "1 serving"). serving_grams: Weight of one serving in grams (default 100). barcodes: Product barcodes (EAN-13, UPC-A, EAN-8, UPC-E or GTIN-14), e.g. the digits printed under the bars on the package; spaces and dashes are ignored. Scanning one of them in the Cronometer app then finds this food (search_foods does not match barcodes). The check digit is verified, so a misread digit is rejected rather than saved.
Inputs: name (required), fat_g (required), carbs_g (required), calories (required), +9 more. Returns: result
add_exerciseA
Log an exercise to the Cronometer diary.
Use search_activities to find activity_id. The calorie burn is not calculated for you: pass it (estimate it from the activity's MET value, the minutes and the user's weight if the user doesn't know it). The exercise appears in get_food_log's diary as an "Exercise" entry; remove_food_entry with its exerciseId deletes it.
Args: activity_id: Activity ID from search_activities. minutes: Duration in minutes. calories: Calories burned, as a positive number. date: Date as YYYY-MM-DD (defaults to today). diary_group: Meal slot: "auto" (default, picks by time of day) or the name of one of the account's diary groups, matched ignoring case and whitespace. "auto" requires unique enabled Breakfast, Lunch, Dinner and Snacks groups; otherwise choose an explicit name from get_diary_groups.
Inputs: minutes (required), calories (required), activity_id (required), date, +1 more. Returns: result
add_food_entryA
Add a food entry to the Cronometer diary.
Use search_foods to find food_id and measure_id, then get_food_details to confirm serving sizes and gram weights.
Args: food_id: Numeric food ID from search_foods results. measure_id: Measure/unit ID from get_food_details. grams: Weight of the serving in grams. date: Date to log as YYYY-MM-DD (defaults to today). translation_id: Translation ID from search results (usually 0). diary_group: Meal slot: "auto" (default, picks by time of day) or the name of one of the account's diary groups, matched ignoring case and whitespace. "auto" requires unique enabled Breakfast, Lunch, Dinner and Snacks groups; otherwise choose an explicit name from get_diary_groups. time: Time of day to log at, 24-hour HH:MM or HH:MM:SS in the account timezone (defaults to now). With diary_group "auto", this also picks the meal slot, so logging lunch late still lands in lunch.
Inputs: grams (required), food_id (required), measure_id (required), date, +3 more. Returns: result
add_noteA
Add a note to a diary day.
Notes show up in get_food_log's diary as entries of type "Note". Remove one with remove_food_entry and its noteId.
Args: text: The note text. date: Date as YYYY-MM-DD (defaults to today). diary_group: Meal slot the note sits in: "auto" (default, picks by time of day) or the name of one of the account's diary groups, matched ignoring case and whitespace. "auto" requires unique enabled Breakfast, Lunch, Dinner and Snacks groups; otherwise choose an explicit name from get_diary_groups. time: Time of day for the note, 24-hour HH:MM or HH:MM:SS in the account timezone (defaults to now). With diary_group "auto", this also picks the meal slot.
Inputs: text (required), date, time, diary_group. Returns: result
add_recipeA
Create a recipe in Cronometer from other foods in the database.
Unlike add_custom_food, which takes hand-entered nutrition, a recipe references existing foods by ID and Cronometer derives the full nutrient profile (including micronutrients) from those ingredients.
Use search_foods to find each ingredient's food_id. After creation, use the returned food_id with add_food_entry to log it.
Args: name: Recipe name. ingredients: List of {"food_id": int, "grams": float} objects, one per ingredient. An optional "measure_id" overrides the unit shown in Cronometer's UI; "grams" always drives the nutrition math. serving_name: Name of the default serving measure (default "Serving"). serving_grams: Grams in one serving. Defaults to the full batch weight (one serving = the whole recipe). comments: Free-text recipe notes.
Inputs: name (required), ingredients (required), comments, serving_name, +1 more. Returns: result
copy_dayA
Copy all diary entries from the previous day to the given date.
Additive -- does not remove existing entries on the destination date.
Args: date: Destination date as YYYY-MM-DD (defaults to today).
Inputs: date. Returns: result
delete_custom_foodADestructiveIdempotent
Delete a custom food (one you created) by retiring it.
The food disappears from search and from the Custom Foods list. Diary entries that already use it are kept, and get_food_details can still read it by ID. Database foods (USDA, NCCDB, CRDB, ...) and recipes cannot be deleted with this tool.
Args: food_id: ID of the custom food to delete.
Inputs: food_id (required). Returns: result
delete_recipeADestructiveIdempotent
Delete a recipe or saved meal that you created.
By default the recipe is retired, as the app does for a recipe that has been logged: it disappears from search and from the recipe and meal lists, and diary entries that already use it are kept.
permanent=True deletes it outright. This ALSO REMOVES THE DIARY ENTRIES that logged it. Use it only for a recipe that was never logged, or when the user has explicitly asked for those entries to go.
Plain custom foods are not accepted; use delete_custom_food for those.
Args: food_id: ID of the recipe or meal to delete. permanent: Delete outright instead of retiring (see above).
Inputs: food_id (required), permanent. Returns: result
get_biometricsARead-onlyIdempotent
Get a biometric time series such as weight or body fat from Cronometer.
Returns the recorded values over the date range as a list of {day, value} points.
Use list_biometrics to find metric_id and unit_id (e.g. Weight is metric_id 1, with unit_id 1 for kg or 2 for lbs).
Args: metric_id: Numeric metric ID from list_biometrics. unit_id: Numeric unit ID from the metric's units in list_biometrics. start_date: Start date as YYYY-MM-DD (defaults to 30 days ago). end_date: End date as YYYY-MM-DD (defaults to today).
Inputs: unit_id (required), metric_id (required), end_date, start_date. Returns: result
get_daily_nutritionARead-onlyIdempotent
Get consumed macro and micronutrient totals for one or more days.
Use days=N for calories/nutrients over the last N calendar days. Prefer relative inputs over dates calculated from conversation history.
Returns the amounts actually consumed for the day, covering every nutrient the user tracks in Cronometer (i.e. has a target set for). The response has:
summary: flat macro totals (energy, protein, carbs, net_carbs, fat, fiber, alcohol). A value is null if that macro isn't tracked.
nutrients: the full list of tracked nutrients, each with id, name, amount, unit, category, and confidence.
A nutrient only appears if it's tracked in Cronometer. To surface e.g. saturated fat, cholesterol, or trans fat, set a target for it in Cronometer and it will flow through automatically.
Args: date: Inclusive end date: YYYY-MM-DD, today, yesterday, or N days ago. Defaults to today in the account timezone, resolved at call time. days: Number of calendar days, 1–31 (default 1). Includes the end date; days=3 includes today, date='yesterday', days=3 excludes today.
One day returns date, summary, and nutrients. Multiple days return start_date, end_date, and a days list of those objects, oldest first.
Inputs: date, days. Returns: result
get_diary_groupsARead-onlyIdempotent
Get the account's diary groups (meal slots) and their names.
Group names are customizable, so "Lunch" is not always the same slot:
an account with extra groups such as "Post-workout" shifts every later
group. Use this to interpret entries from get_food_log, whose order
field carries the group in its upper bits (order >> 16):
group here is that number, so an entry with order 196609 is in group 3.
Returns each group as {group, pref, name, enabled}, in diary order. Group 0 is a regular slot whose name depends on the account. A group with enabled=false is hidden in the app but may still contain older entries.
Inputs: no named parameters. Returns: result
get_fasting_historyARead-onlyIdempotent
Get fasting history from Cronometer.
Returns fasts within the date range including status, timestamps, and duration.
Args: start_date: Start date as YYYY-MM-DD (defaults to 30 days ago). end_date: End date as YYYY-MM-DD (defaults to today).
Inputs: end_date, start_date. Returns: result
get_fasting_statsARead-onlyIdempotent
Get aggregate fasting statistics.
Returns total fasting hours, longest fast, average fast duration, and completed fast count.
Inputs: no named parameters. Returns: result
get_food_detailsARead-onlyIdempotent
Get detailed food information including nutrition and serving sizes.
Use this after search_foods to get the full nutrient profile and available measure_ids needed for add_food_entry.
Args: food_id: Food ID from search_foods results.
Inputs: food_id (required). Returns: result
get_food_logARead-onlyIdempotent
Get diary entries for one day or the last N calendar days.
Prefer relative inputs for relative questions, rather than dates calculated from conversation history. For calorie/nutrient totals without individual entries, prefer get_daily_nutrition(days=N).
Returns every food entry logged for the day. Each "Serving" entry is enriched (best-effort) with the food's name, source, serving_size, servings, and that food's own nutrient profile scaled to the amount eaten. Non-food entries (exercise, biometrics) carry their own name.
serving_size defines one portion: quantity units weighing grams in total. servings is how many of those portions were consumed. For example, serving_size={quantity: 2, unit: "cookies", grams: 30} with servings=1 means two cookies eaten; servings=0.5 means one cookie eaten. The size uses the entry's selected measure, or the food's default as a fallback. For serving-based recipes, serving_size.grams is null because the API uses reference-serving counts instead of gram weights. An invalid serving_size.quantity is reported as null.
Every diary entry carries diary_group: {group, name}, the meal slot it sits in (e.g. {"group": 4, "name": "Dinner"}). Group names are customizable per account, so read the meal from this field rather than inferring it from the entry's order or time. name is null for a group number the account doesn't define. See get_diary_groups for the full list.
A busy day in "full" detail can be ~170,000 characters, which can exceed a client's output limit. Use detail="compact" (and/or food_id) to keep the response small.
Note: the per-entry "nutrients" are each food's individual contribution, which is distinct from the day-level nutrition_summary aggregate below.
Also returns a top-level energy_summary field with pre-computed values most relevant to the user:
total_target_kcal: daily calorie target dynamically adjusted for expenditure and weight goal (equivalent to Cronometer's "Total Target" in the Energy Summary screen)
consumed_kcal: total calories consumed
remaining_kcal: calories remaining to stay on target (total_target_kcal - consumed_kcal). Always report this when summarizing the user's day. Prefer this over manually deriving values from the burn breakdown fields.
Also returns a nutrition_summary field with consumed totals for every nutrient the user tracks in Cronometer (macros plus any tracked micronutrients such as saturated fat, cholesterol, or omega-3/6):
macros: flat macro totals (energy, protein, carbs, net_carbs, fat, fiber, alcohol)
nutrients: the full list of tracked nutrients with amounts and units
Args: date: Inclusive end date: YYYY-MM-DD, today, yesterday, or N days ago. Defaults to today in the account timezone, resolved at call time. days: Number of calendar days, 1–31 (default 1). Includes the end date; days=3 includes today, date='yesterday', days=3 excludes today. detail: "full" (default) returns every entry as described above. "compact" replaces each diary entry with a small object without per-entry nutrient arrays: entry_id (the servingId, noteId, exerciseId or biometricId that remove_food_entry takes), type, name, food_id, measure_id, grams, servings, time, order (raw), diary_group ({group, name}, as above), kcal, protein_g, carbs_g, fat_g, sodium_mg. Notes also carry their text. grams is passed through as-is (null stays null; for serving-based recipes it is a serving count). Values that cannot be derived are null. energy_summary and nutrition_summary are unchanged. Applies to each day. food_id: Only entries for this Cronometer food ID (non-food entries are excluded). It narrows the diary list only; energy_summary and nutrition_summary still describe the whole day. Applies in both detail modes and to each day.
One day returns the usual date/diary/summaries. Multiple days return start_date, end_date, and a days list of those objects, oldest first.
Inputs: date, days, detail, food_id. Returns: result
get_macro_targetsARead-onlyIdempotent
Get current macro targets including weekly schedule and templates.
Returns fixed-gram targets, weight goal, sodium range, the macro split (percent of energy for protein, carbs and fat), the weekly macro schedule (which template applies to each day) and all saved macro target templates with their values. The split describes saved ratios, which are inactive in fixed-target or keto mode; shares are null when the ratio total is unknown or zero.
Inputs: no named parameters. Returns: result
get_nutrition_scoresARead-onlyIdempotent
Get nutrition scores with per-nutrient consumed amounts and category grades.
Returns category scores (All Targets, Vitamins, Minerals, Electrolytes, Antioxidants, Immune Support, Metabolism, Bone Health) with the actual consumed amount and confidence level for each tracked nutrient.
This is the richest nutrition endpoint -- use it when you need to know both how much of each nutrient was consumed AND how close each is to the target.
Args: date: YYYY-MM-DD, today, yesterday, or N days ago. Defaults to today in the account timezone, resolved at call time. Prefer relative inputs for relative questions over dates from conversation history.
Inputs: date. Returns: result
import_recipeA
Create a recipe from a free-text ingredient list.
Cronometer's "Import Recipe" feature: pass ingredients as plain text, one per line, and the server matches each to a food and converts the amount to grams. No need to call search_foods first.
Prefer this when the user describes ingredients in their own words. Use add_recipe instead when you have exact food_ids and gram weights -- e.g. the user confirmed specific foods from search_foods results.
Matching is fuzzy, so report the returned matches back to the user for confirmation. Unresolved lines are listed under "unmatched" and excluded from the recipe. This saves to My Foods; use add_food_entry to log it.
Args: ingredients: Ingredient lines separated by newlines, e.g. "2 tbsp olive oil\n200g chicken". Include quantities where known, since bare names can match surprising amounts. name: Recipe name. Defaults to a server-generated one.
Inputs: ingredients (required), name. Returns: result
list_biometricsARead-onlyIdempotent
List the biometric metrics tracked in Cronometer.
Returns every metric type the account can record (Weight, Body Fat, Heart Rate, Blood Glucose, Waist Size, Sleep, blood panels, body measurements, etc.). Use the metric_id and a unit_id from the results with get_biometrics.
Inputs: no named parameters. Returns: result
mark_day_completeAIdempotent
Mark a diary day as complete or incomplete.
Args: date: Date to mark as YYYY-MM-DD. complete: True to mark complete, False for incomplete.
Inputs: date (required), complete. Returns: result
remove_food_entryADestructiveIdempotent
Remove one or more entries from the Cronometer diary.
Works for every entry type in get_food_log's diary: foods (servingId), exercises (exerciseId), notes (noteId) and biometrics such as a weight (biometricId).
Args: entry_ids: List of entry IDs to remove. date: Date the entries belong to as YYYY-MM-DD (defaults to today).
Inputs: entry_ids (required), date. Returns: result
search_activitiesARead-onlyIdempotent
Find activities to log with add_exercise, by name.
Searches Cronometer's two activity catalogs: the current one ("General Walking", "HIIT") and the older, more specific one ("Walking 3.0 mph, moderate"). Every word of the query must appear in the name.
Args: query: Activity name or keywords (e.g. "walking", "cycling").
Inputs: query (required). Returns: result
search_foodsARead-onlyIdempotent
Search Cronometer's food database by name.
Returns matching foods with their IDs and source information. Use the food_id and measure_id from results with add_food_entry, or pass food_id to get_food_details for full nutrition info.
Args: query: Food name or keyword (e.g. "eggs", "chicken breast").
Inputs: query (required). Returns: result
set_macro_splitAIdempotent
Set how the energy target is split between protein, carbs and fat.
This changes the user's real targets: confirm the numbers with the user first, and read the current split with get_macro_targets so it can be put back. Values are percent of energy and must add up to 100. Requires Macro Ratios mode; fixed-target and keto modes are rejected. Failed writes attempt restoration and report the resulting state, which may remain partially changed or unknown if recovery fails.
Args: protein: Protein share in percent (e.g. 30). carbs: Carbohydrate share in percent (e.g. 40). fat: Fat share in percent (e.g. 30).
Inputs: fat (required), carbs (required), protein (required). Returns: result
set_macro_targetsAIdempotent
Set the daily macro targets in grams, the weekly weight goal and/or sodium.
Confirm the new values with the user first, and read the current ones with get_macro_targets so they can be put back. Only the arguments you pass change.
Gram targets require Fixed Targets mode in Cronometer's Macro & Energy Targets settings.
The calorie target cannot be set directly: Cronometer computes it from BMR, activity level and the weight goal. Move it with weight_goal_per_week (in the account's weight unit per week, negative to lose; each 1 lb/week is about 500 kcal/day). Check the result with get_food_log's energy_summary.total_target_kcal.
Args: protein_g: Daily protein target in grams. fat_g: Daily fat target in grams. net_carbs_g: Daily net-carb target in grams. weight_goal_per_week: Weight change per week, -2 to 2 (e.g. -1.5). sodium_mg_min: Daily sodium target (lower bound) in mg. sodium_mg_max: Daily sodium upper limit in mg.
Gram targets are written to both places the app keeps them (profile prefs and the per-nutrient target rows), so the diary summary and the target bars agree.
Inputs: fat_g, protein_g, net_carbs_g, sodium_mg_max, +2 more. Returns: result
update_custom_foodADestructiveIdempotent
Edit an existing custom food (one you created) in place.
Only the arguments you pass change; everything else keeps its current value. Find the food_id with search_foods (source "Custom") or get_food_details. Diary entries that already use the food pick up the new values. Recipes cannot be edited with this tool, even though they also show as source "Custom".
Nutrient amounts are per serving: the food's default serving, or serving_grams when you pass it. To change the serving weight without re-entering nutrition, pass serving_grams alone; the stored per-100g values stay put, so the per-serving numbers scale with the new weight.
Args: food_id: ID of the custom food to edit. name: New food name. calories: Calories per serving (kcal). protein_g: Protein per serving (g). fat_g: Fat per serving (g). carbs_g: Carbs per serving (g). fiber_g: Fiber per serving (g). sugar_g: Sugar per serving (g). sodium_mg: Sodium per serving (mg). saturated_fat_g: Saturated fat per serving (g). extra_nutrients: Additional nutrients keyed by Cronometer nutrient ID (from get_daily_nutrition) and valued per serving; must not reuse an ID the named args already cover. serving_name: New name for the default serving. The app shows the serving as " "; a leading number ("2 cookies") is taken as the quantity (see serving_quantity). serving_grams: New total weight of the default serving in grams. Also resets the quantity to serving_quantity (or 1). serving_quantity: How many units make up the default serving (default 1 whenever serving_grams is passed). Without serving_grams the serving's total weight stays the same, so each unit gets lighter or heavier: changing "2 cookies = 30 g" to 3 gives "3 cookies = 30 g". To keep the per-unit weight, also pass serving_grams (45 here). Check the result with get_food_details, which lists each measure's quantity. barcodes: Replaces the food's barcodes (see add_custom_food for the accepted formats); pass [] to remove them all. To add one, pass the current barcodes from get_food_details plus the new one.
Inputs: food_id (required), name, fat_g, carbs_g, +11 more. Returns: result
update_food_entryAIdempotent
Change a logged food entry: its amount, its measure, or its meal.
Use get_food_log to find the entry ID. Pass only what should change.
Args: entry_id: Serving/entry ID from get_food_log. date: Date the entry is logged on as YYYY-MM-DD (defaults to today). grams: New weight of the serving in grams. Only supported for weight-based foods and recipes; change serving-based recipe amounts in Cronometer. measure_id: New measure/unit ID from get_food_details (the amount is still given in grams). diary_group: Move to another meal: the name of one of the account's enabled diary groups (see get_diary_groups), matched ignoring case and whitespace. "auto" is not accepted here.
Inputs: entry_id (required), date, grams, measure_id, +1 more. Returns: result
update_noteAIdempotent
Replace the text of a diary note.
Args: note_id: noteId of the note, from get_food_log. text: The new note text. date: Date the note is on as YYYY-MM-DD (defaults to today).
Inputs: text (required), note_id (required), date. Returns: result
update_recipeADestructiveIdempotent
Edit a recipe you created: rename it, change its ingredients or amounts, resize its default serving, or change its notes.
Pass only what should change. A new ingredient list replaces the whole old one (use get_food_details to read the current ingredients first), and the nutrition is recalculated from it. Diary entries that already logged the recipe keep pointing at it and follow the new nutrition, as in the app. Saved meals cannot be edited with this tool.
Ingredient and serving-size edits require a weight-based recipe; serving-based recipes only support name and notes edits. If the default serving is "full recipe", set a separate default serving in Cronometer before resizing it independently of the batch.
Args: food_id: The recipe's food ID. name: New recipe name. ingredients: New list of {"food_id": int, "grams": float} objects, with an optional "measure_id", as for add_recipe. serving_grams: New weight of the default serving in grams. If omitted and the serving was the whole batch, it follows the new batch. comments: New free-text recipe notes.
Inputs: food_id (required), name, comments, ingredients, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Most tools target a clearly distinct resource+action, and descriptions actively disambiguate the trickier pairs (get_food_log vs get_daily_nutrition vs get_nutrition_scores; add_custom_food vs add_recipe vs import_recipe). The remaining overlap is between the three nutrition-read tools and the three food/recipe-creation paths, but the guidance on when to use each is explicit enough that misselection is unlikely.
Every tool uses snake_case with a predictable verb_noun shape (get_food_log, add_food_entry, update_note, delete_recipe, set_macro_targets, list_biometrics). A few names like copy_day and mark_day_complete deviate slightly in noun structure but stay in the same convention.
30 tools is heavy for the rubric's sweet spot, though the domain genuinely spans diary, notes, foods, custom foods, recipes, nutrition, macros, fasting, biometrics, and exercise. Each tool maps to a real operation, but the surface is at the upper edge and includes some near-duplicate creation/read paths that inflate the count.
Coverage is strong: full diary entry lifecycle, notes, custom food CRUD, recipe create/update/import/delete, macro targets and split, biometrics, exercise, and fasting reads. Minor gaps remain—no update path for logged biometrics or exercises (only deletion via remove_food_entry), no water logging, and no dedicated note-delete tool—but these are workable.
Maintenance
Related MCP Connectors
Cronometer MCP server for ChatGPT, Claude and any AI agent: get diary day, log food, get nutrition summary, get targets, list biometrics, log biometric, create custom food and add note in your own Cronometer account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Cronometer yourself; Cotlet does not store your password and you need no Cronometer API key. About the official Cronometer API: Cronometer has no public API (checked 5 Nov 2026). Its Pro FAQ names Everfit, Kalix and Practice Better as platforms with API access and sends Enterprise teams to sales. Setup and FAQ: https://cotlet.dev/integrations/cronometer-api-mcp-server
Remote MCP server for training, nutrition, wellness, and performance data with OAuth 2.0.
MCP server for Cronofy — read calendars, events and free/busy, and create, update or delete events.
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server that provides access to Cronometer nutrition data, enabling users to pull food logs, macro and micronutrient summaries, and biometric data into Claude or Cursor. It supports daily nutrition tracking and raw CSV exports by interfacing with the Cronometer web protocol.27492 PyPI28MIT
- AlicenseAqualityCmaintenanceMCP server for USDA nutrition data lookup, meal logging, and daily macro tracking.3MIT
- AlicenseAqualityDmaintenanceMCP server for Cronometer nutrition tracking using the mobile API. Enables food logging, nutrition data retrieval, diary management, and fasting tracking.131MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for personal nutrition tracking, enabling users to log meals with calories and macros, water intake, body weight, set goals, and import food diaries from other apps through natural language.MIT