About io.github.rwestergren/cronometer-api-mcp
io.github.rwestergren/cronometer-api-mcp is an MCP server published by rwestergren in the Healthcare category: mCP server for Cronometer nutrition tracking — food logs, diary, macros, fasting. Conduid read 32 tools from its source: add_biometric, add_custom_food, add_exercise, add_food_entry, add_note, add_recipe and 26 more. No package is published for it, so it installs from a source checkout.
The repository has 76 stars and 44 forks, and its last commit was on 28 Nov 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include healthcare.
Install
git clone https://github.com/rwestergren/cronometer-api-mcpTools (32)
add_biometricRecord a biometric reading such as a weight or body fat| Parameter | Type | Description |
|---|---|---|
| amount * | number | The reading. |
| date | string | Date as YYYY-MM-DD (defaults to today). |
| metric_id * | integer | Numeric metric ID from list_biometrics. |
| unit_id * | integer | Numeric unit ID from the metric's units; the amount is in this unit. |
add_custom_foodCreate a custom food with specified nutrition and optional barcodes| Parameter | Type | Description |
|---|---|---|
| barcodes | array | 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. |
| calories * | number | Calories per serving (kcal). |
| carbs_g * | number | Carbs per serving (g). |
| extra_nutrients | object | 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. |
| fat_g * | number | Fat per serving (g). |
| fiber_g | number | Fiber per serving (g, default 0). |
| name * | string | Food name. |
| protein_g * | number | Protein per serving (g). |
| saturated_fat_g | number | Saturated fat per serving (g, default 0). |
| serving_grams | number | Weight of one serving in grams (default 100). |
| serving_name | string | Name for the serving size (default "1 serving"). |
| sodium_mg | number | Sodium per serving (mg, default 0). |
| sugar_g | number | Sugar per serving (g, default 0). |
add_exerciseLog an exercise with its duration and calories burned| Parameter | Type | Description |
|---|---|---|
| activity_id * | integer | Activity ID from search_activities. |
| calories * | number | Calories burned, as a positive number. |
| date | string | Date as YYYY-MM-DD (defaults to today). |
| diary_group | string | 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. |
| minutes * | number | Duration in minutes. |
add_food_entryLog a food serving to the diary, optionally at a given time of day| Parameter | Type | Description |
|---|---|---|
| date | string | Date to log as YYYY-MM-DD (defaults to today). |
| diary_group | string | 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. |
| food_id * | integer | Numeric food ID from food search or remembered-food results. |
| grams * | number | Weight in grams, or a reference-serving count for Recipe measures. Reuse a remembered serving's value unchanged to repeat its amount. |
| measure_id * | integer | Measure/unit ID from food details or reference_serving. |
| time | string | 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. |
| translation_id | integer | Translation ID from search results (usually 0). |
add_noteAdd a note to a diary day, optionally at a given time of day| Parameter | Type | Description |
|---|---|---|
| date | string | Date as YYYY-MM-DD (defaults to today). |
| diary_group | string | 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. |
| text * | string | The note text. |
| time | string | 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. |
add_recipeCreate a recipe from existing foods referenced by ID and gram weight| Parameter | Type | Description |
|---|---|---|
| comments | string | Free-text recipe notes. |
| ingredients * | array | 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. |
| name * | string | Recipe name. |
| serving_grams | number | Grams in one serving. Defaults to the full batch weight (one serving = the whole recipe). |
| serving_name | string | Name of the default serving measure (default "Serving"). |
copy_dayCopy all entries from the previous day| Parameter | Type | Description |
|---|---|---|
| date | string | Destination date as YYYY-MM-DD (defaults to today). |
delete_custom_foodRetire a custom food so it leaves search and the Custom Foods list (existing diary entries are kept)| Parameter | Type | Description |
|---|---|---|
| food_id * | integer | ID of the custom food to delete. |
delete_recipeDelete a recipe or saved meal: retired by default (diary entries are kept), or permanently, which also removes the diary entries that logged it| Parameter | Type | Description |
|---|---|---|
| food_id * | integer | ID of the recipe or meal to delete. |
| permanent | boolean | Delete outright instead of retiring (see above). |
get_biometricsBiometric time series (e.g. weight, body fat) within a date range| Parameter | Type | Description |
|---|---|---|
| end_date | string | End date as YYYY-MM-DD (defaults to today). |
| metric_id * | integer | Numeric metric ID from list_biometrics. |
| start_date | string | Start date as YYYY-MM-DD (defaults to 30 days ago). |
| unit_id * | integer | Numeric unit ID from the metric's units in list_biometrics. |
get_daily_nutritionConsumed macro and micronutrient totals for every nutrient tracked in Cronometer| Parameter | Type | Description |
|---|---|---|
| date | string | Inclusive end date: YYYY-MM-DD, today, yesterday, or N days ago. Defaults to today in the account timezone, resolved at call time. |
| days | integer | Number of calendar days, 1–31 (default 1). Includes the end date; days=3 includes today, date='yesterday', days=3 excludes today. |
get_diary_groupsThe account's diary groups (meal slots) and their names, for interpreting the group in each entry's `order`get_fasting_historyFasting history within a date range| Parameter | Type | Description |
|---|---|---|
| end_date | string | End date as YYYY-MM-DD (defaults to today). |
| start_date | string | Start date as YYYY-MM-DD (defaults to 30 days ago). |
get_fasting_statsAggregate fasting statisticsget_food_detailsFull nutrition profile and serving sizes for a food| Parameter | Type | Description |
|---|---|---|
| food_id * | integer | Food ID from search_foods results. |
get_food_logDiary 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. `detail="compact"` returns a small object per entry instead of the nutrient arrays, and `food_id` narrows the entries to one food| Parameter | Type | Description |
|---|---|---|
| date | string | Inclusive end date: YYYY-MM-DD, today, yesterday, or N days ago. Defaults to today in the account timezone, resolved at call time. |
| days | integer | Number of calendar days, 1–31 (default 1). Includes the end date; days=3 includes today, date='yesterday', days=3 excludes today. |
| detail | string | "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 | integer | 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. |
get_frequent_foodsRank the same foods by Cronometer's frequency counter| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum results, 1–50 (default 50). Applies to the native list only. |
| query | string | Optional case-insensitive name substring, filtered before limit. |
get_macro_targetsFixed-gram macro targets, weight goal, macro split (percent of energy), weekly macro schedule and saved target templatesget_nutrition_scoresCategory scores (Vitamins, Minerals, etc.) with per-nutrient consumed amounts and confidence levels| Parameter | Type | Description |
|---|---|---|
| date | string | 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. |
get_recent_foodsList remembered foods and their servings in the app's Most Recent order| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum results, 1–50 (default 50). Applies to the native list only. |
| query | string | Optional case-insensitive name substring, filtered before limit. |
import_recipeCreate a recipe from a free-text ingredient list; Cronometer matches each line to a database food and converts the amount to grams| Parameter | Type | Description |
|---|---|---|
| ingredients * | string | 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 | string | Recipe name. Defaults to a server-generated one. |
list_biometricsList trackable biometric metrics and their unitsmark_day_completeMark a diary day as complete or incomplete| Parameter | Type | Description |
|---|---|---|
| complete | boolean | True to mark complete, False for incomplete. |
| date * | string | Date to mark as YYYY-MM-DD. |
remove_food_entryRemove one or more diary entries: foods, exercises, notes or biometrics| Parameter | Type | Description |
|---|---|---|
| date | string | Date the entries belong to as YYYY-MM-DD (defaults to today). |
| entry_ids * | array | List of entry IDs to remove. |
search_activitiesFind activities to log as exercise, by name| Parameter | Type | Description |
|---|---|---|
| query * | string | Activity name or keywords (e.g. "walking", "cycling"). |
search_foodsSearch the Cronometer food database by name| Parameter | Type | Description |
|---|---|---|
| query * | string | Food name or keyword (e.g. "eggs", "chicken breast"). |
set_macro_splitSet the protein / carbs / fat split in percent of energy| Parameter | Type | Description |
|---|---|---|
| carbs * | number | Carbohydrate share in percent (e.g. 40). |
| fat * | number | Fat share in percent (e.g. 30). |
| protein * | number | Protein share in percent (e.g. 30). |
set_macro_targetsSet 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| Parameter | Type | Description |
|---|---|---|
| fat_g | number | Daily fat target in grams. |
| net_carbs_g | number | Daily net-carb target in grams. |
| protein_g | number | Daily protein target in grams. |
| sodium_mg_max | number | Daily sodium upper limit in mg. |
| sodium_mg_min | number | Daily sodium target (lower bound) in mg. |
| weight_goal_per_week | number | Weight change per week, -2 to 2 (e.g. -1.5). |
update_custom_foodEdit a custom food in place: name, nutrition, serving size, or barcodes| Parameter | Type | Description |
|---|---|---|
| barcodes | array | 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. |
| calories | number | Calories per serving (kcal). |
| carbs_g | number | Carbs per serving (g). |
| extra_nutrients | object | 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. |
| fat_g | number | Fat per serving (g). |
| fiber_g | number | Fiber per serving (g). |
| food_id * | integer | ID of the custom food to edit. |
| name | string | New food name. |
| protein_g | number | Protein per serving (g). |
| saturated_fat_g | number | Saturated fat per serving (g). |
| serving_grams | number | New total weight of the default serving in grams. Also resets the quantity to serving_quantity (or 1). |
| serving_name | string | New name for the default serving. The app shows the serving as "<quantity> <name>"; a leading number ("2 cookies") is taken as the quantity (see serving_quantity). |
| serving_quantity | number | 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. |
| sodium_mg | number | Sodium per serving (mg). |
| sugar_g | number | Sugar per serving (g). |
update_food_entryChange a logged entry's amount or measure, or move it to another diary group| Parameter | Type | Description |
|---|---|---|
| date | string | Date the entry is logged on as YYYY-MM-DD (defaults to today). |
| diary_group | string | 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. |
| entry_id * | string | Serving/entry ID from get_food_log. |
| grams | number | New weight of the serving in grams. Only supported for weight-based foods and recipes; change serving-based recipe amounts in Cronometer. |
| measure_id | integer | New measure/unit ID from get_food_details (the amount is still given in grams). |
update_noteReplace the text of a diary note| Parameter | Type | Description |
|---|---|---|
| date | string | Date the note is on as YYYY-MM-DD (defaults to today). |
| note_id * | integer | noteId of the note, from get_food_log. |
| text * | string | The new note text. |
update_recipeEdit a recipe in place: name, ingredients and amounts, serving size, or notes; nutrition is recalculated| Parameter | Type | Description |
|---|---|---|
| comments | string | New free-text recipe notes. |
| food_id * | integer | The recipe's food ID. |
| ingredients | array | New list of {"food_id": int, "grams": float} objects, with an optional "measure_id", as for add_recipe. |
| name | string | New recipe name. |
| serving_grams | number | New weight of the default serving in grams. If omitted and the serving was the whole batch, it follows the new batch. |
Security checks
- ✓README presentThe repository's README runs to about 910 words.
5 checks have not been run yet.
README
The repository's README runs to about 910 words. The original in the repository is authoritative.
Read full README