Developer · Developer Experience & MCP · 2026
How to Connect Apple Health to Cursor IDE & Windsurf via MCP
Published October 8, 2026 · Updated November 25, 2026 · 6 min read
Direct Answer / Quick Setup
To give Cursor IDE or Windsurf live access to your Apple Watch biometrics (sleep, HRV, recovery, workouts), configure the Vaultbeat local MCP server.
Pair your iPhone once with uvx vaultbeat-apple-health@latest bind, then add the server to .cursor/mcp.json using command uvx and args ["vaultbeat-apple-health@latest", "serve", "--transport", "stdio"]. Cursor Composer can then invoke local health tools on demand.
Why Connect Apple Watch Biometrics to Your Code Editor?
Software engineering is an endurance discipline. Before pushing a risky database migration or starting a long refactoring sprint, physiological readiness tells you more than coffee intake:
Cognitive Readiness Self-Check
Check deep sleep duration and overnight HRV against your 30-day baseline before signing off on high-complexity refactors.
Deterministic Correlations
Invoke correlate_metric_series and compare_metric_periods to compute exact statistical relationships instead of LLM guesswork.
Two-Way Ergonomic Logging
Use log_symptom, log_state_of_mind, and log_note_append to log wrist strain, headaches, or focus notes directly from Composer.
Sub-Daily Intraday Resolution
Inspect daytime HRV variation with get_intraday("hrv_sdnn") across demanding release weeks.
Step-by-Step Cursor IDE MCP Configuration
Install Vaultbeat on iPhone
Install Vaultbeat on the App Store and grant HealthKit read permissions. Local recording on iPhone is free forever.
Bind Your Development Machine
Ensure uv is installed (brew install uv), then run:
uvx vaultbeat-apple-health@latest bind
Scan the QR code in the Vaultbeat iOS app under the MCP tab. Only your computer’s public key is exchanged; the private key stays on your development machine.
Add to Cursor IDE or Windsurf
Open Settings → Features → MCP or paste this into .cursor/mcp.json:
{
"mcpServers": {
"vaultbeat-health": {
"command": "uvx",
"args": [
"vaultbeat-apple-health@latest",
"serve",
"--transport",
"stdio"
]
}
}
}Pricing note: Pairing starts a 30-day free trial of encrypted cloud sync and full MCP access. Continued access is Vaultbeat Pro ($9.99/mo, $29.99/yr, or $74.99 lifetime; one membership lets a couple view shared data; each person’s own AI requires a membership or live trial).
Real Developer Prompts to Try in Composer
"Call get_sleep_nights for last night and inspect my deep sleep ratio against my 30-day baseline via get_metric_trend('deep_sleep_minutes', days=30). Summarize my recovery before I start today’s concurrency refactor."
"Compare my HRV from this release week against last week using compare_metric_periods('hrv_sdnn', days=7), and correlate active_energy with deep_sleep_minutes over 30 days."
"Log a moderate tension headache after 4 hours of debugging using log_symptom(symptom_type='headache', severity='moderate', triggers=['screen_fatigue']) and append a short note."
"Query my intraday HRV samples for today using get_intraday('hrv_sdnn'). How did HRV shift across the workday?"
Zero-Knowledge Privacy: Built for Engineers
- On-device sealing: Every metric is encrypted on your iPhone with Curve25519 ECDH + AES-GCM before transport.
- Local decryption: Decryption happens strictly in your local MCP process. Our relay routes ciphertext only.
- Observed facts only: Vaultbeat passes verified HealthKit observations with explicit coverage metadata — never clock-inferred guesses.
- Open source: Audit the local MCP server on GitHub.
FAQ
Frequently Asked Questions
Can Cursor IDE connect to Apple Health using MCP?
What MCP configuration is required for Cursor IDE?
Is my health data visible to Cursor or Anthropic servers?
Vaultbeat · Apple Health MCP
Empower Cursor with Biometric Context
Continuous E2EE Apple HealthKit sync over local MCP · 30-day free trial.