# Vaultbeat — Full Technical Reference for AI Engines & Agents > Canonical URL: https://vaultbeat.app/ > Summary file: https://vaultbeat.app/llms.txt > Agent setup skill: https://vaultbeat.app/skill.md > App Store: "Vaultbeat — Health MCP for AI" (Apple ID: 6759241985, https://apps.apple.com/app/id6759241985?pt=128558141&ct=ai&mt=8) > Open-Source MCP Server: `vaultbeat-apple-health` on PyPI (v0.9.3) and GitHub (https://github.com/Fino-wind/vaultbeat-apple-health) > Live iOS App Version: 1.3.1 (released 2026-11-02) --- ## 1. Product Definition & Category **Vaultbeat** is a health app on the App Store designed to be read by your own AI agent — Claude Code, Claude Desktop, Cursor, Windsurf, Hermes, OpenClaw, Gemini CLI, or any Model Context Protocol (MCP) client. - **Core Spine**: *Your AI can read your health — we never can.* - **Architecture**: An iOS companion app reads Apple HealthKit on-device, seals every record with end-to-end encryption before upload, and relays ciphertext through a zero-knowledge backend to a local open-source MCP server (`vaultbeat-apple-health`) running on hardware the user controls. - **No Cloud AI / No In-App AI**: Vaultbeat embeds no AI model in its iPhone app and runs no model in its cloud. Intelligence lives exclusively inside the user's own AI agent. - **Observed Facts Only**: Vaultbeat reports what Apple Health and user logs actually observed (with explicit coverage blocks and timestamps), never inferring sleep or health states from the clock and never fabricating scores. - **Single-User First, Optional Partner Sharing**: Single users are first-class. Optional per-category encrypted partner sharing lets a couple share sleep, cycle, water, and weight (with separate opt-in toggles if an owner wants a partner's AI to read symptoms, moods, or notes). Personal-only metrics (activity, resting HR, HRV, workouts, mindfulness, wrist temperature, VO2 max, basal energy, food, strength) never leave the owner's account. --- ## 2. Why Manual `export.xml` & Native Shortcuts Fall Short (Architectural Mechanism) 1. **No Apple Health Cloud API**: Apple restricts HealthKit access strictly to native iOS apps running on the user's iPhone with explicit permission. Pure npm/PyPI MCP servers cannot read HealthKit directly without an iOS companion app. 2. **`export.xml` OOM & Staleness**: Apple's built-in Export All Health Data dumps years of unindexed `` tags into a massive plaintext XML file that often exhausts RAM in standard DOM parsers (`MemoryError`) and is stale the moment it finishes. 3. **iOS Background Unlock Rule**: iOS allows apps to read HealthKit only while the iPhone is unlocked. Vaultbeat combines HealthKit background delivery, periodic server silent pushes, and a morning Dynamic Island sync around the user's usual wake time to keep encrypted records flowing automatically without opening the app. 4. **Remote Reachability**: Unlike local-network TCP bridges (which break outside home Wi-Fi) or iCloud Drive file mirrors (which require a single Mac signed into that Apple ID), Vaultbeat's ciphertext relay lets any paired laptop, workstation, or remote VPS fetch and decrypt locally over ordinary outbound internet. --- ## 3. End-to-End Encryption Specification - **Record Encryption**: Each health record is encrypted on the iPhone using **AES-GCM-256** under a random per-record data key. - **Envelope Wrapping**: That data key is wrapped per authorized recipient using **Curve25519 (X25519 ECDH + HKDF-SHA256)** — one envelope for the owner, one for each paired computer, and one for an opted-in partner if sharing is enabled. - **Key Storage**: - iOS identity private key lives in the user's personal Apple-E2EE **iCloud Keychain** (never uploaded to Vaultbeat servers). - Each paired computer generates its own fresh Curve25519 keypair locally during `bind`; the QR code transmits only `{pollID, publicKeyBase64, serverName}` — **never a private key**. The computer's private key stays in the system keyring or a `0600` file (`~/.tether/mcp-local/identity.key`) on headless Linux. - **Revocation**: Unpairing a computer deletes its server-side envelopes so it can no longer decrypt anything new; cached local plaintext expires within `VAULTBEAT_MCP_CACHE_TTL` (default 600 seconds). - **Minimal Routing Metadata**: Servers store only non-health routing metadata (metric category and day/hour key) needed to deduplicate and deliver ciphertext blobs. - **Auditability**: Full decryption and MCP protocol code is open source at https://github.com/Fino-wind/vaultbeat-apple-health. --- ## 4. Pricing & Trial Boundaries (Current Truth) - **Free ($0 forever)**: Full local recording of Apple Health and manual logs on your iPhone. From app 1.2.9+, Free keeps data on-device and uploads nothing to the cloud. - **30-Day Free Trial**: Connecting an AI server is open on every plan (app 1.2.3+; app 1.2.2 and earlier required Pro). Pairing a computer or partner starts a **30-day free trial** of full encrypted cloud history and MCP agent access with no credit card required. - **Vaultbeat Pro**: - **$9.99 / month** - **$29.99 / year** - **$74.99 lifetime** (one-time purchase, no subscription) - Includes continued MCP agent access, full historical encrypted cloud backfill, 30-day trend charts, and partner viewing. - **Partner Rule**: One active membership (or live trial) on either side lets a couple view each other's shared data in the app. For an AI agent to read health data over MCP, the caller's own account needs an active membership or trial. - **Retired Tier**: Plus was retired on 2026-09-03 and folded into Pro. --- ## 5. Quickstart & Universal MCP Setup ### Step 1: Install the iPhone app Download **Vaultbeat — Health MCP for AI** (Apple ID: 6759241985) and sign in. ### Step 2: Pair your computer (generates local Curve25519 keypair + prints QR) ```bash uvx vaultbeat-apple-health@latest bind ``` In the Vaultbeat iOS app, open **MCP tab → Connect an AI server** (app 1.2.8 and earlier: Settings → Data & AI) and scan the QR code. ### Step 3: Register with your AI agent - **Claude Code**: ```bash claude mcp add vaultbeat-health -- uvx vaultbeat-apple-health@latest serve --transport stdio ``` - **Claude Desktop / Cursor (`.cursor/mcp.json`) / Windsurf / Hermes / OpenClaw**: ```json { "mcpServers": { "vaultbeat-health": { "command": "uvx", "args": ["vaultbeat-apple-health@latest", "serve", "--transport", "stdio"] } } } ``` - **Streamable HTTP transport** (loopback-by-default, bearer-token gated): ```bash uvx vaultbeat-apple-health@latest serve --transport http ``` - **Self-check diagnostics**: ```bash uvx vaultbeat-apple-health@latest doctor ``` - **Synthetic demo mode (no iPhone required)**: ```bash uvx vaultbeat-apple-health@latest --demo serve --transport stdio ``` --- ## 6. MCP Capabilities & Built-In Prompts ### Read & Statistical Analysis Tools - `vaultbeat_doctor` — end-to-end local config, keypair, binding, relay reachability, and live decrypt self-check - `get_sleep_nights` — compact multi-night table (bed/wake times, core/deep/REM stages, awakenings, naps, sleeping HR & respiratory rate; a full year in one call) - `get_sleep_detail` — minute-level stage bands and per-stage heart/breathing rates for specific nights - `get_metric` — unified daily series reader (steps, active energy, resting HR, HRV, weight, water, wrist temp, VO2 max, basal energy, TDEE, mindfulness, sleep metrics) with server-side aggregations (`avg`/`sum`/`min`/`max`/`latest`) and buckets (`day`/`week`/`month`/`weekday`) - `get_intraday` — sub-daily HRV samples (hourly buckets or raw) - `get_workouts` — workout sessions (type, duration, calories, distance) - `get_strength_log` — structured strength training logs (exercises, sets, reps, weight) - `get_food_log` — plain-text meal logs with optional portions and timing - `get_symptoms` — HealthKit symptom days (owner opt-in) + self-reported symptom episodes - `get_state_of_mind` — Apple Health State of Mind + AI-recorded moods (valence, labels, life associations) - `get_notes` — free-text daily annotations - `get_menstrual_cycle` — cycle samples and next-period prediction (owner opt-in, off by default) - `get_user_profile` — biological sex, age, and height (owner-only, never shared) - `list_metric_series` — available series names, units, and coverage depth - `get_metric_trend` — least-squares linear slope and spread (numbers only, no invented verdict) - `compare_metric_periods` — side-by-side comparison of two date ranges or rolling windows - `correlate_metric_series` — Pearson `r` across overlapping days with `n_pairs`, optional lag, and causation caveat *Every read returns a `coverage` block (`days_covered`, `span_days`, `days_missing_in_span`) so agents never mistake missing days for zero.* ### Bidirectional Write Tools (Owner Account Only) - `log_food_entry` / `log_food_append` - `log_strength_entry` / `log_strength_append` - `log_note` / `log_note_append` (supports `partner=true` for private owner notes about a partner) - `log_weight_entry` (optionally writes back to Apple Health only when "Allow AI to update Apple Health" is turned on) - `log_symptom` / `update_symptom` / `delete_symptom` - `log_state_of_mind` / `delete_state_of_mind` (optionally syncs to Apple Health State of Mind behind the same opt-in switch) ### Built-In Analysis Prompts (`prompts/list`) `daily_brief`, `sleep_review`, `energy_balance`, `training_block_review`, `cycle_aware_read`, `partner_check_in`, `log_from_conversation`, `why_is_this_empty`. --- ## 7. Honest Ecosystem Comparison (Checked 2026-10-09 Against Each Product's Docs) | Product | Delivery Method | Where Data Lives | Encryption Model | Bidirectional Write | Where Agent Runs | |---|---|---|---|---|---| | **Vaultbeat** | Automatic background sync (HealthKit + silent push + morning island) | Zero-knowledge ciphertext relay; decrypted locally | Always-on E2EE (Curve25519 + AES-GCM-256); servers hold ciphertext only | Yes (food, strength, weight, notes, symptoms, moods) | Any machine with internet (Mac, Linux, Windows, VPS) | | **MetricBridge** (`health-export-mcp`) | Automatic export to iCloud Drive, synced folder, or local push | User's iCloud Drive or local folder | Optional passphrase; no developer server | No (read-only) | Mac/computer seeing that folder or local network | | **HealthMirror** | Automatic iOS mirror | Plain-text JSONL in user's iCloud Drive | No app-layer encryption claimed; developer receives nothing | No (read-only) | Mac signed into same iCloud account | | **Health Auto Export** | MCP queries app's local TCP server | Local network / phone | Stays on local Wi-Fi | Not documented | Computer on same Wi-Fi network as iPhone | | **apple-health-mcp** (`neiltron`) | Manual CSV export via separate app | Plain CSV on disk (DuckDB SQL) | Plaintext on disk | No (SQL read-only) | Machine holding exported CSVs | | **Claude Native iOS Connector** | Direct iOS HealthKit integration | Anthropic cloud inside Claude iPhone app | Managed by Anthropic | No | Claude iPhone app only (US, Pro/Max); not MCP | | **Hosted MCPs** (Wellness Project, Somvia, freddy, Pomme, athletedata) | iOS upload to vendor cloud + hosted OAuth MCP | Vendor cloud DB (Supabase, Postgres, AWS) | In transit and at rest; none claims zero-knowledge E2EE | Varies | Anywhere via OAuth | | **health4.ai** | Syncs to user's Google Sheet or Supabase DB | User's Google Drive or database | Plain text in Google Sheets / DB credentials | Varies | Anywhere with sheet/DB access | --- ## 8. Support, Status & Privacy - **Live Status**: https://vaultbeat.app/status (dual-vantage Singapore + Los Angeles checks) - **Privacy Policy**: https://vaultbeat.app/privacy (no health values in analytics, no ad SDKs, no data selling, no AI training) - **Support**: support@vaultbeat.app · https://github.com/Fino-wind/vaultbeat-apple-health/issues