About Myfitnesspal MCP Python
Myfitnesspal MCP Python is an MCP server published by AdamWalt in the Healthcare category: an MCP server for locally host MyFitnessPal MCP server. Conduid read 24 tools from its source: mfp_add_food_to_diary, mfp_create_custom_food, mfp_delete_custom_food, mfp_delete_fast, mfp_get_diary, mfp_get_exercises and 18 more. No package is published for it, so it installs from a source checkout.
The repository has 73 stars and 58 forks, and its last commit was on 24 Nov 2026. Conduid has no tagged release on record for it. Its topics include healthcare.
Install
git clone https://github.com/AdamWalt/myfitnesspal-mcp-pythonTools (24)
mfp_add_food_to_diaryAdd a food item to your diary for a specific meal and date| Parameter | Type | Description |
|---|---|---|
| params * | any | AddFoodToDiaryInput containing: - mfp_id (str): MyFitnessPal food item ID (from mfp_search_food) - meal (str): Meal to log under; matched to the account's configured meals (see mfp_list_meals). Default 'Breakfast'. - date (str, optional): Date in YYYY-MM-DD format, defaults to today - quantity (float): For gram-based foods pass the actual weight in grams (e.g. 120 for 120 g); for serving-based foods pass the number of servings (e.g. 1.5). Use 0.1 or 1 as a placeholder for meals not yet consumed — update to the real weight after eating. Range: (0, 10 000]. - unit (str, optional): Unit/serving size (e.g., '1 cup', '100g') |
mfp_create_custom_foodCreate a private custom food with a full nutrition panel| Parameter | Type | Description |
|---|---|---|
| params * | any | CreateCustomFoodInput (description, brand_name, serving_amount, serving_unit, calories + optional nutrients, public, response_format) |
mfp_delete_custom_foodDelete one of your custom foods| Parameter | Type | Description |
|---|---|---|
| params * | any | DeleteCustomFoodInput (food_id) |
mfp_delete_fastDelete a fasting entry by id| Parameter | Type | Description |
|---|---|---|
| params * | any | DeleteFastInput (id, response_format) |
mfp_get_diaryGet food diary entries for any date| Parameter | Type | Description |
|---|---|---|
| params * | any | GetDiaryInput containing: - date (str, optional): Date in YYYY-MM-DD format, defaults to today - response_format (str): 'markdown' or 'json' |
mfp_get_exercisesGet logged exercises (cardio & strength)| Parameter | Type | Description |
|---|---|---|
| params * | any | GetExercisesInput containing: - date (str, optional): Date in YYYY-MM-DD format, defaults to today - response_format (str): 'markdown' or 'json' |
mfp_get_food_detailsGet detailed nutrition info for a food item| Parameter | Type | Description |
|---|---|---|
| params * | any | GetFoodDetailsInput containing: - mfp_id (str): MyFitnessPal food item ID from search results - response_format (str): 'markdown' or 'json' |
mfp_get_food_entriesList a day's individual food entries with the time each was eaten| Parameter | Type | Description |
|---|---|---|
| params * | any | GetFoodEntriesInput containing: - date (str, optional): Date in YYYY-MM-DD format, defaults to today - response_format (str): 'markdown' or 'json' |
mfp_get_goalsGet nutrition goals (per-day with `all_days`)| Parameter | Type | Description |
|---|---|---|
| params * | any | GetGoalsInput containing: - date (str, optional): Date in YYYY-MM-DD format, defaults to today - all_days (bool): return all 7 weekdays + the default goal - response_format (str): 'markdown' or 'json' |
mfp_get_measurementsGet weight/body measurement history| Parameter | Type | Description |
|---|---|---|
| params * | any | GetMeasurementsInput containing: - measurement (str): Type of measurement (default 'Weight') - start_date (str, optional): Start date, defaults to 30 days ago - end_date (str, optional): End date, defaults to today - response_format (str): 'markdown' or 'json' |
mfp_get_reportGet nutrition reports over a date range| Parameter | Type | Description |
|---|---|---|
| params * | any | GetReportInput containing: - report_name (str): Report type (e.g., 'Net Calories', 'Protein') - start_date (str, optional): Start date, defaults to 7 days ago - end_date (str, optional): End date, defaults to today - response_format (str): 'markdown' or 'json' |
mfp_get_stepsGet daily step counts synced from Apple Health / devices| Parameter | Type | Description |
|---|---|---|
| params * | any | GetStepsInput containing: - start_date (str, optional): Defaults to 6 days before end_date - end_date (str, optional): Defaults to today - response_format (str): 'markdown' or 'json' |
mfp_get_waterGet water intake for a date| Parameter | Type | Description |
|---|---|---|
| params * | any | GetWaterInput containing: - date (str, optional): Date in YYYY-MM-DD format, defaults to today |
mfp_list_mealsList the account's configured meal names (incl. renamed/custom) for use with `mfp_add_food_to_diary`| Parameter | Type | Description |
|---|---|---|
| params * | any | ListMealsInput (response_format) |
mfp_list_own_foodsList your own custom foods (private ones do not appear in search)| Parameter | Type | Description |
|---|---|---|
| params * | any | ListOwnFoodsInput (search, limit, response_format) |
mfp_log_fastLog a completed intermittent fasting window (start + end)| Parameter | Type | Description |
|---|---|---|
| params * | any | LogFastInput (fast_started, fast_ended, id?, response_format) |
mfp_quick_addQuick Add raw calories (+ optional macros) with no food lookup| Parameter | Type | Description |
|---|---|---|
| params * | any | QuickAddInput containing: - calories (float): calories to log, in kcal (required). Behavior on kJ-unit accounts is unverified. - carbohydrates / protein / fat (float, optional): grams - meal (str): meal to log under (see mfp_list_meals); default Breakfast - date (str, optional): YYYY-MM-DD, defaults to today - name (str): label for the entry (default 'Quick Add') |
mfp_remove_food_from_diaryRemove a logged entry from your diary| Parameter | Type | Description |
|---|---|---|
| params * | any | RemoveFoodFromDiaryInput with one of: - entry_id: the entry's v2 diary id, from mfp_add_food_to_diary, mfp_quick_add, or mfp_get_food_entries (NOT the numeric food_entry_id from the diary page) - name_contains: substring match against entry names - meal: with name_contains, restrict matching to one meal - max_matches: safety cap for fuzzy matches (default 1) - date: with name_contains, the day to search (default today) |
mfp_search_foodSearch the MyFitnessPal food database| Parameter | Type | Description |
|---|---|---|
| params * | any | SearchFoodInput containing: - query (str): Search query (e.g., 'chicken breast') - limit (int): Maximum results to return (default 10) - response_format (str): 'markdown' or 'json' |
mfp_set_goalsUpdate nutrition goals (whole week or a single day)| Parameter | Type | Description |
|---|---|---|
| params * | any | SetGoalsInput containing: - calories (int, optional): Daily calorie goal - protein (int, optional): Daily protein goal in grams - carbohydrates (int, optional): Daily carb goal in grams - fat (int, optional): Daily fat goal in grams - day (str, optional): Weekday to update; omit for the whole week |
mfp_set_measurementLog a new weight or body measurement| Parameter | Type | Description |
|---|---|---|
| params * | any | SetMeasurementInput containing: - measurement (str): Type of measurement (default 'Weight') - value (float): Measurement value (e.g., 185.5) |
mfp_set_waterLog water intake for a date| Parameter | Type | Description |
|---|---|---|
| params * | any | SetWaterInput containing: - cups (float): Number of cups of water (e.g., 2.5 for 2.5 cups) - date (str, optional): Date in YYYY-MM-DD format, defaults to today |
mfp_update_fastUpdate the start/end times of an existing fasting entry| Parameter | Type | Description |
|---|---|---|
| params * | any | UpdateFastInput (id, fast_started, fast_ended, response_format) |
refresh_browser_cookiesExtract and save session cookies from browser| Parameter | Type | Description |
|---|---|---|
| browser | string | Source to extract cookies from. Options: - 'auto' (default): scan every installed Chromium-based browser on macOS (Arc, Dia, Chrome, Edge, Brave, Vivaldi, Opera, ...) and use the first one with a valid session. - 'arc', 'dia', 'chrome', 'chromium', 'edge', 'brave', 'vivaldi', 'opera': force a specific Chromium browser (macOS). - 'firefox': use browser_cookie3 (Firefox is not Chromium). |
Security checks
6 checks have not been run yet.