FatSecret MCP Server
FatSecret MCP Server
[!IMPORTANT] 이것은 FatSecret의 공식 MCP 서버가 아닙니다. FatSecret Platform API를 사용하며, 무료 개발자 계정이 필요합니다.
Claude/Cursor를 FatSecret Platform API에 연결하는 MCP(Model Context Protocol) 서버입니다. 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가 설정 과정을 안내합니다:
check_auth_status— 누락된 자격 증명을 감지하고 무엇을 해야 할지 알려줍니다.setup_credentials— API 키를 제공합니다 (~/.fatsecret-mcp/config.json에 저장됨)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"
}
}
}
}🔑 자격 증명 얻는 방법
platform.fatsecret.com에서 무료 계정을 만드세요
내 계정 → API 키로 이동하세요
다음 세 가지 값이 표시됩니다:
Client ID (OAuth 2.0 및 OAuth 1.0 모두에 사용)
Client Secret (OAuth 2.0 - 공개 음식/레시피 검색용)
Consumer Secret (OAuth 1.0 - 사용자 프로필/일기 액세스용)
📖 단계별 가이드: FatSecret API 시작하기
Claude Desktop (확장 프로그램)
Claude Desktop으로 fatsecret-mcp.mcpb를 다운로드하여 열면 FatSecret 자격 증명을 입력하라는 메시지가 표시됩니다. 자격 증명은 OS 키체인에 안전하게 저장됩니다.
자세한 내용은 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-mcpclaude mcp list로 확인하세요.
Cursor
설정 UI —
Settings → MCP → + Add new MCP server, 그런 다음 명령, 인수, env를 입력합니다.프로젝트 구성 — 프로젝트 루트의
.cursor/mcp.json에 JSON을 추가합니다.전역 구성 —
~/.cursor/mcp.json에 JSON을 추가합니다.
🛠️ 사용 가능한 도구
도구 | 설명 |
🔐 설정 및 인증 | |
| 자격 증명과 프로필 인증이 구성되어 있는지 확인합니다. 먼저 호출하세요. |
| FatSecret API 자격 증명을 영구 설정에 저장합니다. |
| OAuth 1.0 인증을 시작합니다. 사용자가 방문할 URL을 반환합니다. |
| 인증 페이지에서 받은 확인 PIN으로 OAuth를 완료합니다. |
🔍 음식 검색 (공개) | |
| 음식 데이터베이스를 검색합니다. |
| 음식의 상세 영양 정보를 가져옵니다. |
| GTIN-13 바코드로 음식을 찾습니다. |
| 검색 자동 완성 제안을 가져옵니다. |
🍳 레시피 (공개) | |
| 필터로 레시피를 검색합니다. |
| 재료와 조리법이 포함된 레시피 상세 정보를 가져옵니다. |
📚 참조 (공개) | |
| 음식 카테고리를 가져옵니다. |
| 음식 하위 카테고리를 가져옵니다. |
| 음식 브랜드를 가져옵니다. |
| 레시피 유형을 가져옵니다. |
📝 음식 일기 (프로필 인증) | |
| 특정 날짜의 음식 일기 항목을 가져옵니다. |
| 월간 영양 요약(일별 칼로리 및 매크로)을 가져옵니다. |
| 음식 일기 항목을 추가합니다. |
| 음식 일기 항목을 편집합니다. |
| 음식 일기 항목을 삭제합니다. |
| 한 날짜의 항목을 다른 날짜로 복사합니다. |
| 저장된 식사를 특정 날짜로 복사합니다. |
⭐ 즐겨찾기 (프로필 인증) | |
| 즐겨찾는 음식을 가져옵니다. |
| 즐겨찾기에서 음식을 제거합니다. |
| 가장 많이 먹은 음식을 가져옵니다. |
| 최근에 먹은 음식을 가져옵니다. |
| 즐겨찾는 레시피를 가져옵니다. |
| 레시피를 즐겨찾기에 추가합니다. |
| 즐겨찾기에서 레시피를 제거합니다. |
🍽️ 저장된 식사 (프로필 인증) | |
| 저장된 식사를 가져옵니다. |
| 저장된 식사를 생성합니다. |
| 저장된 식사를 편집합니다. |
| 저장된 식사를 삭제합니다. |
| 저장된 식사에 포함된 항목을 가져옵니다. |
| 저장된 식사에 음식을 추가합니다. |
| 저장된 식사 항목을 편집합니다. |
| 저장된 식사에서 항목을 제거합니다. |
⚖️ 체중 (프로필 인증) | |
| 특정 날짜의 체중을 기록합니다. |
| 한 달간의 체중 기록을 가져옵니다. |
🏃♂️ 운동 (프로필 인증) | |
| 운동 유형을 가져옵니다. |
| 활동 간 운동 시간을 이동합니다. |
| 한 달간의 운동 데이터를 가져옵니다. |
| 평일용 운동 템플릿을 저장합니다. |
👤 프로필 (프로필 인증) | |
| 사용자 프로필 정보를 가져옵니다. |
| 맞춤 음식을 생성합니다 (Premier). |
API 참조: FatSecret Postman Collection
🧪 테스트 연결
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 등)
🔧 개발
저장소를 클론합니다
npm install.env.example을.env로 복사하고 자격 증명을 입력합니다개발 모드로 실행하려면
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 toolsadd_favorite_recipeBIdempotent
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_foodsCRead-onlyIdempotent
Get autocomplete suggestions for a partial food search expression. Premier exclusive.
Inputs: expression (required), region, language, max_results.
check_auth_statusARead-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_foodCDestructiveIdempotent
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_recipeADestructiveIdempotent
Remove a recipe from the user's favorites. Requires profile auth (check_auth_status first).
Inputs: recipe_id (required).
delete_food_entryBDestructiveIdempotent
Delete a food diary entry by ID. Requires profile auth (check_auth_status first).
Inputs: food_entry_id (required).
delete_saved_mealADestructiveIdempotent
Delete a saved meal. Requires profile auth (check_auth_status first).
Inputs: saved_meal_id (required).
delete_saved_meal_itemADestructiveIdempotent
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_entryAIdempotent
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_mealAIdempotent
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_itemAIdempotent
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_barcodeARead-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_brandsBRead-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_monthARead-onlyIdempotent
Get daily calories expended from exercise for a month. Requires profile auth (check_auth_status first).
Inputs: date.
get_exercisesARead-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_foodsARead-onlyIdempotent
Get the user's favorite foods. Requires profile auth (check_auth_status first).
Inputs: no named parameters.
get_favorite_recipesARead-onlyIdempotent
Get the user's favorite recipes. Requires profile auth (check_auth_status first).
Inputs: no named parameters.
get_foodARead-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_categoriesCRead-onlyIdempotent
Get the full list of food categories. Premier exclusive.
Inputs: region, language.
get_food_entriesARead-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_monthARead-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_categoriesARead-onlyIdempotent
Get food sub categories for a given food category. Premier exclusive.
Inputs: food_category_id (required), region, language.
get_most_eaten_foodsARead-onlyIdempotent
Get the user's most eaten foods, optionally filtered by meal. Requires profile auth (check_auth_status first).
Inputs: meal.
get_profileARead-onlyIdempotent
Get profile status information for the authenticated user. Requires profile auth (check_auth_status first).
Inputs: no named parameters.
get_recently_eaten_foodsARead-onlyIdempotent
Get the user's recently eaten foods, optionally filtered by meal. Requires profile auth (check_auth_status first).
Inputs: meal.
get_recipeARead-onlyIdempotent
Get detailed recipe information by ID including ingredients, directions, and nutrition.
Inputs: recipe_id (required), max_results, page_number.
get_recipe_typesARead-onlyIdempotent
Get the full list of supported recipe type names.
Inputs: no named parameters.
get_saved_meal_itemsARead-onlyIdempotent
Get all food items in a saved meal. Requires profile auth (check_auth_status first).
Inputs: saved_meal_id (required).
get_saved_mealsARead-onlyIdempotent
Get the user's saved meals, optionally filtered by meal type. Requires profile auth (check_auth_status first).
Inputs: meal.
get_weight_monthARead-onlyIdempotent
Get the user's weight entries for a month. Requires profile auth (check_auth_status first).
Inputs: date.
save_exercise_templateAIdempotent
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_foodsBRead-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_recipesBRead-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_credentialsAIdempotent
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_authARead-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_weightAIdempotent
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
Scored across 44 tools
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.
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.
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.
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
Related MCP Connectors
Food nutrition lookup via natural language, barcode, and image. Database of 1,000,000+ foods.
Your Calori account in any AI assistant: nutrition targets, food logging, meal orders and deliveries
Nutrition data for AI agents and LLMs, powered by Edamam’s database of 1,000,000 foods, including 680,000+ with UPC codes. Lookup via natural language and barcode at low cost and low latency. Highly accurate, deterministic data covering macro and micronutrients, allergens, and lifestyle diet tags.
Free food diary for ChatGPT: log meals by chat, track calories, macros and 54 nutrients.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceProvides AI assistants with real-time access to nutrition data from USDA FoodData Central and FatSecret, enabling accurate answers with citations for nutrition queries.-
- AlicenseNot gradedqualityDmaintenanceEnables searching and retrieving nutrition data, recipes, and managing food diary entries through the FatSecret API.MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to interact with MyFitnessPal data including food diary, exercises, body measurements, nutrition goals, and water intake through natural language.2073MIT
- AlicenseBqualityBmaintenanceEnables AI assistants to search foods and recipes, look up barcodes, and manage food diaries, saved meals, favorites, weight, exercise, and profile data through a nutrition platform API.44MIT