LoseIt MCP Server

Nutrition & health tracking for Claude Code

Quick Install

curl -fsSL https://loseit.0x17.com/install.sh | sh

Automatically detects your platform and installs to /usr/local/bin

Manual Downloads

Configuration

After installation, edit your config and add the MCP server to Claude Code:

vim ~/.loseit-mcp/config
claude mcp add loseit -- loseit-mcp

The install script creates a template config file at ~/.loseit-mcp/config

Apple Health Integration (Optional)

Export your Apple Health data to enable body composition, vitals, sleep, and activity tracking:

  1. Open the Health app on your iPhone
  2. Tap your profile picture in the top right
  3. Scroll down and tap Export All Health Data
  4. Save export.zip to your computer and unzip it
  5. Add the export path to your config file:
# In ~/.loseit-mcp/config, uncomment and edit:
APPLE_HEALTH_EXPORT_PATH=/path/to/export.xml

Re-export weekly to keep data fresh. Use refresh_apple_health tool after updating.

Alternative: Environment Variables

You can also configure via environment variables in Claude Code:

claude mcp add-json loseit '{
  "command": "loseit-mcp",
  "env": {
    "LOSEIT_USERNAME": "your_email@example.com",
    "LOSEIT_PASSWORD": "your_password",
    "APPLE_HEALTH_EXPORT_PATH": "/path/to/export.xml"
  }
}'

Features

View full documentation for detailed tool reference and configuration options.