Mirobody

Developer tools

Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.

Your AI app calls the Mirobody MCP server, which does the developer tools work and sends the result back to the chat.

About Mirobody

Mirobody is a community MCP server from thetahealth, filed in our directory under developer tools. Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.

Mirobody runs on your own machine: your AI app starts it with the command uvx mirobody==1.6.3 mcp and talks to it over standard input and output.

Mirobody is listed in the official MCP registry as ai.thetahealth/mirobody, version 1.6.3.

At a glance

Publisher
thetahealth (community)
Runs
Locally on your machine
Install from
Python package on PyPI: mirobody
Written in
Python
License
Apache-2.0
GitHub stars
1,921
Official MCP registry
ai.thetahealth/mirobody

How to set up Mirobody

  1. Install uv on the machine that runs your AI app, because Mirobody starts with uvx and fetches its Python package on first run.
  2. Check the Mirobody README for keys or settings; the registry lists none that Mirobody requires.
  3. Add Mirobody to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Mirobody tools to confirm the connection.
  5. Run one read-only task with Mirobody first, and keep your app asking before each tool call until the results look right.

Mirobody compared with similar servers

  • OpenAdaptAI Agent by OpenAdaptAI has fewer GitHub stars than Mirobody (1.9k against 1.9k); both are community servers, and both run locally.
  • Open webSearch by Aas-ee has more GitHub stars than Mirobody (1.9k against 1.9k); both are community servers, and both run locally.
  • Pg Aiguide by timescale has fewer GitHub stars than Mirobody (1.9k against 1.9k); both are community servers, and Pg Aiguide runs as a remote server and Mirobody runs on your own machine.

Before you connect Mirobody

  • Give Mirobody its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Mirobody tool call until you trust what it does with them.
  • Treat text that Mirobody fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Mirobody on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Mirobody

How marketing and sales teams put Mirobody to work, by company size. Pick the size closest to yours and start Mirobody on one use case.

Small business

  • A small business with a developer can use Mirobody to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Mirobody to explain and fix a marketing site issue without context switching between tools.
  • Mirobody runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Mirobody to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Mirobody to keep scripts and automations documented and versioned as they change.
  • Start Mirobody on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Mirobody with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Mirobody so web and marketing engineering share one reviewed way of working with AI.
  • Mirobody is a community server, so have security review the code and pin a version before Mirobody touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Mirobody README

From thetahealth/mirobody on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

Mirobody

Mirror your body in data.

One standard, every source, one complete picture of you, building a lasting record to understand where your health is going.
This open-source edition keeps that record on your own machine: lab reports, wearables and genetic files flow into it, and your AI agent can query it over MCP.

English · 中文 · 日本語 · Русский

▶ Live demo · Try one command · Open in Codespaces · 100% local

Three reports, three names for the same test. One trend, with the file behind every number.

Choose where to start

You want to Start here What you need
Standardize names and units, in a terminal or inside your AI agent One command uv; no model or API key
Try the full app in your browser GitHub Codespaces A GitHub account and your own model API key
Keep the app, models and records on your machine 100% local with Docker Docker with Compose; 16 GB memory; no API key
Keep the app and records on your machine, without Docker No Docker Debian 13, Ubuntu 24.04 or 26.04; the distribution's PostgreSQL; Python 3.12; your own model API key
Use it on your own records with nothing to run Try Mirobody in Theta Web, or in the Theta mobile app An account

Try the engine with one command

With uv installed, paste this into your terminal:

uvx --python 3.12 mirobody resolve "LDL cholesterol" 血红蛋白 ヘモグロビン "Total Kolesterol" 血脂

No repository clone, Docker, model or API key. uv prepares Python and the package for you; the first run needs a network connection to download them. The resolver then works offline from the bundled vocabulary.

血红蛋白 and ヘモグロビン both resolve to 718-7. 血脂 stays unresolved: it names a category, not one test. The same engine standardizes names and units across the full app.

Give the same engine to your AI agent. In Claude Code:

claude mcp add mirobody -- uvx --python 3.12 mirobody mcp

In a default Windows PowerShell window, run claude.cmd instead of claude (why).

Your agent can then standardize any name, reading, unit or complaint you paste, on your machine and without a key. Reading a whole report also needs mirobody[parse] and a model key. Other MCP clients take the same command.

→ Use the engine from Python or MCP

Try the full app in Codespaces

Run the web app in your browser with your own model API key. GitHub prepares the environment; you do not need to install Docker or Python on your computer.

  1. Create the codespace and wait for the automatic setup to finish in its terminal. It starts the app, Postgres, the worker and the synthetic demo data.
  2. Open the setup link printed in the terminal and enter your own model API key: OpenRouter, OpenAI, Gemini, Anthropic, DeepSeek, DashScope, or any OpenAI-compatible gateway. The key is saved only after a real request succeeds. The forwarded app port is private by default.
  3. Sign in as you@mirobody.ai, code 111111, on the Email code tab. Ask "How has my cholesterol changed?" The demo holds 2,022 readings across your record and mom@mirobody.ai's, shared with you view-only.
  4. Upload a synthetic sample from demo/upload/ on the Data page to see a new report join the record, or switch to mom's record and ask again.

