Apple Health MCP Server
<a name="readme-top"></a>
<div align="center">
<img src="https://cdn.prod.website-files.com/66a1237564b8afdc9767dd3d/66df7b326efdddf8c1af9dbb_Momentum%20Logo.svg" height="80">
<h1>Apple Health MCP Server</h1>
<p><strong>Apple Health Data Exploration</strong></p>
[](mailto:hello@themomentum.ai?subject=Apple%20Health%20MCP%20Server%20Inquiry)
[](https://themomentum.ai)
[](LICENSE)
<a href="https://glama.ai/mcp/servers/@the-momentum/apple-health-mcp-server">
<img width="380" height="200" src="https://glama.ai/mcp/servers/@the-momentum/apple-health-mcp-server/badge" alt="Apple Health Server MCP server" />
</a>
</div>
> [!NOTE]
> **This project has evolved into [Open Wearables](https://github.com/the-momentum/open-wearables)** - self-hosted platform to unify wearable health data from multiple devices, including Apple Health. Open Wearables also provides an MCP server and a companion app for continuous Apple Health data sync, eliminating the need for manual XML exports. Check it out: [github.com/the-momentum/open-wearables](https://github.com/the-momentum/open-wearables)
---
Connect your Apple Health data with any LLM that supports MCP. Talk to your data and get personalised insights.
## π‘ Demo
This demo shows how Claude uses the `apple-health-mcp-server` to answer questions about your data. Example prompts from the demo:
- I would like you to help me analyze my Apple Health data. Let's start by analyzing the data types - check what data is available and how much of it there is.
- What can you tell me about my activity in the last week? How did my daily statistics look?
- Please also summarise my running workouts in July and June. Do you see anything interesting?
https://github.com/user-attachments/assets/93ddbfb9-6da9-42c1-9872-815abce7e918
Want to try it out? **[π Getting Started](docs/getting-started.md)**
## π Why to use Apple Health MCP Server?
- **π§© Fit your data everywhere**: using this software you can import data exported from Apple devices into any DBMS, base importer is already prepared for extensions
- **π― Simplify complex data access**: you don't need to know data structure or use any structured query language, like SQL, simple access is just granted with natural language
- **ποΈ Find hidden trends**: use LLM as a gate to flexible auto-generated queries which will be able to find data trends not so easy to detect manually
## β¨ Key Features
- **π FastMCP Framework**: Built on FastMCP for high-performance MCP server capabilities
- **π Apple Health Data Exploration**: Import, parse, and analyze Apple Health XML exports
- **π Powerful Search & Filtering**: Query and filter health records using natural language and advanced parameters
- **π¦ Elasticsearch, ClickHouse or DuckDB Integration**: Index and search health data efficiently at scale
- **π οΈ Modular MCP Tools**: Tools for structure analysis, record search, type-based extraction, and more
- **π Data Summaries & Trends**: Generate statistics and trend analyses from your health data
- **π³ Container Ready**: Docker support for easy deployment and scaling
- **π§ Configurable**: Extensive ```.env```-based configuration options
## π Documentation
- **[π Getting Started](docs/getting-started.md)** - Complete setup guide
- **[π About](docs/about.md)** - Detailed description & architecture
- **[π§ Configuration](docs/configuration.md)** - Environment variables and settings
- **[π οΈ MCP Tools](docs/mcp-tools.md)** - All available tools
- **[πΊοΈ Roadmap](docs/roadmap.md)** - Upcoming features and roadmap
**Need help?** Looking for guidance on use cases or implementation? Don't hesitate to ask your question in our [GitHub discussion forum](https://github.com/the-momentum/apple-health-mcp-server/discussions)! You'll also find interesting use cases, tips, and community insights there.
## π₯ Contributors
<a href="https://github.com/the-momentum/apple-health-mcp-server/graphs/contributors">
<img src="https://contrib.rocks/image?repo=the-momentum/apple-health-mcp-server" />
</a>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## πΌ About Momentum
This project is part of Momentumβs open-source ecosystem, where we make healthcare technology more secure, interoperable, and AI-ready. Our goal is to help HealthTech teams adopt standards such as FHIR safely and efficiently. We are healthcare AI development experts, recognized by FT1000, Deloitte Fast 50, and Forbes for building scalable, HIPAA-compliant solutions that power next-generation healthcare innovation.
π Want to learn from our experience? Read our insights β <a href="https://www.themomentum.ai/blog">themomentum.ai/blog</a>.
Interested? <a href="http://themomentum.ai/lets-talk">Let's talk</a>!
<div align="center">
<p><em>Built with β€οΈ by <a href="https://themomentum.ai">Momentum</a> β’ Transforming healthcare data management with AI</em></p>
</div>
TDQS
Scored across 7 tools
The tools are mostly distinct, with clear separation between Elasticsearch-based analytics (get_health_summary_es, get_statistics_by_type_es, get_trend_data_es, search_health_records_es) and XML file operations (get_xml_by_type, get_xml_structure, search_xml_content). However, there is some potential overlap between get_statistics_by_type_es and get_trend_data_es, as both analyze specific record types over time, which could cause confusion in tool selection.
Naming follows a consistent snake_case pattern throughout, with most tools using a clear verb_noun structure (e.g., get_health_summary_es, search_health_records_es). The only minor deviation is get_xml_structure, which uses 'get' instead of a more descriptive verb like 'analyze', but overall the naming is highly predictable and readable.
With 7 tools, the count is well-scoped for an Apple Health data analysis server. This number provides comprehensive coverage for both Elasticsearch analytics and XML file operations without being overwhelming, and each tool appears to serve a distinct purpose that justifies its inclusion.
The toolset covers key operations for health data analysis, including summary retrieval, statistical analysis, trend visualization, and search capabilities across both Elasticsearch and XML sources. A minor gap exists in the lack of explicit update or delete tools, but given the server's focus on read-only data analysis from Apple Health exports, this is reasonable and agents can work effectively with the provided tools.