Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

health4ai

MCP server by jefflitt1 Community

health4ai lets an AI assistant answer questions about your Apple Health data, such as sleep, HRV and recovery. A free iOS app syncs the data into a Supabase project you own, and a local MCP server reads it. It suits people who want their health data kept in their own database.

  • Score 64
  • 12 stars
  • MIT
  • Updated

Install health4ai

Built from the published package, never by AI.

claude mcp add health4ai -e DATABASE_URL=YOUR_DATABASE_URL -e HEALTHKIT_USER_ID=YOUR_HEALTHKIT_USER_ID -- uvx health4ai

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install health4ai in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the health4ai block.

About

health4ai is an MCP server that lets an AI assistant query Apple Health data stored in a Supabase project you create and own. A free iOS app reads HealthKit data on your iPhone and syncs it through a Supabase Edge Function into Postgres tables. The MCP server runs locally with your own database credentials, and the source says it works with any MCP-compatible client, including Claude, ChatGPT, Cursor and Ollama through mcphost.

The server provides purpose-built tools for sleep, HRV, workouts, recovery, daily snapshots and long-term trends. The project states that it runs no backend and never stores or has access to health data. It is aimed at people who want to ask about their own biometrics in plain language while keeping their data in their own database. The project is MIT licensed.

Written from the project's README and checked against it.

Tools it gives your assistant

  • get_health_summaryOverview of key metrics for the past N days.
  • get_sleepPer-night sleep breakdown with REM, Deep and Core stages.
  • get_hrv_trendDaily HRV (SDNN) with rolling comparison and trend.
  • get_daily_snapshotEverything recorded for a specific date.
  • get_workoutsRecent workouts with type, duration, distance and calories.
  • query_metricRaw time-series for any HealthKit metric type.
  • get_long_term_trendMonthly aggregates over years, using raw and summary tiers.
  • get_coaching_briefRecovery status, sleep quality, training load and fitness markers.
  • search_recordsFind days where a metric crossed a threshold.
  • get_metric_statsPersonal baseline with min, max, mean and percentiles.

What you need

  • A Supabase project you own
  • Free iOS app from the App Store
  • iPhone with Apple Health data
  • Python to run the MCP server
  • Supabase CLI to deploy the ingest function
  • An MCP-compatible AI client
SettingNeededWhat it is
DATABASE_URLEnvironment variable, secretRequiredPostgres connection string for your Supabase project (transaction pooler; database password, not a service-role key).
HEALTHKIT_USER_IDEnvironment variableRequiredUUID of the Supabase Auth user whose HealthKit data to query.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • How was my recovery this week? Anything standing out?
  • Show my sleep stages for the last 7 nights.
  • Which days in the past year had resting heart rate above 60?

Good to know

  • Plain Postgres such as Neon or local Docker is not a supported backend; Supabase is required.
  • iOS does not report denied Health permissions, so an empty result can mean no sharing rather than no activity.
  • The app signs in with an existing Supabase Auth user and does not sign up new users.
  • Calendar days follow HEALTH4AI_TZ and default to UTC.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to health4ai

All alternatives →
Mirobody thetahealth
96

Standardizes lab test names to LOINC codes and units to UCUM, and symptoms and diagnoses to ICPC-3, offline and with no API key. Built for people who want their health records on their own machine and queryable by an AI agent over MCP.

AAA Local 1.9k
Ruview ruvnet
94

RuView is a WiFi sensing platform and MCP server that uses low-cost ESP32 sensors to detect people, breathing and heart rate. It is for developers and operators who want room sensing without cameras or wearables.

AAA Local 106k
tooluniversemims-harvard
90

ToolUniverse is an MCP server that gives AI assistants access to more than 2,700 scientific tools for life science, research and literature. It is aimed at AI scientists, researchers and developers building research systems.

AAA Local 1.8k
Mirobody thetahealth
90

Mirobody is a self-hosted engine that turns lab reports, wearable data and genetic files into a single health record. Its built-in MCP server lets an AI assistant query that record and trace each number back to its source file. It is for people who want their health data on their own machine.

AAA Local 1.9k
Scansci PDF Rimagination
88

ScanSci PDF gets academic papers for AI agents. Give it a DOI, arXiv ID, article link, reference list or research question, and it searches candidate sources and tries to fetch accessible full texts. It is for students, researchers and labs.

AAA Local 1.3k
Dsh Wensu hui-xu-ai
87

Searches CNKI and Web of Science through an MCP server, returning records with impact factors. It can also open a paper in the user's signed-in browser and read its full text. Built for researchers who want AI answers on science topics backed by the source article.

AAC Local 5k/wk

Compare with Mirobody, Ruview or tooluniverse

health4ai: common questions

Does health4ai store my health data?

The source says health4.ai never receives, stores or has access to health data. Data goes from the iPhone directly to the user's own Supabase project.

Which AI clients can use health4ai?

The source names Claude, ChatGPT, Cursor and Ollama, and says any MCP-compatible client can use the server over stdio.

Why does an empty metric show a data_status block?

iOS does not tell apps when a Health permission is denied, so an empty result looks the same as a day with no activity. The data_status block helps tell a sharing problem from a real gap.

How do I install health4ai?

In Claude Code run claude mcp add health4ai -e DATABASE_URL=YOUR_DATABASE_URL -e HEALTHKIT_USER_ID=YOUR_HEALTHKIT_USER_ID -- uvx health4ai. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is health4ai the official server?

health4ai is a community project by jefflitt1, not verified by a company domain.

Is health4ai free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is health4ai safe to use?

It scores 64 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to health4ai?

Similar MCP servers: Mirobody, Ruview, tooluniverse, Mirobody.

Does health4ai work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

health4ai Install

Add to stack

Loading.