query_health_data

MCP tool from Health Export MCP by PhilipAD

Natural-language convenience: "average HRV last month" routed to structured results.

How to use it

Project documentation lists query_health_data for the Health Export MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.

Install Health Export MCP

$npx -y health-export-mcp
FULL HEALTH EXPORT MCP LISTING

Other tools in Health Export MCP (13)

compare_periods

A metric across two arbitrary date periods (A vs B), or around a logged event via anchor: {eventId, days} (the event day excluded from both sides).

correlate_metrics

Pearson correlation between two metrics with a 0..3 day lag. Association, not causation, always stated.

get_cycle_context

Day-in-cycle and coarse phase derived from logged period starts. Never predictive.

get_health_metrics

Daily values for a metric (or all) over a date range + an aggregate (avg/sum/min/max/latest). Supports filterDays (restrict to days covered by logged events, with negate).

get_intraday

Today's hour-by-hour window from the app's hourly automations (health-intraday.json, app 1.4+), replaced each run.

get_mcp_status

Health check: source, metric/workout counts, which context files exist, latest data date. Call first.

get_profile

Opted-in context fields (conditions, medications, goals, allergies, notes) plus presentFields. Absent fields were withheld, never "none".

get_sleep_sessions

Clustered sleep sessions attributed to the waking day; split nights returned as-is.

get_structured_export

Clean JSON for chosen metrics/range, paginated with a cursor.

get_trends

Recent N-day window vs the prior N days: change, % change, direction. Supports excludeTravelDays.

get_workouts

Workouts by activity/date with pagination; includes heart rate, running dynamics, cycling power, intervals and hasRoute when exported.

list_events

Logged context events (medication, habit, visit, life, shift, episode, travel) with type/tag/date filters.

list_metrics

Every available metric with unit, day count, and date range.