
adamwalt/myfitnesspal-mcp-python
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
adamwalt/myfitnesspal-mcp-python - кандидат на сервер MCP, импортированный из https://github.com/adamwalt/myfitnesspal-mcp-python.
Обзор
adamwalt/myfitnesspal-mcp-python - кандидат на сервер MCP, импортированный из https://github.com/adamwalt/myfitnesspal-mcp-python.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP), который позволяет помощникам ИИ, таким как Клод, взаимодействовать с вашими данными MyFitnessPal, включая дневник питания, упражнения, измерения тела, цели питания и потребление воды.
Особенности
| Инструмент | Тип | Описание
[скрыто] [скрыто] [скрыто] [скрыто] [скрыто] [скрыто]
mfp_get_diary | Читать | Получить записи в дневнике питания на любую дату |
mfp_search_food | Читать | Поиск по базе данных MyFitnessPal
mfp_get_food_details | Читать | Получить подробную информацию о питании для продукта питания |
[[Т3]] Написать Добавьте продукт питания в свой дневник для определенного блюда и даты.
[4][править править вики-текст][править править код]
[[Т5]] | Написать | Создать частную заказную еду с полной диетологической панелью |
mfp_list_own_foods | Читайте | Перечислите свои собственные продукты (частные не появляются в поиске)
[7][править править вики-текст][править править код]
mfp_get_measurements | Читать | Получить историю измерения веса / тела
mfp_set_measurement | Написать | Логировать новый вес или измерение тела |
mfp_get_exercises | Читать | Зарегистрировать упражнения (кардио и сила) |
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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>"
}
}
}
}