# Apple Health MCP server

> Query your Apple Health CSV export with SQL to answer questions about sleep, workouts, activity and heart data.

- Listing: https://mcp.tc/i/apple-health
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: no API key needed
- Category: [Data & Analytics](https://mcp.tc/c/analytics)
- Vendor: neiltron
- Repository: <https://github.com/neiltron/apple-health-mcp>
- Package: npm `@neiltron/apple-health-mcp`

## About

Reads an Apple Health CSV export from a local folder and loads it into DuckDB. An assistant can discover the schema, run SQL SELECT queries and generate weekly, monthly or custom health summaries covering sleep, workouts, activity and heart data.

Runs locally over stdio with npx (@neiltron/apple-health-mcp) and needs Node.js 22 or newer. No sign-in or API key is needed. Set HEALTH\_DATA\_DIR to the unzipped export from the Simple Health Export CSV app. The server makes no network requests, but query results go to your client's model provider.

## What it can do

- Discover tables, columns, units and sample rows
- Run DuckDB SELECT queries with JSON, CSV or summary output
- Generate weekly, monthly or custom health reports
- Analyze sleep, workouts, activity and heart data locally

## Example prompts

- "Show my average sleep duration per week over the last three months."
- "List my workouts from last month with total duration by type."
- "How has my resting heart rate changed this year?"
- "Generate a monthly health report for September."

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport stdio apple-health --env "HEALTH_DATA_DIR=<YOUR_HEALTH_DATA_DIR>" -- npx -y @neiltron/apple-health-mcp
```

2. Start Claude Code and type `/mcp`. **apple-health** should show as connected.

Add `--scope user` to make it available in every project. Replace the placeholders with your own values.

### Claude Desktop

1. Open **Settings → Developer → Edit Config**. It opens `claude_desktop_config.json`. Add:

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "apple-health": {
      "command": "npx",
      "args": [
        "-y",
        "@neiltron/apple-health-mcp"
      ],
      "env": {
        "HEALTH_DATA_DIR": "<YOUR_HEALTH_DATA_DIR>"
      }
    }
  }
}
```

2. Save the file and restart Claude Desktop. Replace the placeholders with your own values.

Needs Node.js on your computer. The file lives in `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=apple-health&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBuZWlsdHJvbi9hcHBsZS1oZWFsdGgtbWNwIl0sImVudiI6eyJIRUFMVEhfREFUQV9ESVIiOiI8WU9VUl9IRUFMVEhfREFUQV9ESVI%2BIn19>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "apple-health": {
      "command": "npx",
      "args": [
        "-y",
        "@neiltron/apple-health-mcp"
      ],
      "env": {
        "HEALTH_DATA_DIR": "<YOUR_HEALTH_DATA_DIR>"
      }
    }
  }
}
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### VS Code

[Install in VS Code](<https://vscode.dev/redirect/mcp/install?name=apple-health&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40neiltron%2Fapple-health-mcp%22%5D%2C%22env%22%3A%7B%22HEALTH_DATA_DIR%22%3A%22%3CYOUR_HEALTH_DATA_DIR%3E%22%7D%7D>) (opens VS Code)

Or from a terminal:

```bash
code --add-mcp '{"name":"apple-health","type":"stdio","command":"npx","args":["-y","@neiltron/apple-health-mcp"],"env":{"HEALTH_DATA_DIR":"<YOUR_HEALTH_DATA_DIR>"}}'
```

Or commit it to the repo in `.vscode/mcp.json`:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "apple-health": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@neiltron/apple-health-mcp"
      ],
      "env": {
        "HEALTH_DATA_DIR": "<YOUR_HEALTH_DATA_DIR>"
      }
    }
  }
}
```

Needs Node.js on your computer.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "apple-health": {
      "command": "npx",
      "args": [
        "-y",
        "@neiltron/apple-health-mcp"
      ],
      "env": {
        "HEALTH_DATA_DIR": "<YOUR_HEALTH_DATA_DIR>"
      }
    }
  }
}
```

2. Refresh the MCP server list in Cascade. Replace the placeholders with your own values.

Devin Desktop is the new name for Windsurf.

### Codex

```bash
codex mcp add apple-health --env "HEALTH_DATA_DIR=<YOUR_HEALTH_DATA_DIR>" -- npx -y @neiltron/apple-health-mcp
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.apple-health]
command = "npx"
args = ["-y", "@neiltron/apple-health-mcp"]
env = { HEALTH_DATA_DIR = "<YOUR_HEALTH_DATA_DIR>" }
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### Gemini CLI

```bash
gemini mcp add -e "HEALTH_DATA_DIR=<YOUR_HEALTH_DATA_DIR>" apple-health npx -- -y @neiltron/apple-health-mcp
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients that start local servers accept this shape:

```json
{
  "mcpServers": {
    "apple-health": {
      "command": "npx",
      "args": [
        "-y",
        "@neiltron/apple-health-mcp"
      ],
      "env": {
        "HEALTH_DATA_DIR": "<YOUR_HEALTH_DATA_DIR>"
      }
    }
  }
}
```

Zed puts servers under `context_servers` in its settings, with the same `command`, `args` and `env` fields.

Needs Node.js on your computer. Replace the placeholders with your own values.

## Recent changes

- 2026-10-13 04:27 UTC: Tracking started: version 1.4.5. Source: automatic check.

More on the History tab, with descriptions before and after for the newest entries: https://mcp.tc/i/apple-health#history (Atom feed: https://mcp.tc/i/apple-health/history.xml). It records what mcp.tc's anonymous checks saw, every 3 hours where the tool list can be read without sign-in; it is not a security review.

## Details

- Server version: 1.4.5
- Last checked: 2026-10-13
- Listed: 2026-10-13
- Updated: 2026-10-13

---
Source: https://mcp.tc/i/apple-health (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
