1. Conduid
  2. Healthcare
  3. io.github.PhilipAD/health-export-mcp
MCP server · Healthcare

io.github.PhilipAD/health-export-mcp

Query 190 Apple Health metrics from any MCP agent — zero-dependency, read-only, local-first.

Unclaimed healthcare
54Fair

Scored 21 hours ago · breakdown

About io.github.PhilipAD/health-export-mcp

io.github.PhilipAD/health-export-mcp is an MCP server published by PhilipAD in the Healthcare category: query 190 Apple Health metrics from any MCP agent — zero-dependency, read-only, local-first. Conduid read 21 tools from its source: add_event, compare_periods, correlate_metrics, get_check_ins, get_cycle_context, get_freshness and 15 more. It is published to npm as health-export-mcp and starts with npx.

The repository has 12 stars and 0 forks, and its last commit was on 27 Nov 2026. Conduid has no tagged release on record for it. Its topics include healthcare.

Install

Claude Code
claude mcp add io-github-philipad-health-export-mcp -- npx -y health-export-mcp
npx
npx -y health-export-mcp
From source
git clone https://github.com/PhilipAD/health-export-mcp

Tools (21)

add_eventLog an event the user states (a medication start, a trip) into `health-events-agent.json`, the one file this server writes. Idempotent by `clientEventId`.
ParameterTypeDescription
clientEventIdstringOptional idempotency key: the same key never logs a second event.
date *anyLocal day the event happened or started, YYYY-MM-DD.
endDateanyLast day of a range event (inclusive), YYYY-MM-DD, not before date. Omit for a point event.
notestringOptional longer note, at most 2000 characters.
tagsarrayOptional tags for filtering, e.g. ["magnesium"]. At most 20.
title *stringShort description, e.g. "Started magnesium 300 mg". At most 200 characters.
type *stringEvent type: medication, habit, visit, life, shift, episode, travel or other. Range types (shift, travel, episode) usually carry an endDate.
compare_periodsA 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).
ParameterTypeDescription
anchorobjectBuild both periods around a logged event instead of passing dates: periodA is the {days} days before the event date, periodB the {days} days after, the event day itself excluded from both. Get event ids from list_events (app and agent-logged events both work). Pass either anchor or periodA/periodB, not both.
excludeTravelDaysany
metric *string
periodAobject
periodBobject
correlate_metricsPearson correlation between two metrics with a 0..3 day lag. Association, not causation, always stated.
ParameterTypeDescription
endany
laginteger0 to 3 days. lag 1 pairs metricA on day d with metricB on the following day.
metricA *string
metricB *string
startany
get_check_insMorning check-ins the user chose to share (`health-check-ins.json`, off by default in the app): self-rated feeling 1 to 5, note, intention and whether it happened, plus a summary. A self-rating, not a measurement.
ParameterTypeDescription
endany
startany
get_cycle_contextDay-in-cycle and coarse phase derived from logged period starts. Never predictive.
ParameterTypeDescription
dateany
get_freshnessHow current the export is: `stale` judged on the core files (daily cache, sleep sessions) against a stated threshold (26 h by default, `HEALTH_STALE_AFTER_HOURS`, or `maxAgeHours`), `age_hours`, `as_of`, `last_data_date`, per-file write times. `state: "stale_copy"` (with a `stale_copy` list) when the phone's `.health-manifest.json` or iCloud says this Mac holds an older copy of a core file than the phone wrote. Same rule as the `status --max-age` cron gate.
ParameterTypeDescription
maxAgeHoursnumberTreat the data as stale when the newest write is older than this many hours (greater than 0, at most 8760). Default ${store.DEFAULT_STALE_AFTER_HOURS}, or HEALTH_STALE_AFTER_HOURS when set.
get_health_metricsDaily 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`). Blood pressure at day granularity also lists the individual `readings` (`health-readings.json`).
ParameterTypeDescription
aggregationstring
endany
filterDaysobjectRestrict to days covered by matching logged events (health-events.json and health-events-agent.json): endDate ranges cover every day inclusive, point events cover their single day, negate:true keeps only days NOT covered. The answer states how many days matched. Example: HRV on night-shift blocks vs days off.
granularityany
limitany
metricstringMetric name, e.g. step_count, heart_rate, sleep_analysis. Omit for all.
startany
get_intradayThe hour-by-hour window from the app's hourly automations (`health-intraday.json`, app 1.4+): yesterday and today, replaced each run, with each hour's `Min`/`Max` for discrete metrics when the app writes them.
ParameterTypeDescription
metricstringMetric name to filter, e.g. heart_rate. Omit for every metric in the window.
get_mcp_statusHealth check: source, metric/workout counts, which context files exist, latest data date, and a `freshness` summary. Call first.
get_profileOpted-in context fields (conditions, medications, goals, allergies, notes) plus `presentFields`. Absent fields were withheld, never "none".
get_sleep_sessionsClustered sleep sessions attributed to the waking day; split nights returned as separate sessions, duplicate copies of one night collapsed (`collapsedDuplicates`).
ParameterTypeDescription
dayanyA single waking day, YYYY-MM-DD.
endanyLast waking day (inclusive), YYYY-MM-DD.
startanyFirst waking day (inclusive), YYYY-MM-DD.
get_strength_logThe strength log typed into the iOS app (`health-strength.json`, opt-in, off by default, from the iCloud or folder export or from the LAN push): each session with every set as entered, `volumeKg`, `workingSets`, an Epley `bestEstimateKg` per exercise, all-time records, and the user's saved routines. Filter by `exercise`, `start`, `end`. Missing file → `available:false`.
ParameterTypeDescription
endanyLast day (inclusive), YYYY-MM-DD.
exercisestringOne exercise, by the exact name in the log (case-insensitive), e.g. Back squat. Omit for every exercise.
startanyFirst day (inclusive), YYYY-MM-DD.
get_structured_exportClean JSON for chosen metrics/range, paginated with a cursor.
ParameterTypeDescription
cursorstringOpaque cursor from a previous call's nextCursor.
endany
granularityany
limitany
metricsarray
startany
get_trendsRecent N-day window vs the prior N days: change, % change, direction. Supports `excludeTravelDays`.
ParameterTypeDescription
excludeTravelDaysany
metric *string
windowintegerdays per window (default 7)
get_workoutsWorkouts by activity/date with pagination; includes heart rate, running dynamics, cycling power, intervals and `hasRoute` when exported.
ParameterTypeDescription
activityTypestringActivity name (e.g. Running) or raw HealthKit activity id (e.g. 37).
cursorstringOpaque cursor from a previous call's nextCursor.
endany
limitintegerWorkouts per page (default 50, max 200).
startany
list_eventsLogged context events (medication, habit, visit, life, shift, episode, travel) with type/tag/date filters, from the app and from `add_event`, each labelled `source: "app"` or `"agent"`.
ParameterTypeDescription
endany
startany
tagstringMatch events carrying this tag.
typestringEvent type, e.g. medication, habit, visit, life, shift, episode, travel, other. Unknown types pass through and can be filtered by their stored string.
list_metricsEvery available metric with unit, day count, and date range.
list_tagsTags logged in the app (`health-tags.json`, opt-in there and off by default): lifestyle tags and supplements by name, never an amount. `{kind: all, supplement or lifestyle, start, end}`; one row per tag plus the names per day.
ParameterTypeDescription
endany
kindstringWhich tags: 'all' (default), 'supplement' or 'lifestyle'.
startany
query_health_dataNatural-language convenience: *"average HRV last month"* routed to structured results.
ParameterTypeDescription
question *string
remove_eventRemove an event logged with `add_event`. Events logged in the iOS app are edited there.
ParameterTypeDescription
id *stringThe agent event id from list_events or add_event.
resolve_metricCanonical name and unit for any spelling (`steps`, `StepCount`, `Body Weight`, `hrv`), unit variants with exact formulas, an optional `{value, unit}` conversion, and whether the export holds it. Ambiguous words come back with candidates, never guessed. The data tools accept the same aliases and report `resolvedFrom`. When the export carries per-source attribution (app builds that write `src`/`by` on daily points and a `health-sources.json`, cache schema minor 2), the answer adds a `sources` block naming the devices that fed the export, which one won each metric and the priority rules, and `sourceMerge` reports disagreement as visible; older exports report it as not available.
ParameterTypeDescription
name *stringAny spelling of a metric, e.g. steps, StepCount, Body Weight, VO2 max.
unitstringUnit of value, e.g. lb, mmol/L, degF, km, %. Unknown units are refused, never guessed.
valuenumberOptional value to convert into the canonical unit. Pass with unit.

Security checks

6 checks have not been run yet.

Questions

About io.github.PhilipAD/health-export-mcp

How do I install io.github.PhilipAD/health-export-mcp?

In Claude Code, run claude mcp add io-github-philipad-health-export-mcp -- npx -y health-export-mcp. Other MCP clients take the command after "--" in their server configuration.

Is io.github.PhilipAD/health-export-mcp safe to use with an AI agent?

Its trust score is 54 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.PhilipAD/health-export-mcp still maintained?

Yes — the last commit was 6 days ago. The repository has 12 stars and 0 forks.

What tools does io.github.PhilipAD/health-export-mcp provide?

Conduid read 21 tools from the source: add_event, compare_periods, correlate_metrics, get_check_ins, get_cycle_context, get_freshness, get_health_metrics, get_intraday and 13 more. 18 of them publish their parameters, listed under Tools above.