The app and its records run in GitHub's cloud; the model service receives the documents and questions it processes. Use the included synthetic data to explore. Codespaces has usage limits and billing; model usage is billed by your model provider. Stop the codespace when you finish. For complete control on your own machine, use the local route below.

Run everything 100% locally

The app, records and models all run on your own machine. No model API key needed. Docker with Compose starts the stack and llama.cpp, with a small answering model and a document reader:

git clone --depth 1 https://github.com/thetahealth/mirobody.git && cd mirobody
COMPOSE_PROFILES=local-cpu ./deploy.sh

Allow 16 GB of memory, at least 8 GB of it for Docker. No GPU is required; on Windows, run the commands in a WSL 2 terminal. The first start needs a network connection to download container images and model weights; if the registry is unreachable, see the mirror option. After those downloads, document reading, standardization and answers run locally. CPU answers can take minutes; Mac, NVIDIA and Windows options explain how to use your GPU.

Open the app link the script prints. The local models are already selected; sign in with the same demo account above, ask a question or upload a sample. Which model to choose compares the local options.

Prefer Docker with a cloud model? Run ./deploy.sh without a local model profile, then paste your own model key into the printed setup link. The app and records stay on your host; the model service processes your documents and questions.

Chat calculations take the original queried data directly. A cloud model's code runs as JavaScript inside the app, with nothing to set up; a model on your own hardware computes in Python in a local Docker container when the app can reach a Docker daemon. Setup and data flow cover both. Query views provide their built-in statistics without either.

→ Self-host guide · Walkthrough · Deploy on a server

Run without Docker

No container, and nothing pulled from a registry. On Debian or Ubuntu, PostgreSQL with pgvector comes from the distribution's own packages, in whichever major version the release ships (16 on Ubuntu 24.04, 17 on Debian 13, 18 on Ubuntu 26.04), and the app runs straight from the checkout. It is the same install the Codespaces path performs:

git clone --depth 1 https://github.com/thetahealth/mirobody.git && cd mirobody
scripts/install_native.sh   # PostgreSQL, pgvector, the Python package, a .env
scripts/start_native.sh     # the worker and the app on port 18060

Open the link it prints and sign in as you@mirobody.ai, code 111111: the demo record is seeded already. A model key from the printed setup link adds document extraction and answers. install_native.sh installs system packages with sudo and writes one sudoers rule for the postgres account, and says so as it runs.

The local models belong to the Docker path, so this one answers through a model service. Everything else matches the row above it in what stays on your machine: the records live in the PostgreSQL you just installed, and a name to a code never leaves the machine.

What you can do

  • Compare reports across labs. PDFs, phone photos and spreadsheets, 23 file types in all, land in one history. Every reading links to the page it was read from.
  • Bring in everyday data. Import an Apple Health export, or connect Garmin, Oura and Whoop.
  • Look after your family. Invite someone who shares their own record, or keep one for a parent who never signs in.
  • Write a health journal. headache since last night, BP 150/95, no fever becomes a coded complaint and two coded readings; "no fever" is not logged as a fever.
  • Explore genetic data. Upload a 23andMe, AncestryDNA or WeGene export, or a VCF, and ask by rsID, gene or region. Drug questions get the matching CPIC guideline coverage, never a change of medication.
  • Use your own agent. Connect Claude Code, Codex or Cursor over MCP, or embed the offline engine in Python.

Mirobody does not diagnose or prescribe, and its answers are not medical advice.

Collect · Standardize · Agent

Stage What it does Where
① Collect Lab reports, devices, photos, genetic files and journal entries come in from every source; each reading keeps the file it came from. collect/
② Standardize A1c, HbA1c and Glycated Hemoglobin resolve to one code, units to one standard, offline: readings from scattered sources land as clean rows in one table. A name it cannot place stays unresolved. engine/ · standardize/
③ Agent Answers come from tools that query that table, not from the model's memory: trends, comparisons across labs and devices, a chart. Every number traces to its file, so you can check it instead of taking it on trust. agent/

The model reads documents and reasons; the codes and units come from vocabularies bundled with the package, never from the model. How a reading is standardized, step by step · How a reading moves through the pipeline.

Care for your family

Joining a care circle shares nothing by itself. Each member decides whether others may view or edit their own record. A parent who never signs in can be managed by you until they claim the record and choose what you keep. See it in the walkthrough.

What stays on your machine

Where the app runs and where the model runs are separate choices. Mirobody does not report usage anywhere.

Codespaces + a model key Local Docker + a model key 100% on this machine
App and stored records in your codespace on GitHub's cloud on your machine on your machine
Documents and questions sent for model processing sent to your model vendor, under its terms sent to your model vendor, under its terms stay on your machine
A name to a code, a unit to UCUM (② Standardize) in the codespace, from the bundled vocabulary on your machine, with no network on your machine, with no network
Model weights managed by the model vendor managed by the model vendor downloaded once from Hugging Face

The command-line resolver also runs on your machine without a model or network access after its initial download.

