apple-health-mcp: Query Apple Health Data with AI Assistants

Summary
A local MCP server that lets AI assistants query Apple Health CSV exports with DuckDB. It suits people who want to explore personal health history through SQL-backed tools while keeping the export on their own computer.
At a glance
- Language
- TypeScript
- License
- MIT
- Stars
- 570
- Forks
- 24
- Added to OSRepos
- December 5, 2025
- Last analyzed
- October 3, 2026
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
apple-health-mcp connects MCP-compatible AI assistants to Apple Health data exported as CSV. It loads the files locally and provides tools for discovering the available data, running analytical queries, and generating health summaries.
It is intended for people who want to ask questions about their sleep, workouts, activity, or heart data without uploading the source export to a separate service. The server works with a specific CSV export format, not Apple’s native export.xml file.
Key Features
- Exposes schema discovery, analytical queries, and health-summary tools through MCP.
- Uses DuckDB to query the CSV data with SQL.
- Reads export files in place and does not make network requests.
- Supports JSON, CSV, or summary output for analytical queries.
- Can generate weekly, monthly, or custom health summaries.
- Restricts database file access to the configured health data directory and disables network access and temporary disk storage.
Use Cases
- A personal health-data user can ask an MCP-connected assistant questions about trends across an existing export.
- Someone reviewing workout or activity history can query records across the date range available in their export.
- A user exploring sleep or heart measurements can first inspect the schema, then build queries suited to the files they have.
- Developers can connect an MCP-compatible client to a local data source when they want assistant-driven analysis without uploading the original export.
Project Facts
- Language: TypeScript
- License: MIT
- Stars: 570
- Forks: 24
- Topics: apple-health, claude, duckdb, health-data, mcp, mcp-server, model-context-protocol, quantified-self, sql
- Archived: No
Getting Started
Requires Node.js 22 or newer and an export created with Simple Health Export CSV. Configure an MCP client to run:
{
"command": "npx",
"args": ["-y", "@neiltron/apple-health-mcp"],
"env": {
"HEALTH_DATA_DIR": "/path/to/your/unzipped/health-export"
}
}
See the README for client configuration and export instructions, and the querying guide for examples.
Considerations
- Only the Simple Health Export CSV layout is supported; native Apple Health
export.xmlfiles are not. - The first request for a table loads its full CSV history. There is no date window, and loaded tables are held in memory.
- The database is rebuilt from CSV files each time the server starts. Persistent incremental importing is not currently available.
- Device overlap can create duplicate-looking measurements, so queries may need to account for
sourceName. - Query safeguards reduce accidental side effects but do not isolate the process. The project advises using a trusted local stdio MCP client, not exposing the server to untrusted network clients.
- Health reports summarize recorded data and are not medical advice. Query results returned to an MCP client may be sent to that client’s model provider.
Source repository
Open the original repository on GitHub.
17 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

OrcaReplay: Time Travel for AI Agents, Debugging and Evaluation
October 2, 2026
OrcaReplay introduces "time travel" capabilities for AI agents, allowing developers to record, replay, fork, and debug any agent run with any model. It addresses the challenges of AI agent debugging by providing byte-for-byte reproducibility, offline analysis, and the ability to compare different models from specific checkpoints. This tool, built by the OrcaRouter.ai team, enhances observability and control over complex agent behaviors.

OpenMake LLM: Self-Hosted AI Workspace for Local and Open-Weight LLMs
October 1, 2026
OpenMake LLM is an open-source, self-hosted AI workspace for local and open-weight LLMs. It coordinates specialized models, autonomous agents, and tools for deep research and artifact generation. This platform supports vLLM, LiteLLM, and BYOK providers, offering a robust environment for managing AI workloads.

ZenNotes: Keyboard-First Markdown Notes with Vim, Diagrams, and MCP Integration
October 1, 2026
ZenNotes is a versatile, keyboard-first Markdown notes app designed for speed and flexibility. It stores notes as plain Markdown files, offering Vim-friendly editing, diagram support, and integration with MCP tools. Available as a desktop app (Electron) and a self-hosted web app, ZenNotes provides a powerful solution for organizing your thoughts.

lat.md: A Knowledge Graph for Your Codebase, Written in Markdown
September 26, 2026
lat.md is an innovative tool that transforms your codebase knowledge into an interconnected graph of markdown files. It helps both AI agents and human developers quickly understand project architecture, business logic, and design decisions. By integrating directly into your project, lat.md ensures documentation remains consistent and up-to-date.