nutripal-mcp
v0.4.1MCP server for MyFitnessPal account settings, food and exercise diaries, goals, measurements, and nutrition tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_profiles
List named profiles, current session validity, and last verification time
check_session
Check that the saved MyFitnessPal web session is current and matches the account API; service API access alone is insufficient
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_my_profile
Read your MyFitnessPal profile details and friend count
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_account_settings
Read the MyFitnessPal account, profile, diary, privacy, units, and nutrition goal settings
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
update_privacy_settings
Change account profile and diary visibility preferences. Supply only settings to change.
| Parameter | Type | Description |
|---|---|---|
age_visibility | string | |
diary_visibility | string | |
friend_visibility | boolean | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
profile_visibility | string | |
yir_visibility | string |
list_my_friends
Read the friends list and count returned by your MyFitnessPal profile
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_friends_page
Get the official MyFitnessPal Friends page link for managing friends in the website
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_diary
Read food diary entries from the MyFitnessPal website API for a date; this does not verify what the mobile app displays
| Parameter | Type | Description |
|---|---|---|
date * | string | Diary date in YYYY-MM-DD format |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_exercise_diary
Read exercise and step-adjustment entries from the diary for a date
| Parameter | Type | Description |
|---|---|---|
date * | string | Diary date in YYYY-MM-DD format |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_diary_range
Read diary data across a date range of up to 31 days
| Parameter | Type | Description |
|---|---|---|
from * | string | Diary date in YYYY-MM-DD format |
to * | string | Diary date in YYYY-MM-DD format |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_daily_note
Read the food diary note for a date
| Parameter | Type | Description |
|---|---|---|
date * | string | Diary date in YYYY-MM-DD format |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_nutrition_goals
Read current account nutrition goals
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_activity_summary
Read MyFitnessPal's digest with diary, exercise, step, water, and nutrition summaries for a date range up to 31 days
| Parameter | Type | Description |
|---|---|---|
from * | string | Diary date in YYYY-MM-DD format |
to * | string | Diary date in YYYY-MM-DD format |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
update_nutrition_goals
Update daily calorie and/or nutrient targets for every weekday, preserving all other goal settings
| Parameter | Type | Description |
|---|---|---|
calcium | number | |
calories | number | Daily calorie target |
carbohydrates | number | Daily carbohydrate target in grams |
cholesterol | number | Daily cholesterol target in milligrams |
fat | number | Daily fat target in grams |
fiber | number | Daily fiber target in grams |
iron | number | |
potassium | number | Daily potassium target in milligrams |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
protein | number | Daily protein target in grams |
saturated_fat | number | Daily saturated fat target in grams |
sodium | number | Daily sodium target in milligrams |
sugar | number | Daily sugar target in grams |
vitamin_a | number | |
vitamin_c | number |
update_account_profile
Change account username, time zone, language, measurement units, and diet/fitness profile fields. Supply only fields to change.
| Parameter | Type | Description |
|---|---|---|
activity_factor | string | |
birthdate | string | |
city | ||
country_code | string | |
distance_unit | string | |
energy_unit | string | |
height_measure_unit | string | |
height_unit | string | |
height_value | number | |
language | string | |
postal_code | ||
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
sex | string | |
state | ||
timezone | string | |
username | string | |
water_unit | string | |
weight_unit | string |
update_my_profile
Edit your MyFitnessPal profile, including location, birth date, sex, height, activity level, headline, About Me, why you want to get in shape, and inspirations. Supply only fields to change.
| Parameter | Type | Description |
|---|---|---|
about_me | ||
activity_factor | string | |
birthdate | string | |
city | ||
country_code | string | |
headline | ||
height_unit | string | |
height_value | number | |
inspirations | array | |
postal_code | ||
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
sex | string | |
state | ||
why_i_want_to_get_in_shape |
search_food
Search MyFitnessPal foods; when its catalog fails, return My Foods and USDA FoodData Central matches with source labels. USDA IDs require import_usda_food before logging
| Parameter | Type | Description |
|---|---|---|
query * | string | |
page | integer | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
search_exercises
Search the MyFitnessPal exercise catalog
| Parameter | Type | Description |
|---|---|---|
query * | string | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
list_exercises
List exercises in the MyFitnessPal exercise catalog
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_exercise
Read details for a MyFitnessPal exercise ID
| Parameter | Type | Description |
|---|---|---|
exercise_id * | ||
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
list_my_exercises
List private exercises in your MyFitnessPal account
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_food
Read nutrition and serving sizes for a food ID
| Parameter | Type | Description |
|---|---|---|
food_id * | ||
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
list_my_foods
List private foods you created, including foods absent from public search
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
search | string |
import_usda_food
Save a USDA FoodData Central result as a private MyFitnessPal food with nutrition per 100 g; reuse an exact existing import. Use the returned MyFitnessPal ID with log_food
| Parameter | Type | Description |
|---|---|---|
fdc_id * | integer | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
create_food
Create a private custom food in your MyFitnessPal account. Nutrition is per serving.
| Parameter | Type | Description |
|---|---|---|
calories * | number | |
carbohydrates * | number | |
fat * | number | |
name * | string | |
protein * | number | |
brand | string | |
carbohydrate_basis | string | |
cholesterol | number | |
country_code | string | Catalog locale only; does not change carbohydrate meaning |
fiber | number | |
potassium | number | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
saturated_fat | number | |
serving_amount | number | |
serving_unit | string | |
sodium | number | |
sugar | number |
update_my_food
Edit a private food in My Foods by exact ID. Provide only the fields to change.
| Parameter | Type | Description |
|---|---|---|
food_id * | ||
brand | string | |
calories | number | |
carbohydrate_basis | string | |
carbohydrates | number | |
cholesterol | number | |
country_code | string | |
fat | number | |
fiber | number | |
name | string | |
potassium | number | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
protein | number | |
saturated_fat | number | |
serving_amount | number | |
serving_unit | string | |
sodium | number | |
sugar | number |
log_food
Log an exact food ID and serving. Exact duplicates are blocked unless allow_duplicate=true after the user explicitly confirms another occurrence. listed_by_api is API visibility only; app visibility is always unverified by this tool
| Parameter | Type | Description |
|---|---|---|
date * | string | Diary date in YYYY-MM-DD format |
food_id * | ||
meal_position * | integer | Meal position: 0 breakfast, 1 lunch, 2 dinner, 3 snacks, 4/5 extra meals if configured |
allow_duplicate | boolean | Set true only after showing the existing matching diary entry and receiving explicit confirmation to add another occurrence |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
serving_size_id | ||
serving_unit | string | |
serving_value | number | |
servings | number |
create_and_log_food
Create a private custom food, then log it to the diary. If logging fails, the created food ID is returned for recovery. App display is always unverified by this tool, regardless of diary_visible.
| Parameter | Type | Description |
|---|---|---|
calories * | number | |
carbohydrates * | number | |
date * | string | Diary date in YYYY-MM-DD format |
fat * | number | |
meal_position * | integer | Meal position: 0 breakfast, 1 lunch, 2 dinner, 3 snacks, 4/5 extra meals if configured |
name * | string | |
protein * | number | |
brand | string | |
carbohydrate_basis | string | |
cholesterol | number | |
country_code | string | Catalog locale only; does not change carbohydrate meaning |
fiber | number | |
potassium | number | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
saturated_fat | number | |
serving_amount | number | |
serving_size_id | ||
serving_unit | string | |
serving_value | number | |
servings | number | |
sodium | number | |
sugar | number |
update_diary_entry
Change the serving count of a diary entry by its exact ID
| Parameter | Type | Description |
|---|---|---|
entry_id * | ||
servings * | number | |
meal | integer | Meal position: 0 breakfast, 1 lunch, 2 dinner, 3 snacks, 4/5 extra meals if configured |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
delete_diary_entry
Delete a diary entry by its exact ID
| Parameter | Type | Description |
|---|---|---|
entry_id * | ||
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
delete_my_food
Delete a custom food you own by its exact ID
| Parameter | Type | Description |
|---|---|---|
food_id * | ||
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
list_my_meals
List meals saved in My Meals
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
delete_my_meal
Delete a saved meal by its exact ID
| Parameter | Type | Description |
|---|---|---|
meal_id * | ||
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
list_recent_foods
List recently or frequently logged foods over a date range
| Parameter | Type | Description |
|---|---|---|
from * | string | Diary date in YYYY-MM-DD format |
to * | string | Diary date in YYYY-MM-DD format |
list | string | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_food_settings
Read food diary settings, including meal labels
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
update_diary_settings
Update diary meal names, tracked nutrients, or display/privacy preferences while preserving other diary settings
| Parameter | Type | Description |
|---|---|---|
allow_negative_calorie_adjustment | boolean | |
default_food_view | string | |
diary_privacy_setting | string | |
display_diary_meal_macros | boolean | |
macro_goal_format | string | |
meal_names | array | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
tracked_nutrients | array |
get_water
Read water logged on a date
| Parameter | Type | Description |
|---|---|---|
date * | string | Diary date in YYYY-MM-DD format |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
log_water
Set water intake for a date, using cups or milliliters
| Parameter | Type | Description |
|---|---|---|
date * | string | Diary date in YYYY-MM-DD format |
value * | number | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
units | string |
get_measurements
Read account body measurements such as weight
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
get_measurement_types
List body measurement types available in your account
| Parameter | Type | Description |
|---|---|---|
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
delete_measurement
Delete a body measurement by its exact measurement ID
| Parameter | Type | Description |
|---|---|---|
measurement_id * | ||
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
log_weight
Create or update a weight measurement for a date
| Parameter | Type | Description |
|---|---|---|
date * | string | Diary date in YYYY-MM-DD format |
value * | number | |
profile | string | Named MyFitnessPal profile; defaults to MFP_PROFILE or default |
unit | string |