Vaultbeat Apple Health MCP Server

Your Apple Health data — sleep stages, cycle, HRV, resting heart rate, workouts, weight, VO₂ max, meals, lifts, notes, symptoms, moods (State of Mind) — readable and writable by your own AI agent (Claude Code, Claude Desktop, Codex, Hermes, OpenClaw, anything that speaks MCP), end-to-end encrypted so that only your machine ever sees plaintext.
The Vaultbeat iPhone app reads HealthKit and encrypts every record on the phone. This package is the local server your agent talks to: it downloads the ciphertext, decrypts it on your machine, and serves it over MCP.
iPhone (HealthKit → Vaultbeat app, encrypts) ──► cloud (ciphertext only) ──► this server (decrypts locally) ──MCP──► your agent
The cloud stores ciphertext it cannot read. The key that opens it is generated on your machine when you pair, and never leaves it.
Requirements
- The Vaultbeat iOS app, 1.2.3 or newer, signed in — App Store
- uv (for
uvx). The server needs Python 3.11+, and uvx downloads a suitable interpreter by itself if your system Python is older.
- Vaultbeat Pro for agent access. Pairing a machine starts a 3-day trial of the AI interface; after that, reads and writes need Pro, bought in the iOS app (Settings → Membership). When access lapses nothing is deleted, and buying Pro resumes this machine without re-pairing.
How much history this server can read is decided by what the app uploads. With Pro, that is your whole history. A trial uploads your whole history on app 1.2.9 and later, and your last 7 days on 1.2.8 and earlier. Without either, app 1.2.8 and earlier upload your last 7 days and app 1.2.9 and later upload nothing. So a short history is usually a plan boundary, not a sync delay — vaultbeat_doctor tells the causes apart.
Quick start
1. Pair this machine with your iPhone.
uvx vaultbeat-apple-health@latest bind
It prints a QR code and waits. In the Vaultbeat app open MCP tab → Connect an AI server (app 1.2.8 and earlier: Settings → Data & AI) and scan it. The command waits 5 minutes (--timeout to change); once scanned there are 10 minutes to finish.
2. Add the server to your MCP client.
Claude Code, as a plugin (adds the server and a setup guide that walks Claude through pairing):
/plugin marketplace add Fino-wind/vaultbeat-apple-health
/plugin install vaultbeat-apple-health@vaultbeat
Then run /vaultbeat-apple-health:setup. Or add only the server:
claude mcp add vaultbeat-health -- uvx vaultbeat-apple-health@latest serve --transport stdio
Claude Desktop — add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json) and restart it:
{
"mcpServers": {
"vaultbeat-health": {
"command": "uvx",
"args": ["vaultbeat-apple-health@latest", "serve", "--transport", "stdio"]
}
}
}
Claude Desktop does not inherit your shell's PATH. If it reports that uvx cannot be found, put the absolute path from which uvx in "command".
Any other MCP client: run uvx vaultbeat-apple-health@latest serve --transport stdio as a stdio server. The @latest matters — without it uvx keeps running whichever version it cached first.
3. Check it works. Ask your agent to call vaultbeat_doctor, or run:
uvx vaultbeat-apple-health@latest doctor
It checks the config, the private key, cloud reachability, the pairing and a real fetch-and-decrypt round trip, and lists which data types have nothing to read yet. Right after pairing the phone is still sealing your history for the new machine, so a few kinds may be empty for a while; MCP tab → Re-sync all health data to AI in the app (app 1.2.8 and earlier: Settings → Data & AI) speeds it up.
Try it without an iPhone
uvx vaultbeat-apple-health@latest --demo doctor
uvx vaultbeat-apple-health@latest --demo serve --transport stdio # wire this into a client
--demo is a global flag — it goes before the subcommand — and serves a fixed synthetic dataset: no pairing, no cloud, no key. Every result says demo_mode: true and carries a [SYNTHETIC DEMO DATA] banner, and the log_* write tools refuse.
MCP tools
29 tools. Reads return your own data — the account that paired this machine. Tools marked partner also take partner=true to read what your partner chose to share with you in their app — sleep, water and weight, and cycle, symptoms, moods and notes only if they turned that on. The two people are never mixed in one result. Every read tool takes fresh=true to skip the local cache.
Diagnostics
| Tool | What it does |
|---|
vaultbeat_doctor | Diagnose this install end to end, report which data types have no data and the likely reasons, and show the pairing state. The tool to call before telling anyone their data is missing. |
Health records
| Tool | What it returns |
|---|
get_sleep_nights partner | Every night as one compact row: bed and wake time, asleep, deep / REM / core / awake, awakenings, longest unbroken sleep, heart and breathing rate while asleep, naps. A year fits in one call; since="YYYY-MM-DD" for a calendar window. |
get_sleep_detail partner | One or two nights in depth: stage intervals with per-stage heart and breathing rate. The newest nights, or any night by date (since / until). |
get_menstrual_cycle partner | Cycle samples and a next-period prediction. Sensitive. |
get_symptoms partner | Symptoms from Apple Health, and beside them the episodes a person reported (type, severity, onset and end, place, suspected triggers). Sensitive. |
get_state_of_mind partner | Moods — Apple Health's State of Mind: how pleasant each feeling was (valence and Apple's seven regions), Apple's feeling words and life areas, from the Watch, the Health app or other apps, and the ones an AI recorded; per-day count and average. The 100 newest by default, or a since / until window for older ones. Sensitive. |
get_notes partner | Free-text notes on days, with who wrote them. Sensitive. |
get_strength_log | Strength sessions: exercises, sets × reps, volume per session. |
get_food_log | Meals and items per day, with optional kcal / protein / fat / carbs. The 14 newest days that have a log by default (not a calendar fortnight), or a since / until window. |
get_workouts | Workouts: type, duration, calories, distance. |
get_user_profile | Sex, age, date of birth and height. Needs Vaultbeat for iOS 1.2.9 or later. |
Daily numbers and analysis
| Tool | What it returns |
|---|
get_metric partner | Per-day values for one series, several, or all of them: sleep duration, timing and stages, resting HR, HRV, wrist temperature, VO₂ max, weight and body composition, water, steps, active / basal / total energy, exercise and stand minutes, distance, mindfulness. aggregation (avg / sum / min / max / latest) and granularity (day / week / month / weekday) are computed server-side; since / until for a calendar window. Today on an accruing series is marked partial and kept out of aggregates. |
get_intraday | Samples within a day, for HRV: one row per hour that has samples (granularity="hourly") or one per sample ("raw"). About 8–14 rows a day; limit counts rows. |
list_metric_series partner | Every series name the tools above and below accept, with its unit and how much data backs it. |
get_metric_trend partner | Least-squares slope, endpoints, mean / median / min / max. |
compare_metric_periods partner | The newest N days against the N before them, or two named windows. |
correlate_metric_series partner | Pearson r between two series over the days that have both; lag_days pairs a day with a later one. |
The analysis tools return numbers only — no scores, grades or verdicts — and refuse rather than fit a line to two points.
Writes — all into the account that paired this machine, and nowhere else.
| Tool | What it does |
|---|
log_food_append / log_strength_append / log_note_append | Add to a day. Cannot delete anything — the safe default when a day may already have entries. |
log_food_entry / log_strength_entry / log_note | Replace that whole day with what is passed, and report exactly what was removed. |
log_weight_entry | Record a weigh-in, keeping that day's body composition. |
log_symptom | Record one symptom the person reports, as structured fields a later read can match against sleep, food and heart rate. |
update_symptom / delete_symptom | Change a reported symptom (usually its end time), or erase one logged by mistake. |
log_state_of_mind | Record how the person says they feel, in Apple Health's State of Mind vocabulary (valence, feeling words, life areas). Their iPhone writes it into Apple Health only if they turned on "Allow AI to update Apple Health" (iOS app 1.3.0 or later). |
delete_state_of_mind | Erase a mood an AI recorded by mistake; the iPhone also removes the copy it wrote into Apple Health. |
log_note and log_note_append take partner=true to record a note about your partner. It stays in your own account, is never sent to them, and is kept apart from your own notes.
Reading the results