Skip to main content

Local MCP server for Vaultbeat — AI Health Sync: your AI agent reads your end-to-end-encrypted Apple Health data (sleep, cycle, weight, water), decrypted only on your machine

Project description

Vaultbeat MCP Server

Let your own AI agent read your health data — without the cloud ever seeing it.

This is the official local MCP server for Vaultbeat — AI Health Sync (formerly named Tether), the iOS app that syncs Apple Health data (sleep, heart rate, menstrual cycle, weight, water, symptoms) between partners and to your own AI — end-to-end encrypted.

Vaultbeat embeds no AI and runs no model on your phone. Intelligence lives where you control it: Claude Code, Claude Desktop, or any MCP-capable agent running on your own machine. This server is the bridge — it holds a private key that never leaves your computer, pulls ciphertext from the cloud, and decrypts only locally.

iPhone (Apple Health) ──E2EE──▶ cloud (ciphertext only) ──E2EE──▶ this server (your machine) ──▶ your AI agent

Requirements

  • Vaultbeat — AI Health Sync on iOS, with a Pro subscription (the AI-agent interface is the Pro tier)
  • Python 3.11+ on the machine where your agent runs (macOS / Linux / Windows)

Quick start

1. Install

With uv (recommended — no clone needed):

uvx vaultbeat-mcp status

Or with pip:

pip install 'vaultbeat-mcp[qr]'

Upgrading from the old tether-mcp package? Same code, new name — your existing binding and config carry over unchanged. Just swap the package name in your install command and MCP client config.

2. Bind your phone

vaultbeat-mcp bind

This generates a keypair on your machine and prints a QR code. In the Vaultbeat iOS app, open Settings → Data & AI → MCP Server and scan it (or import a QR screenshot from Photos). The app authorizes this machine and starts sealing your health envelopes to its public key. The private key stays in ~/.tether/mcp-local/ (owner-only 0600 permissions, OS keychain where available) — it is never uploaded anywhere. (The directory keeps its original pre-rename path so existing bindings survive upgrades.)

3. Connect your agent

Claude Code (one line):

claude mcp add vaultbeat-health -- uvx vaultbeat-mcp serve --transport stdio

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "vaultbeat-health": {
      "command": "uvx",
      "args": ["vaultbeat-mcp", "serve", "--transport", "stdio"]
    }
  }
}

Any other MCP client: run vaultbeat-mcp serve --transport stdio, or serve --transport http for a loopback streamable-HTTP endpoint with bearer-token auth.

Claude Desktop note: it does not inherit your shell PATH. If uvx isn't found, use the absolute path (which uvx) as command.

Debugging: npx @modelcontextprotocol/inspector uvx vaultbeat-mcp serve --transport stdio

Then just ask your agent: “How did we sleep last night?”

MCP tools (16)

Tool Returns
vaultbeat_status Local binding state (never exposes keys or tokens)
vaultbeat_start_binding A fresh QR binding payload for the iOS app to scan
vaultbeat_poll_binding One poll for the iOS authorization to complete binding
vaultbeat_sync_sleep Recent sleep sessions incl. heart-rate samples, per-day primary-session selection matching the iOS app
get_sleep_detail Per-night heart-rate + respiratory-rate + sleep-stage timeline
get_water_intake Daily water intake + computed daily average
get_weight_trend Daily weights + latest/avg/min/max + weekly trend rate
get_menstrual_cycle Cycle samples + next-period prediction (sensitive — explicit iOS opt-in required)
get_symptoms HealthKit symptom days grouped by data owner (sensitive)
get_notes Free-text day annotations with their writer (sensitive)
get_activity Daily activity rings: steps / energy / exercise minutes / stand hours / distance
get_resting_hr Resting heart-rate records + window mean
get_workouts Workout records: type / duration / calories / distance
get_mindfulness Mindful sessions and minutes per day
get_hrv Heart-rate variability (SDNN) records + window mean
get_wrist_temp Sleeping wrist-temperature baseline deviation
get_hrv_hourly (via get_hrv(granularity="hourly")) Hour-bucketed HRV averages over 30 days — the context-cheap default; granularity="raw" keeps minute-level spike precision
get_vo2max VO₂ max records + latest / peak / trough / window average
get_basal_energy Basal (resting) energy burned, per hour bucket
get_total_energy_burned TDEE — basal + active per day, measured rather than estimated, with today flagged partial and excluded from the average
get_strength_log Structured strength training: exercise, sets, reps, weight per day
get_food_log Meals as free text with optional portions and timing
log_weight_entry Write a weight entry (optionally mirrored into Apple Health when the user opts in)
log_strength_entry Write a strength-training entry for a given day
log_food_entry Write a meal entry for a given day
log_note Write a mood or general note for a given day

Every data tool accepts owner (a user-ID prefix) to filter to one person — the server may hold both your and your partner's shared records, and omitting owner mixes them into one pool, so per-person questions should always pass it. (Earlier releases named some tools get_partner_* / tether_*; they were renamed in the 16-tool and Vaultbeat releases.)

Reads are cache-first: decrypted records are cached locally (owner-only files, 600 s TTL, VAULTBEAT_MCP_CACHE_TTL to override — the pre-rename TETHER_MCP_* spellings still work) so repeat queries answer in ~0.2 s with zero network; pass fresh=true to force a cloud round trip. The same service layer backs a full CLI (vaultbeat-mcp sleep / water / weight / … — every data subcommand takes --owner too) if you prefer scripts over MCP.

Privacy & security model

  • End-to-end encryption: Curve25519 ECDH + HKDF-SHA256 + AES-GCM. Every health record is sealed on-device to each authorized recipient's public key (your partner, and this server once bound).
  • The cloud only ever holds ciphertext. Vaultbeat's backend cannot read your health data — architecturally, not just by policy.
  • Decryption happens here, on hardware you own. The private key and server token are never exposed through any tool result.
  • Sensitive kinds (menstrual cycle, symptoms, notes) reach this server only if explicitly opted in inside the iOS app, and are never re-exported by the server.
  • HTTP transport binds to loopback by default and requires a bearer token; binding a non-loopback address fails closed unless explicitly allowed — front it with TLS if you must expose it.

You can audit all of the above in this repository — that is why it is open source.

Development

pip install -e '.[dev,qr]'
pytest

License

MIT. The Vaultbeat iOS app and cloud service are separate proprietary components; this repository covers the local MCP server only.


Website: vaultbeat.app · App Store: Vaultbeat — AI Health Sync · Bugs & feedback: vaultbeat-community

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vaultbeat_mcp-0.2.1.tar.gz (88.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vaultbeat_mcp-0.2.1-py3-none-any.whl (67.4 kB view details)

Uploaded Python 3

File details

Details for the file vaultbeat_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: vaultbeat_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 88.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vaultbeat_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f954766bbc2db5fc373e7c0a7803996d9dd6a867442c4c191eed93fce4506049
MD5 232c50594261aeabf9a41f1dd26d86e3
BLAKE2b-256 0e444bbca4029810b7a19ac49a43260b01e15114adafb132a69f1cb561f68cc0

See more details on using hashes here.

File details

Details for the file vaultbeat_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: vaultbeat_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 67.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vaultbeat_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bcd130cab1bf2b95a7d1a179d6fd07300fb9a14b774b5bacd108da6544d4ca77
MD5 dbf4200410e7e4d998e09925537ff742
BLAKE2b-256 3c8ccdae30814de21174e5700709231358980cf0ed2f1533fd7af4b368c4d90a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page