Health Os logo

Health Os

Local-first MCP health record for labs, medications, wearables, food logs, trends, and deterministic safety checks.

Install Health Os

Run the project’s own setup commands, in order.

Setup steps from the project

health-os installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/andronaft/health-os && cd health-os
    
  2. 2. Start the server
    make demo                             # or: cd demo && docker compose up -d --build
    
  3. 3. Configure
    cp .env.example .env                  # set the passwords
    
  4. 4. Start the server
    docker compose up -d db               # Postgres 16 + pgvector
    
  5. 5. Configure
    .venv/bin/alembic upgrade head        # schema
    
  6. 6. Configure
    .venv/bin/python -m seed.load         # marker catalog, synonyms, units, nutrients
    

Overview

health-os MCP server stores personal health data in a local PostgreSQL database and exposes it through standard MCP over stdio. It covers lab results, diagnoses, medications, wearable imports, food logs, analytics, screening schedules, and guarded write workflows. Deterministic checks handle critical values, selected medication-safety rules, and crisis responses without relying on model judgment. Use it when an MCP client needs a self-hosted health record with explicit review before staged lab data becomes approved.

Use cases

  • Review pending laboratory results before adding them to the health record
  • Track LDL trends and anomalies against a personal baseline
  • Analyze meals for nutrient deficiencies and excesses
  • Import Apple Health or Garmin records into a local database
  • Generate a brief for an upcoming doctor visit

Key features

  • Local PostgreSQL-backed health record
  • Pending approval workflow for extracted lab data
  • Mann-Kendall trends and baseline anomaly detection
  • 41-nutrient food logging with percentage and flag calculations
  • Deterministic safety rules and configurable alerts
  • Apple Health and Garmin data import

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 48d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Health Os works

What health-os does

health-os provides a local-first personal health record through MCP. PostgreSQL holds laboratory results, diagnoses, medications, wearable data, food entries, and related records. MCP clients can read approved information and submit updates through guarded tools.

Lab documents can be supplied as PDFs or photos for extraction. The system normalizes test names across UK, Russian, English, and Latin synonyms, converts units, and stages each panel as pending. Rows remain pending until explicitly approved, including values that cannot be mapped to the reference catalog. Pending and unmapped rows appear in list_pending_reviews and in the health summary.

The server includes 38 MCP tools and sends its safety instructions to clients when they connect. Its analytics cover lab trends, personal-baseline anomalies, screening schedules, weekly reports, doctor-visit briefs, and nutrition summaries. Food entries use a 41-nutrient profile with percentage-of-recommended-daily-allowance values and deficiency or excess flags. Apple Health exports and Garmin data are supported as device inputs.

How it works

An MCP client communicates with the server over standard stdio. Read operations query approved views, while write operations pass through application services and pending states. PostgreSQL 16 with pgvector is used for storage, and the project includes migrations, seed data, normalization, ingestion, analytics, and safety components.

Safety behavior is implemented in code. Critical values can produce log alerts, macOS notifications, and optionally a generic Telegram notification. Narrative reports with critical findings are flagged. Medication-related interaction questions are refused and redirected to a doctor or pharmacist; the deterministic checks cover total daily paracetamol across products and biotin before laboratory tests. A crisis tool returns a fixed response with hotline information.

Trend analysis uses Mann-Kendall testing and a per-year slope. Anomaly detection compares results with the person’s own baseline. SCORE2, ASCVD, and FRAX currently enforce their validated age ranges, but their risk formulas are not implemented.

Setup and configuration

The demo requires Docker. Clone the repository and run make demo, or start the services from the demo directory with Docker Compose. The demo creates a temporary database containing a fictional patient, sample laboratory history, blood pressure, medications, food data, and a panel awaiting approval. Connect an MCP client using a Docker command with DATABASE_URL and READONLY_DATABASE_URL values pointing at the demo database.

For personal data, Docker and Python 3.12 or newer are required. Copy .env.example to .env, set the database passwords, start the PostgreSQL service, install the Python package in a virtual environment, run the Alembic migrations, and load the reference seed data. A fictional demo patient can be loaded separately. Backup and restore scripts use restic; an included macOS launchd installer can schedule backups.

The server itself uses standard MCP over stdio. Configuration examples are available for LM Studio, Open WebUI, Ollama CLI, and Claude. Local model use is supported, although the project’s end-to-end verification with a local model is still in progress.

Tools and capabilities

  • Extract, normalize, stage, review, and approve laboratory panels.
  • Read health summaries and query laboratory trends.
  • Detect anomalies against personal baselines.
  • Track medications, diagnoses, blood pressure, meals, and nutrition.
  • Import Apple Health exports and Garmin data.
  • Produce screening, weekly, and doctor-visit reports.
  • Run deterministic safety checks and deliver configured alerts.

Limitations and notes

health-os is not a medical device and does not provide medical advice. Alerts and screening reminders are signals to contact a clinician, not diagnoses or reasons to delay care. Database files are plaintext at rest, so disk encryption is recommended. Data returned to a cloud MCP client may be sent to that provider; with a local model, the project states that data can remain on the machine. Telegram alerts contain only a generic prompt to check the health system, not medical values.

The project is licensed under AGPL-3.0-or-later. A separate commercial license is available from the author.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Health Os

health-os is an MCP server that connects AI clients to a local PostgreSQL personal health record, with tools for labs, medications, diagnoses, wearables, food logs, trends, reviews, reports, and deterministic safety checks. It stages extracted lab data for approval before treating it as an approved fact.

Install Docker and Python 3.12 or newer, clone the repository, configure `.env`, start PostgreSQL, install the package, run migrations, and load seed data. The demo can be started with `make demo` and provides a ready-to-connect fictional patient.

Yes, health-os speaks standard MCP over stdio and includes configuration examples for LM Studio, Open WebUI, and Ollama CLI. End-to-end use with a local model is still being verified, while the server has been tested with the official MCP Python client and its Docker demo.

Health-os keeps every extracted lab row in a pending state until explicit approval. Unmapped rows are retained rather than discarded, and pending items appear in `list_pending_reviews` and the health summary.

No, health-os does not provide medical advice or general drug-interaction judgments. It redirects interaction questions to a doctor or pharmacist and runs only deterministic checks for total daily paracetamol and biotin before laboratory tests.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHealth Os AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/health-os-2?style=directory)](https://allmcps.com/mcp/health-os-2)
HTML Embed
<a href="https://allmcps.com/mcp/health-os-2"><img src="https://allmcps.com/api/badge/health-os-2?style=directory" alt="Health Os on AllMCPs" /></a>