Health4ai MCP Server

Apple Health holds years of your biometric data — sleep stages, HRV, heart rate, workouts, VO₂ max, and 150+ other metrics. health4.ai makes all of it queryable from Claude, ChatGPT, Cursor, Ollama…

Local serverstdio

What is the Health4ai MCP Server?

health4ai is an MCP project maintained in the jefflitt1/health4ai repository. The maintainer describes its purpose as “Apple Health holds years of your biometric data — sleep stages, HRV, heart rate, workouts, VO₂ max, and 150+ other metrics. health4.ai makes all of…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using python. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares DATABASE_URL, HEALTHKIT_USER_ID. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
never_recordedthis metric has never produced a sample for you. For steps,
empty_windownothing in the window you asked about, but the metric has data at
get_health_summaryOverview of key metrics for the past N days
get_sleepPer-night sleep breakdown with REM, Deep, Core stages. One source per night: Oura > Apple Watch > Whoop > Garmin > Withings > whichever other source (iPhone…
get_hrv_trendDaily HRV (SDNN) with rolling comparison and trend
get_daily_snapshotEverything recorded for a specific date
get_workoutsRecent workouts with type, duration, distance, calories
query_metricRaw time-series for any HealthKit metric type
get_long_term_trendMonthly aggregates over years (raw + summary tiers)
get_coaching_briefRecovery status, sleep quality (same one-source-per-night rule as get_sleep), training load, fitness markers
search_recordsFind days where a metric crossed a threshold
get_metric_statsPersonal baseline: min/max/mean/percentiles
compare_periodsCompare a metric between two date ranges

How to install the Health4ai MCP Server

{
  "mcpServers": {
    "health4ai": {
      "command": "python",
      "args": [
        "/path/to/health4ai/mcp-server/main.py"
      ],
      "env": {
        "DATABASE_URL": "postgresql://...",
        "HEALTHKIT_USER_ID": "<your auth user UID>"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
DATABASE_URLDeclared in the maintainer’s client configuration.Check documentation
HEALTHKIT_USER_IDDeclared in the maintainer’s client configuration.Check documentation