Device vendors see data only after you link one. Before this reaches a network you do not control, read SECURITY.md: it lists every address the server can call.

Build on Mirobody

You want Start here
Your record in Claude Code, Codex, Cursor or Gemini CLI In the running app, Settings → MCP link (valid for 10 days by default), then one line per client
The offline engine as tools in any MCP client, with no app uvx --python 3.12 mirobody mcp over stdio (client setup)
Mirobody inside DeepSeek Harness dsh-plugin-mirobody, a community plugin by zwbao: the offline engine and your record's read-only tools, with a Mirobody tab
Names and units resolved in your own code pip install mirobody: offline, no key, numpy the only dependency (library guide)
Your coding agent taught the workflow npx skills add thetahealth/mirobody --skill standardize-health-data (skills)
A new device provider or tool Drop a file into mirobody/collect/providers/ or mirobody/agent/tools/ (CONTRIBUTING)
Try the app without deploying Mirobody Web demo, using the same synthetic demo files

Over MCP the stack serves tools scoped to the signed-in person: four read your record (readings, medications, genotypes, pharmacogenomics), three resolve names and units, and two search medical reference material when the deployment has a knowledge source.

The stdio server is published to the official MCP Registry as ai.thetahealth/mirobody with every release. Directories that read the registry list it too, such as mcprush and AddonAudit, which runs it in a sandbox. Each picks up a new version on its own schedule, so take the install line from this README.

After pip install mirobody, use the same engine from Python:

from mirobody.engine import resolve, resolve_reading

resolve("血红蛋白").loinc                                     # '718-7'   any language, one code
resolve_reading("total cholesterol", "5.0", "mmol/L").loinc  # '14647-2' the unit picks the code...
resolve_reading("total cholesterol", "193", "mg/dL").loinc   # '2093-3'  ...mass, not moles
resolve("中性粒细胞百分比").loinc                               # '26511-6' Neutrophils/Leukocytes
resolve("血脂").resolved                                     # False    a category, not one test
Numbers you can check
Claim Check it
766/766 on the tests an ordinary checkup prints, in English, Chinese, Japanese, Russian, Estonian and Turkish test_engine_coverage.py prints the score
63,416 LOINC 2.83 codes cut by rule and 1,023,273 names pointing at them, including LOINC's own 21 languages; report spellings the index misses are added one reviewed row at a time fhir_loinc_bundle.NOTICE · resolver_overrides.tsv · How a reading is standardized
345 UCUM units with dimensional analysis, and 902 catalogue members for device and laboratory indicators Standardization · Device crosswalk
23andMe, AncestryDNA, WeGene, MyHeritage and FamilyTreeDNA exports and VCF on GRCh37 and GRCh38 decode to the same 13 calls across 12 genes, tested on public 1000 Genomes samples shipped in the package test_packaged_examples.py · Public genotype examples
The package names its vocabulary: mirobody.BUNDLE_VERSION is loinc-2.83+2026.10.27-126ecba69782 python -c "import mirobody; print(mirobody.BUNDLE_VERSION)"
Public health-agent benchmarks: ESL-Bench, MedHall-Bench, MedHarm-Bench mirobody-eval · benchmarks/

Mirobody is the health data engine behind Theta, a live consumer health app on the web and mobile.

Contributing

The most useful contribution is a term the resolver gets wrong. Run mirobody resolve "<term>"; if the answer is wrong or empty, report it or send a fix with a test case. That is how the vocabulary grows into new languages: Russian panel and Estonian vitamin terms arrived in #88 and Turkish lab-report spellings in #140, each one row of resolver_overrides.tsv and one test case per term. CONTRIBUTING.md has the setup and the checks.

Writing about Mirobody? The recordings, diagrams and screenshots in docs/images ship under Apache-2.0 and are ready to use in an article or a post; the index says what each one shows.

Built on HL7 FHIR, LOINC from the Regenstrief Institute, UCUM, ICPC-3 (WONCA), CPIC, llama.cpp and deepagents, with thanks. Terminology licences: LICENSE-3RD-PARTY.

If Mirobody helped you make sense of a report, a star helps the next person find it.

Documentation (github.com/thetahealth/mirobody/blob/main/docs/README.md) · Discussions · Roadmap · Changelog · Security · AGENTS.md

Apache 2.0 · © 2026 Theta Health

Questions about Mirobody

What is the Mirobody MCP server?

Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key. Mirobody is maintained by thetahealth on GitHub at thetahealth/mirobody, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Mirobody MCP server?

Add Mirobody to your AI app's MCP config with the command uvx mirobody==1.6.3 mcp. In Claude Code, run claude mcp add --transport stdio mirobody -- uvx mirobody==1.6.3 mcp. To run Mirobody this way you need uv installed.

Does Mirobody need an API key?

The registry lists no required keys for Mirobody. Check the Mirobody README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Mirobody an official MCP server?

No. Mirobody is a community server maintained by thetahealth. Community servers can be excellent; read the code and the open issues before you give Mirobody access to company data.

What license is Mirobody under?

Mirobody is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Mirobody; the service it connects to has its own terms.