Skip to main content
Glama
FatSecret MCP Server

FatSecret MCP Server

by fliptheweb

FatSecret MCP Server

[!ВАЖНО] Это не официальный MCP-сервер от FatSecret. Он использует FatSecret Platform API, для которого требуется бесплатный аккаунт разработчика.

MCP-сервер (Model Context Protocol), который подключает Claude/Cursor к FatSecret Platform API. Ищите продукты, отслеживайте рацион, управляйте рецептами и контролируйте вес прямо из вашего AI-ассистента.

Доступен на NPM: npx fatsecret-mcp | Расширение для Claude Desktop: fatsecret-mcp.mcpb

✨ Возможности

  • 🔐 Аутентификация — Интерактивная настройка учетных данных и OAuth-авторизация

  • 🔍 Поиск продуктов — Поиск по обширной базе продуктов FatSecret с детальными данными о питательной ценности

  • 📷 Поиск по штрихкоду — Поиск продуктов по GTIN-13 штрихкоду

  • 🍳 Поиск рецептов — Просмотр и фильтрация рецептов по калориям, макронутриентам и времени приготовления

  • 📝 Дневник питания — Добавление, редактирование, копирование и удаление записей в дневнике питания

  • 🍽️ Сохраненные приемы пищи — Создание и управление многоразовыми шаблонами приемов пищи

  • ⚖️ Отслеживание веса — Запись и просмотр истории веса

  • 🏃♂️ Отслеживание упражнений — Просмотр упражнений и управление записями активности

  • ⭐ Избранное — Управление избранными продуктами и рецептами

Related MCP server: fatsecret-mcp-server

🚀 Быстрый старт

Добавьте в конфигурацию вашего MCP-клиента:

{
  "mcpServers": {
    "fatsecret": {
      "command": "npx",
      "args": ["-y", "fatsecret-mcp"]
    }
  }
}

Вот и всё! При первом использовании AI проведет вас через настройку:

  1. check_auth_status — определяет отсутствие учетных данных и сообщает, что делать

  2. setup_credentials — вы предоставляете свои API-ключи (сохраняются в ~/.fatsecret-mcp/config.json)

  3. start_auth → complete_auth — авторизуйте свой аккаунт FatSecret для использования инструментов дневника/веса

Также можно передать учетные данные через переменные окружения:

{
  "mcpServers": {
    "fatsecret": {
      "command": "npx",
      "args": ["-y", "fatsecret-mcp"],
      "env": {
        "FATSECRET_CLIENT_ID": "your_client_id",
        "FATSECRET_CLIENT_SECRET": "your_client_secret",
        "FATSECRET_CONSUMER_SECRET": "your_consumer_secret"
      }
    }
  }
}

🔑 Где взять учетные данные

  1. Создайте бесплатный аккаунт на platform.fatsecret.com

  2. Перейдите в Мой аккаунт → API-ключи

  3. Вы увидите три значения:

    • Client ID (используется как для OAuth 2.0, так и для OAuth 1.0)

    • Client Secret (OAuth 2.0 — для публичного поиска продуктов/рецептов)

    • Consumer Secret (OAuth 1.0 — для доступа к профилю пользователя/дневнику)

📖 Пошаговое руководство: Начало работы с FatSecret API

Claude Desktop (Расширение)

Скачайте и откройте fatsecret-mcp.mcpb с помощью Claude Desktop. Вам будет предложено ввести учетные данные FatSecret — секреты надежно хранятся в связке ключей ОС.

Подробнее см. Создание расширений для Desktop с помощью MCPB.

Claude Desktop (Вручную)

~/Library/Application Support/Claude/claude_desktop_config.json

Claude Code (CLI)

claude mcp add fatsecret -- npx -y fatsecret-mcp

Или с переменными окружения:

claude mcp add fatsecret \
  -e FATSECRET_CLIENT_ID=your_client_id \
  -e FATSECRET_CLIENT_SECRET=your_client_secret \
  -e FATSECRET_CONSUMER_SECRET=your_consumer_secret \
  -- npx -y fatsecret-mcp

Проверьте с помощью claude mcp list.

Cursor

  • Интерфейс настроек — Settings → MCP → + Add new MCP server, затем заполните команду, аргументы и окружение

  • Конфигурация проекта — добавьте JSON в .cursor/mcp.json в корне проекта

  • Глобальная конфигурация — добавьте JSON в ~/.cursor/mcp.json

🛠️ Доступные инструменты

Инструмент

Описание

🔐 Настройка и авторизация

check_auth_status

Проверяет наличие учетных данных и авторизацию профиля. Вызовите первым.

