Cursor is the fastest-growing MCP client, and the best place to run Apple Health queries right next to your code. Setup takes about two minutes: one mcp.json entry, a local data directory, and a live reload.
The catch most guides skip: Composer does not auto-discover MCP tools. You have to name the server in the prompt, or the panel can show green with all 14 read-only tools while the model ignores every one of them.
This walks the exact mcp.json for global and per-project use, the two absolute paths you reuse everywhere (SERVER_PATH and HEALTH_DATA_DIR), how to verify the connection in Cursor's MCP panel, and the Composer prompts that actually return data: get_trends for a 14-day resting heart rate trend, compare_periods for HRV and sleep, correlate_metrics for both.
No Docker, no cloud account, no CSV export. The server reads a local .health-cache.json, covers 190 HealthKit metrics, and ships zero dependencies.
Top comments (0)