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

1

Install Vaultbeat on iPhone

Install Vaultbeat on the App Store and grant HealthKit read permissions. Local recording on iPhone is free forever.

2

Bind Your Development Machine

Ensure uv is installed (brew install uv), then run:

Terminal
shell
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.

3

Add to Cursor IDE or Windsurf

Open Settings → Features → MCP or paste this into .cursor/mcp.json:

.cursor/mcp.json
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

1. MORNING READINESS CHECKget_sleep_nights · get_metric_trend

"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."

2. SPRINT LOAD VS. RECOVERYcompare_metric_periods · correlate_metric_series

"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."

3. ERGONOMIC STRAIN LOGGINGlog_symptom · log_note_append

"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."

4. INTRADAY RECOVERY AUDITget_intraday

"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?
Yes. Cursor IDE supports the Model Context Protocol (MCP). By installing the Vaultbeat iOS app and adding the open-source vaultbeat-apple-health server to Cursor settings or .cursor/mcp.json, Cursor can query your live sleep, HRV, and recovery biometrics directly inside Composer.
What MCP configuration is required for Cursor IDE?
In Cursor Settings → Features → MCP (or .cursor/mcp.json), add a stdio server with command "uvx" and args ["vaultbeat-apple-health@latest", "serve", "--transport", "stdio"].
Is my health data visible to Cursor or Anthropic servers?
Vaultbeat’s own servers never can: records are encrypted on your iPhone (Curve25519 ECDH + AES-GCM) and decrypted only by the MCP server on your machine. What Cursor reads is a different matter — the results of the tools it calls become part of your prompt, and Cursor sends that prompt to the model provider you use, as it does with your code. Only the specific results it asks for leave your machine.

Vaultbeat · Apple Health MCP

Empower Cursor with Biometric Context

Continuous E2EE Apple HealthKit sync over local MCP · 30-day free trial.

Continue reading

All guides →