Apple Health MCP Server An MCP (Model Context Protocol) server for querying Apple Health data using SQL. Built with DuckDB for fast, efficient health data analysis. Note This project currently relies on the Simple Health Export CSV app by Eric Wolter. See Exporting Data below for more info on how best to use the app. This is currently the easiest way I could find to quickly and reliably get Apple Health data exported in CSV format. If you have ideas of better ways to import data, please submit an issue. Features Natural language querying : Your MCP client translates your questions to database queries : Your MCP client translates your questions to database queries SQL Query Execution : Direct SQL queries against your Apple Health data : Direct SQL queries against your Apple Health data Automated Reports : Generate weekly/monthly health summaries : Generate weekly/monthly health summaries Efficient Data Loading : Lazy loading with configurable time windows : Lazy loading with configurable time windows Smart Caching: Query result caching with TTL Installation No installation required! Use directly with npx via Claude Desktop or other MCP clients. Usage with Claude Desktop Add to your Claude Desktop configuration ( ~/Library/Application Support/Claude/claude_desktop_config.json ): { "mcpServers" : { "apple-health" : { "command" : " npx " , "args" : [ " @neiltron/apple-health-mcp " ], "env" : { "HEALTH_DATA_DIR" : " /path/to/your/health/export " } } } } Environment Variables HEALTH_DATA_DIR (required): Path to your Apple Health CSV export directory (required): Path to your Apple Health CSV export directory MAX_MEMORY_MB (optional): Maximum memory usage in MB (default: 1024) (optional): Maximum memory usage in MB (default: 1024) CACHE_SIZE (optional): Number of cached query results (default: 100) Example Configuration { "mcpServers" : { "apple-health" : { "command" : " npx " , "args" : [ " @neiltron/apple-health-mcp " ], "env" : { "HEALTH_DATA_DIR" : " /Users/yourname/Dow...
First seen: 2025-07-25 13:06
Last seen: 2025-07-26 12:12