Skip to main content
Glama
Yurzs

fatsecret-mcp-server

by Yurzs

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FATSECRET_CLIENT_IDYesYour FatSecret API Client ID
FATSECRET_ACCESS_TOKENYesUser-level OAuth access token
FATSECRET_CLIENT_SECRETYesYour FatSecret API Client Secret
FATSECRET_ACCESS_TOKEN_SECRETYesUser-level OAuth access token secret

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
fatsecret_search_foodA

Search the FatSecret food database by name. Returns food items with basic nutrition info per serving. Use this to find food_id and serving_id needed for logging diary entries.

Args:

  • query: Food name to search (e.g., "chicken breast", "jasmine rice")

  • page: Page number for pagination (default: 0)

  • max_results: Results per page, max 50 (default: 20)

Returns: List of foods with id, name, description (brief nutrition summary).

fatsecret_get_foodA

Get detailed nutrition information for a specific food by its food_id. Returns all available servings with full macro and micronutrient breakdown.

Use this after fatsecret_search_food to get the serving_id and nutrition data needed for logging.

Args:

  • food_id: The FatSecret food ID (from search results)

Returns: Food name, servings list with serving_id, serving description, calories, protein, carbs, fat, and available micronutrients.

fatsecret_create_food_entryA

Create a food diary entry for the user. Logs a specific food + serving to a meal on a given date.

You need food_id and serving_id from fatsecret_search_food / fatsecret_get_food.

Args:

  • food_id: FatSecret food ID

  • food_entry_name: Display name (e.g., "Chicken Breast")

  • serving_id: The serving size ID

  • number_of_units: How many of that serving (e.g., 2.5 for "2.5 cups")

  • meal: One of "breakfast", "lunch", "dinner", "other"

  • date: Date as YYYY-MM-DD string (default: today)

Returns: Created food entry with nutrition totals.

fatsecret_edit_food_entryA

Edit an existing food diary entry. Can change serving size, number of units, or meal type.

Args:

  • food_entry_id: The entry ID to edit (from get_food_entries)

  • food_entry_name: Updated display name (optional)

  • serving_id: New serving ID (optional)

  • number_of_units: New number of servings (optional)

  • meal: New meal type (optional)

Returns: Updated entry with new nutrition values.

fatsecret_delete_food_entryA

Delete a food diary entry by its ID.

Args:

  • food_entry_id: The entry ID to delete

Returns: Confirmation of deletion.

fatsecret_get_food_entriesA

Get all food diary entries for a specific date. Shows what was logged for each meal with full nutrition breakdown.

Args:

  • date: Date as YYYY-MM-DD (default: today)

Returns: All food entries grouped by meal with calories, protein, carbs, fat per entry and daily totals.

fatsecret_get_food_entries_monthA

Get daily calorie/macro totals for an entire month. Useful for tracking adherence and trends.

Args:

  • month: Month (1-12)

  • year: Year (e.g., 2026)

Returns: Daily totals for each logged day in the month.

fatsecret_create_saved_mealA

Create a reusable meal template (e.g., "Post-Workout Chicken & Rice"). After creating, add foods to it with fatsecret_add_food_to_saved_meal.

Args:

  • saved_meal_name: Name for the template

  • saved_meal_description: Optional description

  • meal_type: Default meal type when copied to diary

Returns: Created saved meal with its ID.

fatsecret_add_food_to_saved_mealA

Add a food item to an existing saved meal template.

Args:

  • saved_meal_id: ID of the saved meal

  • food_id: FatSecret food ID to add

  • food_entry_name: Display name

  • serving_id: Serving size ID

  • number_of_units: Number of servings

Returns: Confirmation with nutrition details.

fatsecret_get_saved_mealsA

Get all saved meal templates for the user. Shows meal names, IDs, and food items within each.

Returns: List of saved meals with their IDs, names, and food contents.

fatsecret_copy_saved_meal_to_diaryA

Copy all foods from a saved meal template into the food diary for a specific date and meal.

Args:

  • saved_meal_id: ID of the saved meal to copy

  • meal: Target meal type

  • date: Target date YYYY-MM-DD (default: today)

Returns: Confirmation that entries were created.

fatsecret_update_weightA

Log a weight measurement for a specific date.

Args:

  • weight_kg: Weight in kilograms

  • date: Date YYYY-MM-DD (default: today)

  • comment: Optional note

Returns: Confirmation of logged weight.

fatsecret_get_weights_monthA

Get weight entries for an entire month. Useful for tracking weight trends during bulk/cut phases.

Args:

  • month: Month (1-12)

  • year: Year (e.g., 2026)

Returns: All weight entries for the month with dates.

fatsecret_get_recently_eatenA

Get the user's recently eaten foods for quick re-logging. Returns food IDs and serving info ready to use with fatsecret_create_food_entry.

Returns: List of recently logged foods with IDs and serving details.

fatsecret_copy_dayA

Copy all food entries from one date to another. Useful for repeating a day's meals.

Args:

  • from_date: Source date YYYY-MM-DD

  • to_date: Target date YYYY-MM-DD

Returns: Confirmation.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/Yurzs/fatsecret-mcp-server'

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