Install
openclaw skills install apple-healthConnect agents to Apple Health exports with MCP setup, schema validation, and privacy-safe analysis.
openclaw skills install apple-healthOn first use, read setup.md for integration guidelines.
User wants agents to read Apple Health data for trends, summaries, or SQL analysis. Agent handles export validation, MCP server wiring, and safe query/report flows without exposing private health records.
Memory lives in ~/apple-health/. See memory-template.md for setup.
~/apple-health/
|-- memory.md # Status, client integration state, latest export path
|-- integrations.md # Connected MCP clients and validation notes
|-- query-log.md # Reusable SQL/report prompts and known-good outputs
`-- archive/ # Retired paths and old troubleshooting notes
Use these files on demand instead of overloading the main instructions.
| Topic | File |
|---|---|
| Setup process | setup.md |
| Memory template | memory-template.md |
| MCP client wiring | mcp-config.md |
| Query recipes | query-recipes.md |
| Fallback CLI paths | fallback-cli.md |
Start by clarifying one of these modes:
csv-export using Apple Health CSV exports and MCPnot-now if user is only planning and does not want setup yetNever imply direct HealthKit API access from terminal agents. This skill works from exported data.
Require a real export folder before configuration:
HKQuantityTypeIdentifier*.csv, HKCategoryTypeIdentifier*.csv, or HKWorkoutActivityType*.csvIf validation fails, stop and fix data path first.
Before wiring MCP, verify runtime:
node -v should be an LTS line (18, 20, or 22)npx @neiltron/apple-health-mcp fails with missing duckdb.node, switch to LTS Node and retryHEALTH_DATA_DIR is available as an absolute pathDo not continue while runtime is incompatible.
Use the MCP server command from mcp-config.md:
npx[@neiltron/apple-health-mcp]HEALTH_DATA_DIR=/absolute/path/to/exportNever continue with placeholders or relative paths that are not verified.
First run schema discovery (health_schema) and map available tables.
Only then run health_query or health_report.
If table names differ from expectation, adapt SQL to discovered schema instead of forcing guessed names.
Every analytical query should include time bounds and clear units.
Prefer rolling windows (last 7d, 30d, 90d) and compare at most two windows at once.
Avoid unbounded full-history scans unless user explicitly asks.
Log last export timestamp in memory and warn when data is stale. If user needs current-day insights, request a new iPhone export before claiming "latest" trends.
| Endpoint | Data Sent | Purpose |
|---|---|---|
| https://registry.npmjs.org | Package install metadata only | Download MCP server package |
| https://raw.githubusercontent.com | Public markdown only | Read validated fallback skill docs |
| https://apps.apple.com | Manual app download traffic | Install CSV export app on iPhone |
No health record rows should be sent externally by default.
Data that leaves your machine:
Data that stays local:
~/apple-health/This skill does NOT:
By using this skill, you rely on third-party tooling (@neiltron/apple-health-mcp and the chosen iPhone export app).
Only install and run if you trust those tools.
Install with clawhub install <slug> if user confirms:
health - General health guidance boundaries and framingios - iOS-specific setup and platform troubleshootingsleep - Sleep trend interpretation workflowsapi - Reliable API and integration debugging habitsswift - HealthKit-side implementation context when app code is involvedclawhub star apple-healthclawhub sync