
Vaultbeat Apple Health
io.github.Fino-wind由 GitHub 帳號 Fino-wind 發布v0.9.3更新於 Oct 24, 2026
Your AI agent reads your Apple Health data: sleep, HRV, cycle, workouts. Decrypted on your machine
概覽
讓 AI 助理讀取並寫入你自己的 Apple 健康資料——睡眠、HRV、經期、運動、情緒——在你的電腦上解密。
- 可以做什麼
- 這是一個本機 stdio 伺服器:下載由 Vaultbeat iPhone App 上傳的端對端加密 Apple 健康記錄,在你的電腦上解密後透過 MCP 提供。共有 29 個工具:讀取睡眠夜晚與分期、月經週期、症狀、State of Mind 情緒、筆記、重訓與飲食紀錄、運動、個人資料、每日指標、日內 HRV,以及趨勢、期間比較與相關分析;寫入工具可記錄飲食、重訓、體重、筆記、症狀與情緒;另有 vaultbeat_doctor 診斷工具。也提供 daily_brief、sleep_review 等八個提示詞。分析工具只回傳數字,讀取結果附有 coverage 涵蓋資訊。
- 適用情境
- 適合已在使用 Vaultbeat iOS App、並希望自己的助理回答睡眠、恢復、經期、訓練或飲食問題,或把紀錄寫回帳號的人。沒有 iPhone App 與已配對的電腦則無法使用。
- 執行需求
- 需要 Vaultbeat iOS App 1.2.3 或更新版本並已登入,以及 uv/uvx 與 Python 3.11+(uvx 可自行下載解譯器)。首次需以 QR code 配對綁定本機。3 天試用期後,助理存取需要 Vaultbeat Pro;會員失效後讀寫停止。僅限桌面端;預設 stdio,也可選用本機 HTTP 傳輸並需 bearer 權杖。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Vaultbeat Apple Health,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Vaultbeat Apple Health MCP Server
[Vaultbeat MCP server on Glama] [mcp.market grade] [Listed on mcpservers.org]
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.
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+, anduvxdownloads 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.
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):
Then run /vaultbeat-apple-health:setup. Or add only the server:
Claude Desktop — add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json) and restart it:
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:
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
--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
Health records
Daily numbers and analysis
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.
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
- Every read carries a
coverageblock.days_coveredis how many distinct days the answer rests on — quote it beside any average or trend.more_available: truemeans older records exist and yourlimitstopped short of them (oldest_availablesays how far back they go); it is never a sign of missing data. - Results are bounded. A result larger than about 60 KB is not sent; the tool returns
result_too_largewith a suggestion for narrowing the request (a smallerlimit, asincedate, one series instead of all).get_metricandget_intradayreturn their rows as a compact table (columns+rows). - Unknown arguments are rejected. A misspelled or retired parameter is an error, never silently ignored.
MCP prompts
The server also serves eight prompts over prompts/list — daily_brief, sleep_review, energy_balance, training_block_review, cycle_aware_read, partner_check_in, log_from_conversation and why_is_this_empty. Each names the tools to call and carries the same two rules: say what the data covers before concluding, and treat an empty result as something to explain (it has several possible causes), never as a zero. Every argument is optional.
Privacy and security
- Decryption happens only on this machine. The cloud holds ciphertext and per-recipient wrapped keys; the private key that opens them is generated here when you pair.
- Health data leaves this package only through MCP. The command-line subcommands pair a machine, report on that pairing and start the server; none of them prints health data.
- Sensitive categories. Your cycle and the symptoms Apple Health records reach this server only after you turn them on, per category, in the iOS app — they are off by default. Your notes, your moods (State of Mind, from Apple Health and from
log_state_of_mind) and the symptoms you report yourself (in the app, or throughlog_symptom) are always readable by your own agent. None of these reaches your partner's agent unless you turn on sharing it with them. - Unpair at any time from the app's MCP tab (app 1.2.8 and earlier: Settings → Data & AI); the machine can then decrypt nothing new.
- Tool results never contain the private key or the server token.
Where the private key lives
Not in config.json. It is looked for in this order:
- the
VAULTBEAT_PRIVATE_KEYenvironment variable, if set (read, never written back) — for operators injecting it from a secret store; - the system keyring — the normal case on a desktop;
~/.tether/mcp-local/identity.key, mode0600— the automatic fallback on a machine with no keyring.
~/.tether/mcp-local/config.json (mode 0600) holds the cloud-issued server token and your public key. .tether is the app's former name and the path is kept on purpose: existing installs find their key through it.
Never delete
config.jsonto "start clean". The private key is not in it, so deleting does not clear a bad key — it mints a new identity, and every record already encrypted for the old one becomes permanently unreadable. To repair a pairing, runbindagain: it re-pairs this machine in place and keeps what is already encrypted for it.
Headless servers. If the keyring is unreachable, let the identity.key fallback handle it — it engages by itself. Do not set PYTHON_KEYRING_BACKEND to the null backend: it accepts writes and stores nothing, so it only hides a keyring you might be able to reach. If a D-Bus session exists but this process cannot see it (common when the server is started by an agent framework, systemd or cron), pass DBUS_SESSION_BUS_ADDRESS through explicitly — resolve it first (echo "unix:path=/run/user/$(id -u)/bus") and put the literal result in the client's env block, since that block is JSON, not a shell.
Telemetry
The server sends usage events to PostHog (EU): which tool was called, whether it succeeded,
a duration range, and the AI client and package versions — tied to the account this machine is
paired to. Tool arguments, results and health data are never sent. Set VAULTBEAT_TELEMETRY=0
(or DO_NOT_TRACK=1) to turn it off. Details: vaultbeat.app/privacy.
Troubleshooting
Start with doctor. uvx vaultbeat-apple-health@latest doctor prints an [OK] / [FAIL] list with a fix for the first thing that is broken; doctor --json is the same report for an agent. Exit code 0 means healthy.
A read comes back short or empty. Read coverage.more_available first: true means your limit was the boundary — ask for more. false with a short history is the plan boundary described under Requirements, or a pairing that is still filling in. vaultbeat_doctor lists the kinds with no data and the possible reasons for each.
The QR code looks wrong (mojibake or uneven rows — usually Windows with a non-UTF-8 code page). The pairing is still waiting, so do not re-run bind: that replaces the code on screen. Instead render the JSON payload printed just above the code as an image (qrencode -o pair.png '<payload>'), send it to your phone and use import from Photos in the app's scanner; or run chcp 65001 in a fresh terminal; or use bind --no-qr for the payload as text.
Reads fail with an access message. The trial or Pro membership has lapsed. Nothing has been deleted; buying Pro in the iOS app (Settings → Membership) resumes this machine without re-pairing.
HTTP transport
For clients that connect over a network instead of launching a subprocess:
The token is read from VAULTBEAT_MCP_HTTP_TOKEN (preferred, keeps it out of shell history) or the stored config, and clients send it as Authorization: Bearer <token>. --show-token prints the stored one. --no-token serves loopback without auth.
Binding beyond loopback (--host 0.0.0.0 for a LAN or VPS) fails closed: it needs both a token and --allow-remote. The token crosses the wire in clear text, so put TLS in front of it (Caddy, nginx, Cloudflare). Other flags: --sse-response for SSE-style responses, --stateful-http for clients that need sessions.
Example mcp.json (VS Code / Cursor style):
A client that only speaks stdio can reach the HTTP server through mcp-remote: npx -y mcp-remote http://127.0.0.1:8000/mcp --header "Authorization: Bearer <token>".
Reporting issues
This repo takes issues for both the MCP server and the Vaultbeat iPhone app —
install failures, tool errors, binding that never completes, doctor reporting
something wrong, and app problems too (UI, subscriptions, HealthKit permission
prompts, sync not showing up on the phone).
Open an issue
and pick the template that fits. Questions and ideas can go in
Discussions.
This is a public repo: never paste health data, pairing codes or account details.
Development
The command line has six subcommands, and none of them reads health data:
Decrypted records are cached per data type under ~/.tether/mcp-local/cache/ (files 0600, directory 0700) for 600 seconds; VAULTBEAT_MCP_CACHE_TTL overrides it (0 disables). After the first read, a refresh downloads only the records that changed. Pairing to a different server identity clears the cache.
Run the checks from a clone:
vaultbeat-mcp and vaultbeat-mcp-local remain as console-script aliases for installs from before the package was renamed vaultbeat-apple-health (0.6.2).
來源:README.md,提交 f44b212
工具
0版本歷史
4- v0.9.3最新Oct 13, 2026
- v0.9.2Oct 4, 2026
- v0.9.1Oct 3, 2026
- v0.8.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分