Skip to main content
Glama

MyFitnessPal MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MFP_COOKIESNoExported cookies for MyFitnessPal authentication, required for environments without browser access (Docker containers, remote servers, etc.). Use export_cookies.py utility to extract cookies. Cookies expire after ~30 days.

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_daily_summary

Get daily nutrition overview: calories consumed/remaining, macro breakdown, water, and goals.

Args: date: Date in YYYY-MM-DD format (defaults to today)

get_daily_meals

Get detailed meal-by-meal breakdown with all foods, servings, and calories.

Args: date: Date in YYYY-MM-DD format (defaults to today)

get_daily_exercise

Get exercise activities: cardio (duration, calories) and strength (sets, reps, weight).

Args: date: Date in YYYY-MM-DD format (defaults to today)

get_daily_macros

Get comprehensive macro and micronutrient breakdown with all tracked nutrients.

Args: date: Date in YYYY-MM-DD format (defaults to today)

get_water_intake

Get water consumption for a specific day.

Args: date: Date in YYYY-MM-DD format (defaults to today)

get_date_range_summary

Get aggregate nutrition data over a date range with trends and insights.

Args: start_date: Start date in YYYY-MM-DD format end_date: End date in YYYY-MM-DD format

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ai-mcp-garage/mcp-myfitnesspal'

If you have feedback or need assistance with the MCP directory API, please join our Discord server