Skip to main content
Glama
PhilipAD

health-export-mcp

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_metricsB

Get daily 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.

get_trendsB

Compare the most recent N-day window against the prior N days for a metric — returns change, percent change and direction (up/down/flat).

compare_periodsB

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

get_structured_exportB

Return clean structured JSON for the chosen metrics/date range — ideal to drop straight into an agent's context window.

query_health_dataA

Natural-language convenience: pass a question (e.g. "average HRV last month") and get routed structured results. Prefer the specific tools above when you can.

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