setup_credentials

Сохраняет учетные данные FatSecret API в постоянную конфигурацию

start_auth

Запускает OAuth 1.0 авторизацию — возвращает URL для перехода пользователя

complete_auth

Завершает OAuth с PIN-кодом верификатора со страницы авторизации

🔍 Поиск продуктов (публичный)

search_foods

Поиск в базе продуктов

get_food

Получение детальной информации о питательной ценности продукта

find_food_by_barcode

Поиск продукта по GTIN-13 штрихкоду

autocomplete_foods

Получение подсказок для автозаполнения поиска

🍳 Рецепты (публичный)

search_recipes

Поиск рецептов с фильтрами

get_recipe

Получение деталей рецепта с ингредиентами и инструкциями

📚 Справочная информация (публичный)

get_food_categories

Получение категорий продуктов

get_food_sub_categories

Получение подкатегорий продуктов

get_brands

Получение брендов продуктов

get_recipe_types

Получение типов рецептов

📝 Дневник питания (авторизация профиля)

get_food_entries

Получение записей дневника питания за дату

get_food_entries_month

Получение ежемесячной сводки по питательности (калории и макронутриенты в день)

create_food_entry

Добавление записи в дневник питания

edit_food_entry

Редактирование записи в дневнике питания

delete_food_entry

Удаление записи из дневника питания

copy_food_entries

Копирование записей с одной даты на другую

copy_saved_meal_entries

Копирование сохраненного приема пищи на дату

⭐ Избранное (авторизация профиля)

get_favorite_foods

Получение избранных продуктов

delete_favorite_food

Удаление продукта из избранного

get_most_eaten_foods

Получение самых часто употребляемых продуктов

get_recently_eaten_foods

Получение недавно съеденных продуктов

get_favorite_recipes

Получение избранных рецептов

add_favorite_recipe

Добавление рецепта в избранное

delete_favorite_recipe

Удаление рецепта из избранного

🍽️ Сохраненные приемы пищи (авторизация профиля)

get_saved_meals

Получение сохраненных приемов пищи

create_saved_meal

Создание сохраненного приема пищи

edit_saved_meal

Редактирование сохраненного приема пищи

delete_saved_meal

Удаление сохраненного приема пищи

get_saved_meal_items

Получение элементов сохраненного приема пищи

add_saved_meal_item

Добавление продукта в сохраненный прием пищи

edit_saved_meal_item

Редактирование элемента сохраненного приема пищи

delete_saved_meal_item

Удаление элемента из сохраненного приема пищи

⚖️ Вес (авторизация профиля)

update_weight

Запись веса за дату

get_weight_month

Получение истории веса за месяц

🏃♂️ Упражнения (авторизация профиля)

get_exercises

Получение типов упражнений

edit_exercise_entries

Перенос времени упражнений между активностями

get_exercise_entries_month

Получение данных об упражнениях за месяц

save_exercise_template

Сохранение шаблона упражнений для дней недели

👤 Профиль (авторизация профиля)

get_profile

Получение информации о профиле пользователя

create_food

Создание пользовательского продукта (Premier)

Справочник API: Коллекция FatSecret Postman

🧪 Проверка подключения

npx fatsecret-mcp

Или с переменными окружения:

FATSECRET_CLIENT_ID='...' FATSECRET_CLIENT_SECRET='...' FATSECRET_CONSUMER_SECRET='...' npx fatsecret-mcp

📋 Требования

  • Node.js 18+

  • Аккаунт FatSecret Platform API (platform.fatsecret.com)

  • MCP-совместимый клиент (Claude Desktop, Cursor и др.)

🔧 Разработка

  1. Клонируйте репозиторий

  2. npm install

  3. Скопируйте .env.example в .env и заполните свои учетные данные

  4. npm run dev для запуска в режиме разработки

Отладка с помощью MCP Inspector:

FATSECRET_CLIENT_ID=X FATSECRET_CLIENT_SECRET=X FATSECRET_CONSUMER_SECRET=X npx -y @modelcontextprotocol/inspector npx <local-path>/fatsecret-mcp

📄 Лицензия

Лицензия MIT — подробности см. в файле LICENSE.

Available Tools

44 tools
add_favorite_recipeB
Idempotent

Add a recipe to the user's favorites. Requires profile auth (check_auth_status first).

Inputs: recipe_id (required).

add_saved_meal_itemB

Add a food item to a saved meal. Requires profile auth (check_auth_status first).

Inputs: food_id (required), serving_id (required), saved_meal_id (required), number_of_units (required), +1 more.

