health-os
Local-first personal health record: labs, meds, wearables and food log with safety checks
health-os is an open-source MCP server for health and science. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- Self-hosted, CLI
- Runs
- Locally
- What it can do
- Read-only
- Access
- Needs a secret key or token
- Version
- 0.4.0
Similar MCP servers
Install
Add with the CLI
Run in a 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.0Add --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.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>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
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.0Or add to config.toml
Add to ~/.codex/config.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>" }Add to your client's MCP settings (most use this shape)
{
"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>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
DATABASE_URLPostgreSQL 16 + pgvector connection string, e.g. postgresql+psycopg://health:PASSWORD@host.docker.internal:5432/health_os. Run migrations and seed first (see README).RequiredREADONLY_DATABASE_URLRecommended: connection as the restricted health_readonly login (scripts/setup_readonly.py). Gives DB-level read isolation; sql_query runs only with it.
About health-os
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.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
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_anomaliesName suggests: reads
- Anomalies against your own baseline
- list_pending_reviewsName suggests: reads
- Unapproved and unmapped lab rows
- get_health_summaryName suggests: reads
- Overview of recorded health data
- sql_queryName suggests: reads
- Read-only SQL when a restricted database login is configured
What it does
- 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
Pricing
Open source
health-os 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.
