PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Servershealth-and-wellnessmcp-myfitnesspal
返回「health-and-wellness」

mcp-myfitnesspal

modelscope·@ai-mcp-garage/mcp-myfitnesspal

health-and-wellness0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

MyFitnessPal MCP Server

A FastMCP server that retrieves your MyFitnessPal nutrition data through the Model Context Protocol.

Quick Start

Local Development

  1. Prerequisites: Python 3.12+, uv, MyFitnessPal account
  2. Install dependencies: uv sync
  3. Log into MyFitnessPal in your browser (Chrome, Firefox, Safari, or Edge)
  4. Test the server: uv run python test_client.py

Deployment (Server/Docker)

For environments without a browser:

  1. Export cookies from your local browser:

    uv run python export_cookies.py
    
  2. Deploy with the generated .env file - no browser needed!

See Deployment Guide for Docker, systemd, and cloud deployment options.

Features

  • Daily nutrition summary (calories, macros, water)
  • Detailed meal-by-meal breakdown
  • Exercise tracking (cardio + strength)
  • Macro & micronutrient analysis
  • Water intake monitoring
  • Date range summaries with trends

Configuration

Add to your MCP client config (e.g., .cursor/mcp.json):

{
  "mcpServers": {
    "myfitnesspal": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mfp-mcp", "python", "main.py"]
    }
  }
}

Documentation

  • Full Documentation - Complete setup and usage guide
  • Deployment Guide - Docker, server, and cloud deployment
  • Quick Start Guide - Fast setup instructions
  • Project Summary - Architecture and design decisions
  • Implementation Notes - Technical details

How It Works

Uses the python-myfitnesspal library (GitHub version) which:

  • Extracts cookies from your browser automatically
  • Scrapes MyFitnessPal website for data
  • No credentials stored in files
  • Works with Chrome, Firefox, Safari, and Edge

Cookie Authentication

Browser-based (default):

  • Automatically extracts cookies from your local browser
  • Works out of the box if you're logged into MyFitnessPal

Environment variable (for Docker/servers):

  • Set MFP_COOKIES environment variable with exported cookies
  • Use export_cookies.py utility to extract cookies beforehand:
    uv run python export_cookies.py
    
  • Perfect for environments without browser access (Docker containers, remote servers, etc.)
  • Cookies expire after ~30 days, re-export when needed

Project Structure

mfp-mcp/
 docs/              # All documentation
 myfitnesspal/      # External library (GitHub)
 main.py            # FastMCP server
 api_client.py      # Client wrapper
 utils.py           # Helper functions
 test_client.py     # Test script
 pyproject.toml     # Dependencies

Requirements

  • Python 3.12+
  • uv package manager
  • Active MyFitnessPal session in browser
  • fastmcp 2.12+
  • lxml, browser-cookie3, measurement

License

For personal use and educational purposes. Respect MyFitnessPal's Terms of Service.

Credits

  • python-myfitnesspal: https://github.com/coddingtonbear/python-myfitnesspal
  • FastMCP: https://github.com/jlowin/fastmcp

相关 MCP Servers(来自「health-and-wellness」)

MCP急救医疗规划器

与Google地图集成,以在紧急情况下定位和评估医疗设施,帮助用户根据医疗需求、紧急程度和设施能力找到合适的医院和诊所。

@manolaz/emergency-medicare-planner-mcp-server

Strava健康数据分析服务器

一个模型上下文协议服务器,为语言模型提供对Strava API数据的访问,使它们能够查询和分析Strava上的运动员活动。

@tomekkorbak/strava-mcp-server

DICOM MCP Server (数字成像与通信医学上下文协议服务器)

一个连接性测试服务器,通过克劳德模型上下文协议支持DICOM网络操作(如C-ECHO),并支持节点配置管理。

@fluxinc/dicom-mcp-server

健康记录模型上下文协议服务器

一个模型上下文协议服务器,通过使用SMART on FHIR将人工智能工具与电子健康记录连接起来,允许对兼容电子健康记录中的患者数据进行安全的搜索、查询和分析。

@jmandel/health-record-mcp

临床试验数据平台

提供了对ClinicalTrials.gov AACT数据库的访问, enables分析临床试验数据、跟踪发展趋 势以及生成治疗景观洞察。

@navisbio/ctgov_MCP

Cicatriiz

暂无描述。

@Cicatriiz/healthcare-mcp-public

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/ai-mcp-garage-mcp-myfitnesspal/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

uv run python export_cookies.py ``` 2. **Deploy** with the generated `.env` file - no browser needed! See **[Deployment Guide](docs/DEPLOYMENT.md)** for Docker, systemd, and cloud deployment options. ## Features - Daily nutrition summary (calories, macros, water) - Detailed meal-by-meal breakdown - Exercise tracking (cardio + strength) - Macro & micronutrient analysis - Water intake monitoring - Date range summaries with trends ## Configuration Add to your MCP client config (e.g., `.cursor/mcp.json`):

基本信息

分类
health-and-wellness / web-scraping / fitness-tracking
运行方式
No
许可证
MIT License
详情文件
ai-mcp-garage-mcp-myfitnesspal.md