autocomplete_foodsC
Read-onlyIdempotent

Get autocomplete suggestions for a partial food search expression. Premier exclusive.

Inputs: expression (required), region, language, max_results.

check_auth_statusA
Read-onlyIdempotent

Check if API credentials and profile authentication are configured. Call this first to understand what setup is needed.

Inputs: no named parameters.

complete_authA

Complete the OAuth 1.0 flow with the verifier code from the authorization page.

Inputs: verifier (required).

copy_food_entriesA

Copy food entries from one date to another, optionally filtered by meal. Requires profile auth (check_auth_status first).

Inputs: to_date (required), from_date (required), meal.

copy_saved_meal_entriesA

Copy entries from a saved meal to a meal on a specific date. Requires profile auth (check_auth_status first).

Inputs: meal (required), saved_meal_id (required), date.

create_foodA

Create a custom food with nutrition info. Premier exclusive. Requires profile auth (check_auth_status first).

Inputs: fat (required), protein (required), calories (required), food_name (required), +21 more.

create_food_entryA

Add a food diary entry. Requires food_id, serving_id, and meal type. Requires profile auth (check_auth_status first).

Inputs: meal (required), food_id (required), serving_id (required), food_entry_name (required), +2 more.

create_saved_mealB

Create a new saved meal. Requires profile auth (check_auth_status first).

Inputs: saved_meal_name (required), meals, saved_meal_description.

delete_favorite_foodC
DestructiveIdempotent

Remove a food from the user's favorites. Requires profile auth (check_auth_status first).

Inputs: food_id (required), serving_id, number_of_units.

delete_favorite_recipeA
DestructiveIdempotent

Remove a recipe from the user's favorites. Requires profile auth (check_auth_status first).

Inputs: recipe_id (required).

delete_food_entryB
DestructiveIdempotent

Delete a food diary entry by ID. Requires profile auth (check_auth_status first).

Inputs: food_entry_id (required).

delete_saved_mealA
DestructiveIdempotent

Delete a saved meal. Requires profile auth (check_auth_status first).

Inputs: saved_meal_id (required).

delete_saved_meal_itemA
DestructiveIdempotent

Remove a food item from a saved meal. Requires profile auth (check_auth_status first).

Inputs: saved_meal_item_id (required).

edit_exercise_entriesA

Shift exercise time between activities for a date. Moves minutes from one exercise to another. Requires profile auth (check_auth_status first).

Inputs: minutes (required), shift_to_id (required), shift_from_id (required), date, +3 more.

edit_food_entryA
Idempotent

Edit an existing food diary entry. Cannot change the date. Requires profile auth (check_auth_status first).

Inputs: food_entry_id (required), meal, serving_id, food_entry_name, +1 more.

edit_saved_mealA
Idempotent

Edit a saved meal name, description, or associated meals. Requires profile auth (check_auth_status first).

Inputs: saved_meal_id (required), meals, saved_meal_name, saved_meal_description.

edit_saved_meal_itemA
Idempotent

Edit a food item in a saved meal (name or units). Cannot change serving_id. Requires profile auth (check_auth_status first).

Inputs: saved_meal_item_id (required), number_of_units, saved_meal_item_name.

find_food_by_barcodeA
Read-onlyIdempotent

Find food by barcode (GTIN-13). UPC-A, EAN-13 and EAN-8 supported. Premier exclusive.

Inputs: barcode (required), region, language, include_food_images, +3 more.

get_brandsB
Read-onlyIdempotent

Get the list of food brands, optionally filtered by starting letter and type. Premier exclusive.

Inputs: region, language, brand_type, starts_with.

get_exercise_entries_monthA
Read-onlyIdempotent

Get daily calories expended from exercise for a month. Requires profile auth (check_auth_status first).

Inputs: date.

get_exercisesA
Read-onlyIdempotent

Get the full list of supported exercise types and their IDs. Requires profile auth (check_auth_status first).

Inputs: no named parameters.

get_favorite_foodsA
Read-onlyIdempotent

Get the user's favorite foods. Requires profile auth (check_auth_status first).

Inputs: no named parameters.

get_favorite_recipesA
Read-onlyIdempotent

Get the user's favorite recipes. Requires profile auth (check_auth_status first).

Inputs: no named parameters.

get_foodA
Read-onlyIdempotent

Get detailed nutritional information for a specific food by ID. Returns servings, calories, macros, and micronutrients.

Inputs: food_id (required), region, language, page_number, +4 more.

get_food_categoriesC
Read-onlyIdempotent

Get the full list of food categories. Premier exclusive.

Inputs: region, language.

