MyFitnessPal MCP Server

Connect Nutrition
Data to AI

16 tools for food diary access, macro tracking, weight trends, and nutrition analysis — right inside Claude Desktop.

What You Can Do

From daily meals to long-term nutrition trends.

🔒

Secure Connection

Auto-extracts session from your browser. No tokens to copy, no keys to manage.

🍲

Food Diary

Full daily diary with per-meal breakdowns — Breakfast, Lunch, Dinner, Snacks — and nutrition totals.

🥩

Macro Tracking

Protein, carbs, fat distribution with percentage analysis and daily goal comparison.

Weight Trends

Weight history, rate of change per week, min/max/avg, and trend direction over any date range.

🔍

Food Database

Search the MFP food database and get detailed nutritional information for any item.

📊

Nutrition Analytics

Calorie trends, macro balance analysis, nutrition reports over custom date ranges, and estimated weight impact.

Quick Start

Up and running in 3 steps.

01

Install uv

Install the fast Python package manager. It includes uvx for running packages without setup.

curl -LsSf https://astral.sh/uv/install.sh | sh
02

Log In to MyFitnessPal

Log in to myfitnesspal.com in Chrome or Firefox. The server auto-extracts your session cookies — no manual copying required.

03

Add to Claude

Add to your Claude Desktop config and restart.

{
  "mcpServers": {
    "myfitnesspal": {
      "command": "/path/to/uvx",
      "args": ["mfp-mcp-server"]
    }
  }
}

Try Asking

Connect your Port, then ask.

🍲 "What did I eat today?"
🥩 "Show my macro breakdown for this week"
📈 "What's my calorie trend over the last 14 days?"
"How is my weight trending this month?"
🔥 "Am I hitting my protein goals?"
📊 "Compare my nutrition yesterday vs last Monday"