Skip to main content
Glama
burakdirin

apple-health-export-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AH_DB_PATHYesPath to the SQLite database file containing Apple Health data.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_typesA

List which health metrics exist in this export, with row counts and date spans.

Call this first to discover the exact type strings to pass to get_quantity.

list_sourcesA

List which sources/devices wrote a metric, with counts and date spans.

Use it to see why a sum differs across devices, or to pick a source for get_quantity.

get_quantityA

Aggregate a numeric metric (steps, weight, heart rate, energy…) over a date range.

Call list_types first to find the exact type string. Pick agg by metric kind: sum for cumulative (steps, active energy), avg for sampled (weight, heart rate). sum auto-deduplicates parallel devices (Watch + iPhone + apps) per day, so it does not over-count (ADR-0010); pass source to force one device. avg/min/max are not deduped. Returns [{period, value, n}].

get_sleepA

Per-night sleep stage durations (minutes), attributed to the wake-up day.

Returns [{night, asleep_min, rem_min, deep_min, core_min, awake_min, in_bed_min}]. Older nights may report only in_bed_min (legacy devices lack stage detail).

get_workoutsA

Workout summary per activity type in a date range: count, total & avg minutes.

Prompts

Interactive templates invoked by user choice

NameDescription
daily_summaryA single day's health snapshot: steps, sleep, resting heart rate, workouts, energy.
weekly_reviewCalendar-week review (Mon–Sun): training load, sleep, recovery, and a recommendation.
monthly_summaryA month in review: totals, averages, body-weight change, and trend.
yearly_summaryA year in review: big-picture fitness trajectory and milestones.
readiness_checkShould I train hard today? Based on last night's sleep and recent recovery markers.
sleep_reportSleep deep-dive over a range: duration, stage breakdown, and consistency.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/burakdirin/apple-health-export-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server