# mirobody [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/thetahealth/mirobody  
**GitHub Stars:** 1910  
**Views:** 10  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mirobody

## Description
Turn scattered health data into answers you can trace. Self-hosted AI health data engine for lab reports, wearables and genetics, with a built-in MCP server. Run it with Docker and one LLM key, or keep every model local on llama.cpp.

## Tools
Capabilities this server exposes over MCP:

- **standardize_reading** — Turn lab or vital-sign readings as printed (any language) into FHIR Observations with their LOINC code and UCUM unit, offline and without a key. The unit takes part in choosing the code (cholesterol in mmol/L and in mg/dL are different codes), so pass it. An Observation without `coding` means no code was chosen: the coding-decision extension's `reasonKind` says why (category, condition, ambiguous, uncoded, timing, unit_conflict, unknown) and `rejectedReason` or `reason` in a sentence. A blood pressure such as 120/80 mmHg is two readings (systolic, diastolic). Pass one reading (name, value, unit) or up to 200 as `readings`.
- **standardize_complaint** — Classify a complaint or a diagnosis in a person's own words (头疼, sore throat, 高血压) on ICPC-3, offline. kind=symptom for what someone feels, kind=condition for a named diagnosis; the two use different ICPC-3 components and must not be mixed. The words stay in `code.text`; without a `coding` the vocabulary could not place them, and the coding-decision extension's `reason` says why. The ICPC-3 display names are English.
- **standardize_report** — Read a lab report (PDF, image, spreadsheet, text) and return every reading as a FHIR Observation with its LOINC code. Reading the document takes a model: this sends it to the model provider configured on this machine, and needs `pip install 'mirobody[parse]'` and one model key. Coding is local. Pass `path` for a local file or `text` for report text.
- **resolve_indicator** — Resolve indicator names to LOINC codes, offline. Same code from two names means the same test. Unresolved is an honest no: report it unmatched, never invent a code. Each unresolved name carries `reason_kind` (category: ask for one test; condition: use standardize_complaint; ambiguous: pass the unit to standardize_reading; uncoded; timing; unknown: a spelling to report) and `reason`. A panel name answers with the panel's code (blood pressure gives 85354-9); a family of tests (血脂, lipid panel) is refused. Prefer standardize_reading when a value and unit are known.
- **normalize_unit** — Normalize units as printed (mg/dL, 毫摩尔每升, 次/分) to canonical UCUM and their LOINC property family, offline. An empty `ucum` means unrecognized. The family does not decide convertibility; convert_unit does.
- **convert_unit** — Convert one value between units, offline, before comparing readings recorded differently. Crossing mass and substance concentration (mg/dL and mmol/L) needs the reading's LOINC code for the molar mass. A null `converted` is an answer: the units measure different things, so report the readings separately.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mirobody": {
    "command": "uvx",
    "args": ["--python","3.12","mirobody","mcp"]
  }
}
```

## Documentation

## What mirobody does

mirobody is a self-hosted health-data engine designed to bring different personal data sources into one record. It accepts lab reports, wearable data, and genetic files, then makes that information available for analysis and agent queries through Model Context Protocol (MCP).

A central use case is terminology normalization. The resolver can map differently named tests across languages or source systems to a common representation. For example, Chinese and Japanese names for haemoglobin can resolve to the same LOINC code, while a broad category such as “blood lipids” remains unresolved because it does not identify one test. The same standardization engine is used by the full application.

Answers can retain a connection to the underlying readings and source files. The application can combine values from multiple reports into a trend, such as tracking cholesterol over time, while keeping the original report available for inspection.

## How it works

The lightweight MCP route runs from the Python package. With uv installed, `uvx --python 3.12 mirobody mcp` launches the MCP service without requiring a repository checkout, model, or API key for terminology and value standardization. The first invocation downloads the package and Python environment; afterward, the bundled vocabulary supports offline resolution.

An agent sends terminology, readings, units, or complaints through the MCP connection. Reading an entire report adds document parsing and requires the optional `mirobody[parse]` package together with a model key.

The complete application stores records locally when deployed on a personal machine. Docker Compose can start the app, PostgreSQL, workers, and local llama.cpp services. Cloud models can also be used while keeping the application and records on the host, although the selected model service processes the documents and questions sent to it. Local model operation removes that external model dependency.

## Setup and configuration

For a direct MCP installation, use:

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

Other MCP clients can use the same stdio command. On Windows PowerShell with Claude Code, use `claude.cmd` instead of `claude`.

The full local stack can be started after cloning the repository:

```bash
COMPOSE_PROFILES=local-cpu ./deploy.sh
```

The local Docker profile needs Docker Compose and about 16 GB of memory, including at least 8 GB available to Docker. It downloads container images and model weights on first start, and does not require a model API key. CPU inference may take minutes; GPU-specific options are available for Mac, NVIDIA, and Windows environments through WSL 2.

A non-Docker installation is also available for Debian 13, Ubuntu 24.04, and Ubuntu 26.04. It installs PostgreSQL with pgvector, the Python package, and a local environment file, then starts the worker and application on port 18060. Cloud-model use requires a key entered through the setup flow. Supported provider examples include OpenRouter, OpenAI, Gemini, Anthropic, DeepSeek, DashScope, and OpenAI-compatible gateways.

## Tools and capabilities

- Resolve health terminology across languages and naming conventions.
- Standardize test names, readings, and measurement units.
- Map recognized laboratory concepts to LOINC codes.
- Expose the health-data engine to agents over MCP stdio.
- Parse complete reports when the optional parsing package and model key are configured.
- Query stored records containing lab, wearable, and genetic data.
- Combine readings into trends while retaining links to source files.

## Limitations and notes

Terminology resolution is not guaranteed for broad categories or ambiguous labels; the example “blood lipids” remains unresolved because it does not designate one test. Full report reading has additional package and model requirements beyond the basic MCP resolver.

The local Docker deployment requires substantial memory, and CPU-based answers can be slow. Cloud-model deployments keep the app and records on the host, but the model provider receives the documents and questions it processes. Codespaces is intended for exploration and uses GitHub and model-provider resources rather than keeping the entire workflow on a local machine.

_Full upstream README: https://allmcps.com/mcp/mirobody/readme_

