# health-os [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/andronaft/health-os  
**GitHub Stars:** 3  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/health-os-2

## Description
Local-first personal health record: labs, meds, wearables, food log, deterministic safety checks

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/andronaft/health-os), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/andronaft/health-os && cd health-os
```

2. Start the server:

```sh
make demo                             # or: cd demo && docker compose up -d --build
```

3. Configure:

```sh
cp .env.example .env                  # set the passwords
```

4. Start the server:

```sh
docker compose up -d db               # Postgres 16 + pgvector
```

5. Configure:

```sh
.venv/bin/alembic upgrade head        # schema
```

6. Configure:

```sh
.venv/bin/python -m seed.load         # marker catalog, synonyms, units, nutrients
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/health-os-2/readme_