get_food_entriesA
Read-onlyIdempotent

Get food diary entries for a date or a specific entry by ID. Requires profile auth (check_auth_status first).

Inputs: date, food_entry_id.

get_food_entries_monthA
Read-onlyIdempotent

Get daily nutrition summary for a month. Returns calories and macros per day. Requires profile auth (check_auth_status first).

Inputs: date.

get_food_sub_categoriesA
Read-onlyIdempotent

Get food sub categories for a given food category. Premier exclusive.

Inputs: food_category_id (required), region, language.

get_most_eaten_foodsA
Read-onlyIdempotent

Get the user's most eaten foods, optionally filtered by meal. Requires profile auth (check_auth_status first).

Inputs: meal.

get_profileA
Read-onlyIdempotent

Get profile status information for the authenticated user. Requires profile auth (check_auth_status first).

Inputs: no named parameters.

get_recently_eaten_foodsA
Read-onlyIdempotent

Get the user's recently eaten foods, optionally filtered by meal. Requires profile auth (check_auth_status first).

Inputs: meal.

get_recipeA
Read-onlyIdempotent

Get detailed recipe information by ID including ingredients, directions, and nutrition.

Inputs: recipe_id (required), max_results, page_number.

get_recipe_typesA
Read-onlyIdempotent

Get the full list of supported recipe type names.

Inputs: no named parameters.

get_saved_meal_itemsA
Read-onlyIdempotent

Get all food items in a saved meal. Requires profile auth (check_auth_status first).

Inputs: saved_meal_id (required).

get_saved_mealsA
Read-onlyIdempotent

Get the user's saved meals, optionally filtered by meal type. Requires profile auth (check_auth_status first).

Inputs: meal.

get_weight_monthA
Read-onlyIdempotent

Get the user's weight entries for a month. Requires profile auth (check_auth_status first).

Inputs: date.

save_exercise_templateA
Idempotent

Save the current day's exercise entries as a template for specified days of the week. Requires profile auth (check_auth_status first).

Inputs: days (required), date.

search_foodsB
Read-onlyIdempotent

Search the FatSecret food database. Returns food names, descriptions, and basic nutrition info. On the Basic plan only search_expression, page_number and max_results (max 50) are used.

Inputs: search_expression (required), region, language, food_type, +6 more.

search_recipesB
Read-onlyIdempotent

Search recipes with optional filters for calories, macros, prep time, and recipe types.

Inputs: sort_by, calories.to, max_results, page_number, +13 more.

setup_credentialsA
Idempotent

Configure FatSecret API credentials. Get them at https://platform.fatsecret.com/ → My Account → API Keys. Saves to persistent config file.

Inputs: client_id (required), client_secret (required), consumer_secret (required).

start_authA
Read-only

Start the OAuth 1.0 authorization flow for profile access. Returns an authorization URL the user must visit. Requires API credentials (setup_credentials first).

Inputs: no named parameters.

update_weightA
Idempotent

Record the user's weight for a date. First weigh-in requires goal_weight_kg and current_height_cm. Requires profile auth (check_auth_status first).

Inputs: current_weight_kg (required), date, comment, height_type, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 44 tools

    Disambiguation4/5

    Tools are mostly scoped to a single resource+action, and the food-lookup cluster (search_foods, autocomplete_foods, find_food_by_barcode, get_food) is clearly differentiated. Minor overlap remains in the exercise group (get_exercises, edit_exercise_entries, get_exercise_entries_month, save_exercise_template) where the boundaries between viewing types, viewing totals, and templating are less crisp, and the four auth tools need the 'first/next' sequencing cues to avoid confusion.

    Naming Consistency4/5

    Nearly everything follows a predictable verb_noun snake_case pattern (get_*, create_*, edit_*, delete_*, add_*, copy_*, search_*). The only deviations are the auth verbs (check_/setup_/start_/complete_auth) and save_exercise_template vs create_saved_meal using different verbs for essentially the same 'make new' action.

    Tool Count2/5

    44 tools is well past the heavy threshold, even for a broad API like FatSecret. The set spans eight sub-domains (auth, food lookup, diary, saved meals, recipes, favorites, exercise, weight), but the surface is large enough that an agent must navigate clusters to find the right operation rather than act directly.

    Completeness2/5

    There are real dead ends: exercise entries can be edited and summarized monthly but no tool creates an exercise entry, yet save_exercise_template presumes entries exist; favorites are asymmetric (get/delete_favorite_food but no add_favorite_food, while recipes have full add/get/delete); and custom foods can be created but never edited or deleted. These gaps will cause agent failures on otherwise core logging workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers