Query Apple Health data with AI
## Apple Health MCP Server: Health Data Integration The **Apple Health MCP Server** integrates Apple Health data into Google Antigravity, enabling AI-assisted health tracking, fitness analysis, and wellness monitoring from your Apple devices. ### Why Apple Health MCP? - **Comprehensive Data**: Access steps, heart rate, sleep, workouts, and hundreds of health metrics - **Device Integration**: Data from Apple Watch, iPhone, and connected health devices - **Historical Trends**: Analyze health trends over time for insights - **Privacy First**: Data stays on device with user-controlled access - **Medical Records**: Access clinical health records where available ### Key Features #### 1. Health Metrics ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show my step count and active calories for this week with daily breakdown" }] ) ``` #### 2. Fitness Analysis ```python # Analyze fitness response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Analyze my workout patterns and suggest improvements based on heart rate data" }] ) ``` #### 3. Sleep Tracking ```python # Track sleep response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show my sleep patterns for the past month with quality metrics" }] ) ``` #### 4. Health Trends ```python # View trends response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show resting heart rate trends and identify any concerning patterns" }] ) ``` ### Configuration ```json { "mcpServers": { "apple-health": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-apple-health"], "env": { "HEALTH_EXPORT_PATH": "/path/to/health/export" } } } } ``` ### Use Cases **Fitness Tracking**: Monitor and analyze fitness progress over time. **Health Monitoring**: Track vital health metrics for wellness awareness. **Sleep Optimization**: Analyze and improve sleep quality. **Medical Records**: Access and review health records and lab results. The Apple Health MCP Server brings comprehensive health data into your workflow for wellness insights.
{
"mcpServers": {
"apple-health": {
"mcpServers": {
"apple-health": {
"env": {
"ELASTICSEARCH_URL": "http://localhost:9200"
},
"args": [
"apple-health-mcp"
],
"command": "uvx"
}
}
}
}
}