Tether MCP Server

Tether MCP Server

Enables AI agents to securely access Apple Health data (sleep, heart rate, menstrual cycle, etc.) via end-to-end encrypted local decryption from the Tether iOS app.

Category
访问服务器

README

Tether 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 Tether — AI Health Sync, 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.

Tether 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

  • Tether — 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 tether-mcp status

Or with pip:

pip install 'tether-mcp[qr]'

2. Bind your phone

tether-mcp bind

This generates a keypair on your machine and prints a QR code. In the Tether 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.

3. Connect your agent

Claude Code (one line):

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

Claude Desktop (claude_desktop_config.json):

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

Any other MCP client: run tether-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 tether-mcp serve --transport stdio

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

MCP tools (16)

Tool Returns
tether_status Local binding state (never exposes keys or tokens)
tether_start_binding A fresh QR binding payload for the iOS app to scan
tether_poll_binding One poll for the iOS authorization to complete binding
tether_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

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_*; they were renamed in the 16-tool release since they return whichever owners' records this server holds, not specifically the partner's.)

Reads are cache-first: decrypted records are cached locally (owner-only files, 600 s TTL, TETHER_MCP_CACHE_TTL to override) 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 (tether-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. Tether'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 Tether iOS app and cloud service are separate proprietary components; this repository covers the local MCP server only.


Website: tetherme.app · App Store: Tether — AI Health Sync · Bugs & feedback: tether-community

<!-- mcp-name: io.github.fino-wind/tether -->

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选