Skip to main content
Glama
PhilipAD

Health Export AI

by PhilipAD

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HEALTH_LISTENNoSet to '1' to enable LAN push receiver
PAIRING_SECRETNoOptional pairing code from the iOS app to gate access
HEALTH_DATA_DIRNoPath to the directory containing .health-cache.json from Health Export AI. Default: ~/Library/Mobile Documents/iCloud~ai~healthexport~app/Documents~/Library/Mobile Documents/iCloud~ai~healthexport~app/Documents

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_mcp_statusA

Health check: data source, how many metrics/workouts are available, and the most recent data date. Call this first to confirm the bridge is connected.

list_metricsA

List every available Apple Health metric with its unit, day count, and date range. Use this to discover metric names before querying.

get_health_metricsA

Get values for a metric (or all metrics) over an optional date range, with an aggregate (avg/sum/min/max/latest). The core data-retrieval tool. Every result carries a coverage block giving the metric's real firstDate/lastDate/days — check it before trusting a long window, and note that aggregate is always computed over the full range even when points are rolled up.

get_trendsA

Compare the most recent N-day window against the prior N days for a metric — returns change, percent change and direction (up/down/flat). Also returns daysAvailable and windowSatisfied: if windowSatisfied is false the file does not hold enough history for the window you asked for, and the comparison is over less data than requested.

compare_periodsB

Compare a metric between two arbitrary date periods (A vs B) — returns each aggregate plus the change and percent change.

get_structured_exportA

Return clean structured JSON for the chosen metrics/date range. Paginated: the result carries nextCursor when more metrics remain — pass it back as cursor for the next page. Prefer naming the metrics you need and a date range; calling it bare over a full history is a lot of data.

query_health_dataA

Natural-language convenience: pass a question and get routed structured results. Prefer the specific tools above when you can — and call list_metrics first to see how much history exists, since this tool answers over whatever the file holds.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

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/PhilipAD/health-export-mcp'

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