Skip to content

Summary

Local-first MCP server that lets an assistant query your Apple Health export with SQL through DuckDB: discover the schema, run analytical queries and generate weekly or monthly health summaries.

Features

  • SQL queries over Apple Health data with DuckDB
  • Schema discovery with units and sample rows
  • Weekly, monthly or custom health reports
  • Reads exports locally with no network requests
  • File access sandboxed to the export directory

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it, filling in the environment variables with your own values.
  3. Restart the agent — the "Apple Health MCP" tools will be available.
{
  "mcpServers": {
    "apple-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@neiltron/apple-health-mcp"
      ],
      "env": {
        "HEALTH_DATA_DIR": "/path/to/your/unzipped/health-export"
      }
    }
  }
}

Description

Apple Health MCP, by Neil Pullman, lets an AI assistant answer questions about your own health data, such as sleep, heart rate, workouts or step counts, by running SQL over your Apple Health export locally with DuckDB.

Tools
  • health_schema — discovers the tables in your export, with columns, units and sample rows.
  • health_query — runs a single DuckDB SELECT-family analytical statement and returns JSON, CSV or a summary.
  • health_report — generates a weekly, monthly or custom-range health summary.
Data and privacy

The server reads CSV files produced by the iPhone app Simple Health Export CSV; Apple's native export.xml is not supported. Point HEALTH_DATA_DIR at the unzipped export. Files are read in place, nothing is uploaded and the server makes no network requests, although query results go to whichever model provider your MCP client uses. DuckDB file access is limited to the data directory, network access and temporary disk storage are disabled, and settings are locked. Those guards limit accidental side effects from generated SQL, not a hostile client, so run it only over local stdio.

Limits

Each launch loads the needed tables' full history into memory (MAX_MEMORY_MB, default 2048; roughly 1 GiB covers a two-year multi-table export). Overlapping devices can produce duplicate-looking readings. Reports summarise recorded data and are not medical advice. Requires Node.js 22 or newer. MIT licensed.

MCP: Compartment

by Max Freedom Pollard

Encrypted, fully offline agent memory: one local vault shared by every agent on the machine, AEAD-encrypted down to the embedding vectors, searched in about 12 ms.

MCP: Yap MCP

by O-mega Enterprise Inc.

Transcribe local audio and video files on-device from Claude, Cursor or VS Code, and search your Yap dictation history. No upload, no API key.

MCP: Filesystem

by Model Context Protocol

Secure local file operations for agents — read, write, search, and edit files within configurable allowed directories.

Browse all MCP servers →