SuperAPIAI Directory

mibly-apple-health-mcp

github.com · AI developer platforms

mibly-apple-health-mcp is an open-source Apple Health MCP receiver for connecting sleep, steps, heart rate, HRV, workouts, weight, body fat and other data from Apple Health (HealthKit) to AI agents that support MCP. It reads HealthKit data through the Mibly iPhone app and uses a local mode: data is stored encrypted on a machine controlled by the user, with no account, no cloud upload and no telemetry. This repository is the reference implementation of the receiver, for review and customization; the recommended approach is to copy the setup prompt within the Mibly app and hand it to the agent to complete configuration automatically.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsiOS · macOS · Linux

About this tool

Purpose mibly-apple-health-mcp is an open-source Apple Health MCP receiver whose goal is to bring Apple Health (HealthKit) data into the user's existing AI agents that support MCP. Data that can be connected includes sleep, steps, heart rate, HRV, workouts, weight, body fat and more. The material states that it is suitable for OpenClaw, Hermes Agent, Claude, self-built bots, as well as coding agents such as Claude Code, Codex, Cursor, Gemini CLI and GitHub Copilot, i.e. any client that supports it.

Key capabilities

  • Handles the HealthKit side of the work through the Mibly iPhone app: permissions, background sync and data formatting, so users do not need an Apple Developer account or Xcode.
  • Local mode: data does not pass through Mibly servers, with no account, no cloud and no telemetry; data is stored encrypted on a machine controlled by the user.
  • Provides an MCP service supporting HTTP connections (http://<ip>:7345/mcp, with an Authorization: Bearer <token> header), and also supports adding --stdio for agents that launch the MCP server via stdio (logs output to stderr).
  • Lets you choose which data types to share, and each can be turned off at any time.
  • Provides examples for configuring startup on boot (macOS launchd, Linux systemd).

How to use Recommended path: download Mibly from the App Store on iPhone, copy the setup prompt within the app (Connection Settings → "Copy for your Agent") and paste it to the agent, which will automatically complete the configuration of the receiver and MCP service, with no need to clone, build or configure files. Run it yourself: requires Node.js 18+. The first run saves the token to ~/.mibly/config.json (permissions 0600), and subsequent restarts need no environment variables. On startup the receiver prints the available address, for example Target Host to enter in Mibly: 192.168.1.24:7345 (en0), enter IP:port in the app's Target Host field (without http:// and path); if multiple addresses are listed, choose the address on Wi-Fi/LAN. If the token is regenerated in the app, restart with the new MIBLY_TOKEN; the old encrypted storage cannot be decrypted with the new key, and the receiver will start with an empty state. Code structure: src/index.ts (routing), src/auth.ts (token validation), src/config.ts (~/.mibly/config.json), src/ingest.ts (validation), src/store.ts (encryption, retention, queries), src/mcp.ts (three tools; send_sketch always rejects here, see sketch.ts, which is only a placeholder to maintain agent tool-call symmetry with Mibly Pro's cloud-only Watch sketch feature). Test with npm test.

Use cases Users who want their personal AI agent to read their own Apple Health data and query or help organize it; people who value local storage and privacy and want to review the running code; developers who need to customize the receiver implementation themselves.

Limitations and notes

  • The repository covers Local mode only.
  • Mibly does not perform diagnosis or make medical decisions; it only gives the agent access to the data the user chooses to share.
  • Upgrades should be updated in place; do not set up a second receiver: after pulling the new code, run npm ci && npm run build and restart the service; keep the token and data, do not delete ~/.mibly or change the token. Old heartRate records (single readings without heartRateSummary) are deleted at startup because heartRate is now an hourly summary. Use GET /status to check the version and capabilities. Newer Mibly app features require a matching receiver version; older apps can still be used with a newer receiver.
  • Repository Issues are for the receiver code only; for app support see mibly.app. Privacy policy:https://mibly.app/privacy/。
  • The materials do not provide more information such as pricing, fees, or platform support scope (other than the iPhone app and Node.js 18+).
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools