
adamwalt/myfitnesspal-mcp-python
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
adamwalt/myfitnesspal-mcp-pythonは[[https://github.com/adamwalt/myfitnesspal-mcp-python.からインポートされたMCPサーバーの候補です
概要
adamwalt/myfitnesspal-mcp-pythonは[[https://github.com/adamwalt/myfitnesspal-mcp-python.からインポートされたMCPサーバーの候補です
概要(AI 翻訳)
ClaudeのようなAIアシスタントがMyFitnessPalデータと相互作用することを可能にするモデルコンテキストプロトコル(MCP)サーバーは、食品日記、演習、体測定、栄養目標、および水摂取を含む。
##特徴
| ツール | タイプ | 仕様 | 仕様 | 仕様 |
お問い合わせ
| [mfp_get_diary | 読む | 食品日記の投稿は随時受け付けております |
| [[T1] | 読む | MyFitnessPalフードデータベースの検索 |
| [mfp_get_food_details | 読む | 食品項目の栄養情報 |
| [mfp_add_food_to_diary | 執筆 | 特定の食事と日付のためにあなたの日記に食料品を追加 |
| [mfp_remove_food_from_diary | 日記 | ログアウト
|【[[T5]】 | ライティング | 栄養パネルでプライベートな食をつくり出す |
| 【[[T6]】 | 読む | 独自のカスタム食品(個人検索では表示されません) |
| 【[T7]】 | 注文食品の1つを削除 |
| 【[T8] | 読む | 体重・体測定履歴 |
| [mfp_set_measurement | ライティング | 体重・体計測のログ |
| 【[T10] | 読む | 記録的な練習(心臓・筋力) |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MyFitnessPal MCP Server
A Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with your MyFitnessPal data, including food diary, exercises, body measurements, nutrition goals, and water intake.
Features
| Tool | Type | Description |
|---|---|---|
mfp_get_diary |
Read | Get food diary entries for any date |
mfp_search_food |
Read | Search the MyFitnessPal food database |
mfp_get_food_details |
Read | Get detailed nutrition info for a food item |
mfp_add_food_to_diary |
Write | Add a food item to your diary for a specific meal and date |
mfp_remove_food_from_diary |
Write | Remove a logged entry from your diary |
mfp_create_custom_food |
Write | Create a private custom food with a full nutrition panel |
mfp_list_own_foods |
Read | List your own custom foods (private ones do not appear in search) |
mfp_delete_custom_food |
Write | Delete one of your custom foods |
mfp_get_measurements |
Read | Get weight/body measurement history |
mfp_set_measurement |
Write | Log a new weight or body measurement |
mfp_get_exercises |
Read | Get logged exercises (cardio & strength) |
mfp_get_goals |
Read | Get daily nutrition goals |
mfp_set_goals |
Write | Update daily nutrition goals |
mfp_get_water |
Read | Get water intake for a date |
mfp_set_water |
Write | Log water intake for a date |
mfp_get_steps |
Read | Get daily step counts synced from Apple Health / devices |
mfp_log_fast |
Write | Log a completed intermittent fasting window (start + end) |
mfp_update_fast |
Write | Update the start/end times of an existing fasting entry |
mfp_delete_fast |
Write | Delete a fasting entry by id |
mfp_get_report |
Read | Get nutrition reports over a date range |
refresh_browser_cookies |
Utility | Extract and save session cookies from browser |
How diary writes work
MyFitnessPal has no public API. Reads here are scraped from the website via
python-myfitnesspal, and diary
writes go through MFP’s internal v2 JSON API — the same one their web client uses,
authenticated with your existing session token.
Custom-food writes (mfp_create_custom_food, mfp_list_own_foods,
mfp_delete_custom_food) use a different endpoint family: MFP’s v2 API exposes no
custom-food create, so these call the same cookie-authenticated web endpoints their
website uses (/api/auth/csrf, /api/services/users/foods/mine, /api/services/foods).
No browser needs to be running — the stored session cookies are sufficient.
That interface is undocumented and was determined by observing the web client. It works today,
but MyFitnessPal can change it without notice. They have already done so once: this server
originally posted to /food/diary/{user}/add, which now returns 404, leaving food logging
インストール
docker run -it --rm \設定
{
"mcpServers": {
"myfitnesspal": {
"command": "/Users/yourname/myfitnesspal-mcp-python/venv/bin/python",
"args": ["-m", "mfp_mcp.server"],
"env": {
"MFP_USERNAME": "gAAAAAB...<encrypted_email>",
"MFP_PASSWORD": "gAAAAAB...<encrypted_password>"
}
}
}
}