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 キー に移動
以下の3つの値が表示されます:
クライアント ID(OAuth 2.0 と OAuth 1.0 の両方で使用)
クライアントシークレット(OAuth 2.0 - 公開食品/レシピ検索用)
コンシューマーシークレット(OAuth 1.0 - ユーザープロフィール/食事日記アクセス用)
📖 ステップバイステップガイド: FatSecret API 入門
Claude Desktop(拡張機能)
fatsecret-mcp.mcpb をダウンロードして Claude Desktop で開きます。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 —
設定 → MCP → + 新しい MCP サーバーを追加でコマンド、引数、環境変数を入力プロジェクト設定 — プロジェクトルートの
.cursor/mcp.jsonに JSON を追加グローバル設定 —
~/.cursor/mcp.jsonに JSON を追加
🛠️ 利用可能なツール
ツール | 説明 |
🔐 セットアップと認証 | |
| 認証情報とプロフィール認証の設定状況を確認します。最初に呼び出してください。 |
| FatSecret API 認証情報を永続設定に保存 |
| OAuth 1.0 認可を開始 — ユーザーがアクセスする URL を返す |
| 認可ページの確認コードで OAuth を完了 |
🔍 食品検索 (公開) | |
| 食品データベースを検索 |
| 食品の詳細な栄養情報を取得 |
| GTIN-13 バーコードで食品を検索 |
| 検索のオートコンプリート候補を取得 |
🍳 レシピ (公開) | |
| フィルター付きでレシピを検索 |
| 材料と手順を含むレシピ詳細を取得 |
📚 リファレンス (公開) | |
| 食品カテゴリを取得 |
| 食品サブカテゴリを取得 |
| 食品ブランドを取得 |
| レシピタイプを取得 |
📝 食事日記 (プロフィール認証) | |
| 指定日の食事日記エントリーを取得 |
| 月間栄養サマリーを取得(1日あたりのカロリーと栄養素) |
| 食事日記エントリーを追加 |
| 食事日記エントリーを編集 |
| 食事日記エントリーを削除 |
| エントリーを別の日にコピー |
| 保存済み食事を指定日にコピー |
⭐ お気に入り (プロフィール認証) | |
| お気に入りの食品を取得 |
| お気に入りから食品を削除 |
| 最もよく食べる食品を取得 |
| 最近食べた食品を取得 |
| お気に入りのレシピを取得 |
| レシピをお気に入りに追加 |
| お気に入りからレシピを削除 |
🍽️ 保存済み食事 (プロフィール認証) | |
| 保存済み食事を取得 |
| 保存済み食事を作成 |
| 保存済み食事を編集 |
| 保存済み食事を削除 |
| 保存済み食事のアイテムを取得 |
| 保存済み食事に食品を追加 |
| 保存済み食事アイテムを編集 |
| 保存済み食事からアイテムを削除 |
⚖️ 体重 (プロフィール認証) | |
| 指定日の体重を記録 |
| 月間の体重履歴を取得 |
🏃♂️ 運動 (プロフィール認証) | |
| 運動タイプを取得 |
| アクティビティ間で運動時間を移動 |
| 月間の運動データを取得 |
| 曜日ごとの運動テンプレートを保存 |
👤 プロフィール (プロフィール認証) | |
| ユーザープロフィール情報を取得 |
| カスタム食品を作成(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 など)
🔧 開発
リポジトリをクローン
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 ファイルを参照してください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceProvides AI assistants with real-time access to nutrition data from USDA FoodData Central and FatSecret, enabling accurate answers with citations for nutrition queries.
- Alicense-qualityDmaintenanceEnables searching and retrieving nutrition data, recipes, and managing food diary entries through the FatSecret API.MIT
- Alicense-qualityDmaintenanceEnables AI assistants to read and write MyFitnessPal data, including food diary, exercises, body measurements, nutrition goals, and water intake.MIT
- Alicense-qualityDmaintenanceEnables AI assistants to read and log MyFitnessPal nutrition data, including tracking calories, macros, searching foods, and adding meals through natural conversation.17MIT
Related MCP Connectors
Spoonacular food API: recipes, nutrition, ingredients, meal plans. Free 150/day.
Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.
Personal nutrition tracking — log meals, track macros, review history, import from another app.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/fliptheweb/fatsecret-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server