apple-health-mcp-server
by the-momentum·★ 189·综合分 47
MCP 服务器,使用 DuckDB 通过自然语言查询 Apple 健康数据。
概述
Apple Health MCP 服务器允许用户将 Apple 健康数据与支持 MCP 的任何 LLM 连接。它支持使用自然语言查询健康数据进行分析,无需了解 SQL 或复杂数据结构。该服务器基于 FastMCP 框架构建,集成了 DuckDB、Elasticsearch 或 ClickHouse,能够高效处理大规模健康数据集。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您想使用自然语言查询分析 Apple 健康数据而不需要 SQL 知识,请选择此服务器。
什么时候不要选它
如果您需要实时健康数据同步或支持非 Apple 健康设备,请不要选择此方案。
此 server 暴露的工具
从 README 抽取出 12 个工具analyze_data_typesAnalyze available data types and quantities in Apple Health data
query_activityQuery and analyze activity data from Apple Health records
summarize_workoutsSummarize running workouts and other exercise data
search_health_recordsSearch and filter health records with natural language
extract_type_dataExtract data of specific types from Apple Health records
generate_statisticsGenerate statistics and trend analyses from health data
parse_health_xmlParse and import Apple Health XML export files
index_dataIndex health data for efficient querying with Elasticsearch, ClickHouse or DuckDB
find_hidden_trendsIdentify hidden trends in health data using advanced analysis
analyze_workoutsAnalyze workout data from Apple Health records
get_health_data_summaryGet a comprehensive summary of health data
filter_recordsFilter health records based on specific criteria
可对比工具
安装
安装
- 克隆仓库:
git clone https://github.com/the-momentum/apple-health-mcp-server.git
cd apple-health-mcp-server- 安装依赖:
pip install -r requirements.txt- 设置环境变量:
cp .env.example .env
# 编辑 .env 文件进行配置- 运行服务器:
python -m mcp_server.app对于 Claude Desktop,在 config.json 中添加:
{
"mcpServers": {
"apple-health": {
"command": "python",
"args": ["-m", "mcp_server.app"],
"env": {
"PYTHONPATH": "."
}
}
}
}FAQ
- 支持哪些数据源?
- 该服务器主要支持 Apple Health XML 导出数据,但采用模块化架构设计,可以支持其他可穿戴设备数据源。
- 使用此 MCP 服务器需要技术技能吗?
- 不需要,您可以使用自然语言查询健康数据,无需了解 SQL 或数据库知识。
apple-health-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。