Read-only, local queries of Apple Health metrics exported by the MetricBridge iOS app.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add health-export --env HEALTH_DATA_DIR='<HEALTH_DATA_DIR>' -- npx -y health-export-mcp~/.codex/config.toml
[mcp_servers.health-export]
command = "npx"
args = ["-y", "health-export-mcp"]
env = { HEALTH_DATA_DIR = "<HEALTH_DATA_DIR>" }
# codex mcp add health-export --env HEALTH_DATA_DIR='<HEALTH_DATA_DIR>' -- npx -y health-export-mcp~/.cursor/mcp.json
{
"mcpServers": {
"health-export": {
"command": "npx",
"args": [
"-y",
"health-export-mcp"
],
"env": {
"HEALTH_DATA_DIR": "<HEALTH_DATA_DIR>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"health-export": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"health-export-mcp"
],
"env": {
"HEALTH_DATA_DIR": "<HEALTH_DATA_DIR>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"health-export": {
"command": "npx",
"args": [
"-y",
"health-export-mcp"
],
"env": {
"HEALTH_DATA_DIR": "<HEALTH_DATA_DIR>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"health-export": {
"command": "npx",
"args": [
"-y",
"health-export-mcp"
],
"env": {
"HEALTH_DATA_DIR": "<HEALTH_DATA_DIR>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"health-export": {
"command": "npx",
"args": [
"-y",
"health-export-mcp"
],
"env": {
"HEALTH_DATA_DIR": "<HEALTH_DATA_DIR>"
}
}
}
}Environment variables
HEALTH_DATA_DIR
Replace the placeholders with your own credentials and keep them out of version control.