MCP Catalogs
首页apple-health-mcp-server screenshot

apple-health-mcp-server

by the-momentum·189·综合分 47

MCP 服务器,使用 DuckDB 通过自然语言查询 Apple 健康数据。

ai-llmhealthdatabase
15
Forks
7
活跃 Issue
3 个月前
最近提交
2 天前
收录于

概述

Apple Health MCP 服务器允许用户将 Apple 健康数据与支持 MCP 的任何 LLM 连接。它支持使用自然语言查询健康数据进行分析,无需了解 SQL 或复杂数据结构。该服务器基于 FastMCP 框架构建,集成了 DuckDB、Elasticsearch 或 ClickHouse,能够高效处理大规模健康数据集。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:通过自然语言查询分析个人健康数据
:跟踪长期健身趋势和锻炼统计
:无需手动数据处理即可生成健康洞察
:支持哪些数据源?
:使用此 MCP 服务器需要技术技能吗?

什么时候选它

如果您想使用自然语言查询分析 Apple 健康数据而不需要 SQL 知识,请选择此服务器。

什么时候不要选它

如果您需要实时健康数据同步或支持非 Apple 健康设备,请不要选择此方案。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • analyze_data_types

    Analyze available data types and quantities in Apple Health data

  • query_activity

    Query and analyze activity data from Apple Health records

  • summarize_workouts

    Summarize running workouts and other exercise data

  • search_health_records

    Search and filter health records with natural language

  • extract_type_data

    Extract data of specific types from Apple Health records

  • generate_statistics

    Generate statistics and trend analyses from health data

  • parse_health_xml

    Parse and import Apple Health XML export files

  • index_data

    Index health data for efficient querying with Elasticsearch, ClickHouse or DuckDB

  • find_hidden_trends

    Identify hidden trends in health data using advanced analysis

  • analyze_workouts

    Analyze workout data from Apple Health records

  • get_health_data_summary

    Get a comprehensive summary of health data

  • filter_records

    Filter health records based on specific criteria

可对比工具

open-wearableshealthkit-mcpwearable-data-mcphealth-graph-api

安装

安装

  1. 克隆仓库:
git clone https://github.com/the-momentum/apple-health-mcp-server.git
cd apple-health-mcp-server
  1. 安装依赖:
pip install -r requirements.txt
  1. 设置环境变量:
cp .env.example .env
# 编辑 .env 文件进行配置
  1. 运行服务器:
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 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。