# health-os

> health-os is an open-source MCP server for health and science. Local-first personal health record: labs, meds, wearables and food log with safety checks. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Self-hosted, CLI
- **Repository:** https://github.com/andronaft/health-os
- **MCP Registry name:** io.github.andronaft/health-os
- **Categories:** [health and science](https://ai-powered.com/categories/health-and-science)
- **Listing updated:** 2026-11-23

## About

health-os keeps a person's labs, diagnoses, medications, wearable data and food log in a Postgres database they run themselves, and lets an MCP client read and update it through guarded tools. It is deliberately cautious about what the model decides. Critical-value alerts, drug-safety rules and screening schedules are deterministic code, drug-interaction questions are refused and redirected to a doctor or pharmacist, and a crisis tool returns a fixed response with hotlines regardless of the model.

Lab reports arrive by dropping a PDF or photo into the client; the model extracts values, health-os normalises marker names across Ukrainian, Russian, English and Latin synonyms and units, and every row is staged as pending until you approve it. It then offers Mann-Kendall trends, anomalies against your own baseline, a screening calendar, a weekly report and a doctor-visit brief, and logs meals against a 41-nutrient profile. Apple Health and Garmin imports are supported.

The README says it is not a medical device. Risk calculators such as SCORE2 currently only enforce validated age ranges. A one-command Docker demo loads a fictional patient. With a cloud assistant, whatever tools return goes to that provider.

## Features

- **Approval before facts:** Extracted lab values stay pending until you approve them.
- **Deterministic safety rules:** Critical values and drug checks are coded rules, not model judgement.
- **Trends and baselines:** Shows trends and anomalies against your own history.
- **Food log:** Tracks 41 nutrients with percent RDA and deficiency flags.
- **Device imports:** Reads Apple Health exports and Garmin data.
- **Read-only role:** Optional restricted database login for read isolation.

## Good for

- Ask whether your LDL is trending up
- Review lab panels awaiting approval
- Prepare a brief before a doctor visit
- See what you are short on nutritionally this week
- Import wearable data into one record

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add health-os --env DATABASE_URL='<DATABASE_URL>' --env READONLY_DATABASE_URL='<READONLY_DATABASE_URL>' -- docker run -i --rm -e DATABASE_URL -e READONLY_DATABASE_URL ghcr.io/andronaft/health-os:0.4.0
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "health-os": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add health-os --env DATABASE_URL='<DATABASE_URL>' --env READONLY_DATABASE_URL='<READONLY_DATABASE_URL>' -- docker run -i --rm -e DATABASE_URL -e READONLY_DATABASE_URL ghcr.io/andronaft/health-os:0.4.0
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.health-os]
command = "docker"
args = ["run", "-i", "--rm", "-e", "DATABASE_URL", "-e", "READONLY_DATABASE_URL", "ghcr.io/andronaft/health-os:0.4.0"]
env = { DATABASE_URL = "<DATABASE_URL>", READONLY_DATABASE_URL = "<READONLY_DATABASE_URL>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e DATABASE_URL='<DATABASE_URL>' -e READONLY_DATABASE_URL='<READONLY_DATABASE_URL>' health-os docker -- run -i --rm -e DATABASE_URL -e READONLY_DATABASE_URL ghcr.io/andronaft/health-os:0.4.0

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "health-os": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "-e",
        "READONLY_DATABASE_URL",
        "ghcr.io/andronaft/health-os:0.4.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "READONLY_DATABASE_URL": "<READONLY_DATABASE_URL>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 4 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `get_anomalies` (name suggests: reads): Anomalies against your own baseline
- `list_pending_reviews` (name suggests: reads): Unapproved and unmapped lab rows
- `get_health_summary` (name suggests: reads): Overview of recorded health data
- `sql_query` (name suggests: reads): Read-only SQL when a restricted database login is configured

## FAQ

### Where does my data live?

In your own Postgres database, run locally in Docker.

### Is health-os medical advice?

No, the README says it is not a medical device and gives no medical advice.

### Can I try health-os without my data?

Yes, make demo starts a database with a fictional patient.

### What leaves my machine?

It depends on your MCP client; a cloud assistant receives whatever tools return.

### Is health-os free?

Yes. health-os is open source, so you can use and self-host it for free.

### How do I add health-os to Claude Code?

Run this command in your terminal: claude mcp add health-os --env DATABASE_URL='<DATABASE_URL>' --env READONLY_DATABASE_URL='<READONLY_DATABASE_URL>' -- docker run -i --rm -e DATABASE_URL -e READONLY_DATABASE_URL ghcr.io/andronaft/health-os:0.4.0

### What are the best alternatives to health-os?

The closest alternatives to health-os are Tooluniverse, Oya Browser, BasalFit, Bloodwork and Omics Health Chile.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Tooluniverse](https://ai-powered.com/mcp/tooluniverse): Tooluniverse is an open-source MCP server for health and science.
- [Oya Browser](https://ai-powered.com/mcp/oya-browser): Oya Browser is a freemium MCP server for browser automation.
- [BasalFit](https://ai-powered.com/mcp/basalfit): BasalFit is a free MCP server for health and science.
- [Bloodwork](https://ai-powered.com/mcp/bloodwork): Bloodwork is an MCP server for health data.
- [Omics Health Chile](https://ai-powered.com/mcp/omics-health-chile): Omics Health Chile is an MCP server for health and science.
- [Proactive Parent guidance](https://ai-powered.com/mcp/proactive-parent-guidance): Proactive Parent guidance is an MCP server for health and science.
- [Psychotherapy](https://ai-powered.com/mcp/psychotherapy): Psychotherapy is an MCP server for health and science.
- [GIDocs Public Information](https://ai-powered.com/mcp/gidocs-public-information): GIDocs Public Information is an MCP server for local services.

---
Source: https://ai-powered.com/mcp/health-os-2
