# JustLabs for developers and AI agents

Read-only, public access to the JustLabs lab-test catalogue and all-in prices: an MCP App, a few HTTP endpoints and discovery files. No API key. No personal data in or out.

## Pricing rule

An order costs the sum of its test and panel prices plus ONE $18 lab & physician order fee (Quest blood draw + independent physician order), charged once per order however many items it holds. Orders are not accepted from NY, NJ, RI or HI.

Example (CA): TSH (Thyroid Stimulating Hormone) $7.50 + Vitamin D, 25-Hydroxy $23.50 + $18 order fee = $49. Get it live: https://justlabs.health/api/public/v1/quote?items=tsh,vitamin-d&state=CA

## MCP App

Remote MCP server (StreamableHTTP, no authentication): https://mcp.justlabs.health/mcp

In MCP Apps-capable clients (Claude, ChatGPT) every tool also renders an interactive widget (`ui://justlabs/app.html`) with test cards, panel comparisons and a cart.

### Claude Code

```
claude mcp add --transport http justlabs https://mcp.justlabs.health/mcp
```

### Any client with a JSON config (remote HTTP)

```
{
  "mcpServers": {
    "justlabs": {
      "type": "http",
      "url": "https://mcp.justlabs.health/mcp"
    }
  }
}
```

### Stdio-only clients (bridge with mcp-remote)

```
{
  "mcpServers": {
    "justlabs": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.justlabs.health/mcp"
      ]
    }
  }
}
```

### Tools

| Tool | What it does | Example arguments |
| --- | --- | --- |
| `search-lab-tests` | Search the JustLabs catalog by test name, category, description, or biomarker. Product terms only — no names, contact details, symptoms or personal lab results. | `{"query":"thyroid"}` |
| `get-test-details` | Full details for one lab test by id: price, biomarkers, preparation and turnaround. | `{"testId":"tsh"}` |
| `get-test-panels` | Bundled test panels, with each panel price compared to its tests bought separately. Optional category filter. | `{"category":"thyroid"}` |
| `get-pricing` | The exact all-in price for one or more test or panel ids — item prices, the single per-order fee and the total checkout charges — plus whether the order can be placed in an optional 2-letter US state. | `{"testIds":["tsh","vitamin-d"],"state":"CA"}` |
| `find-draw-sites` | Quest Diagnostics blood-draw sites near a 5-digit US ZIP code: address, distance, hours, a booking link and optionally the next open appointment times. ZIP code only — never a street address, name or contact details. | `{"zip":"94110","limit":3,"includeSlots":true}` |
| `lookup-reference-range` | Quest's published reference range for a lab marker, optionally by sex and age, with unit, source and the JustLabs test that measures it. Educational only; the range on the patient's own report applies. Send the marker name, never a result value. | `{"marker":"ferritin","sex":"female"}` |
| `compare-prices` | One test or panel's all-in price at JustLabs and at other direct-to-consumer lab services, with each one's fees, whether it covers the same tests, the source link and the date checked. | `{"item":"vitamin-d"}` |
| `compare-provider` | How JustLabs compares with another lab-testing service (e.g. testwell, everlywell, quest-health, labcorp-ondemand): verdict, sourced facts, where each is the better choice, FAQs and the full comparison page. | `{"provider":"everlywell"}` |
| `recommend-tests` | JustLabs panels and tests for health goals or symptoms, each with a reason, price and link, based on our condition and symptom guides. General education, not a diagnosis. Short goal or symptom words only. | `{"goals":["thyroid"],"symptoms":["fatigue"]}` |
| `get-guide` | Read any public JustLabs page as Markdown by path (e.g. /blood-test-preparation, /labs-for/hypothyroidism, /tests/tsh/cost). Account, checkout, results and API paths are refused. | `{"path":"/labs-for/hypothyroidism"}` |

The older npm stdio package `justlabs-mcp-server` has a different, legacy tool set and does not compute all-in totals; prefer the MCP App.

## HTTP endpoints

Base URL https://justlabs.health. CORS open, JSON, cached briefly.

- **GET /api/public/v1/quote?items=…&state=…** — All-in price of a basket: item prices, the single $18 per-order fee and the total, in integer cents — computed by the same code checkout charges with. Optional state availability and a prefilled cart link. Spec: https://justlabs.health/openapi-public.yaml
- **GET /api/public/v1/availability?state=…&item=…** — Whether JustLabs accepts orders from a state and, with item, whether that test or panel is offered there. Spec: https://justlabs.health/openapi-public.yaml
- **GET /api/public/v1/draw-sites?zip=…&radiusMiles=…&limit=…&slots=1** — Quest patient service centers that take JustLabs orders nearest a US ZIP (never NY, NJ, RI or HI): address, phone, hours, approximate distance and our find-a-lab page. slots=1 adds the next few appointment times for the three nearest bookable sites when Quest scheduling is up. Spec: https://justlabs.health/openapi-public.yaml
- **GET /api/public/v1/reference-range?marker=…&sex=…&age=…** — Quest's published reference range for a biomarker or test (the ranges our pages show, or Quest's own directory page as the source), filtered by sex/age only where rows are labelled, with the matching test and its all-in price. Educational: the range on the patient's own report applies. Spec: https://justlabs.health/openapi-public.yaml
- **GET /api/public/v1/compare-prices?item=…** — One test or panel's all-in price at JustLabs and at each compared service (their own product pages, dated), marking same-tests rows versus closest products. The same numbers as the /tests/<id>/cost pages. Spec: https://justlabs.health/openapi-public.yaml
- **GET /api/public/v1/compare-provider?provider=…** — The JustLabs-vs-<provider> comparison page as JSON: verdict, sourced facts, where each side wins and FAQs. ?locale=es for Spanish. Spec: https://justlabs.health/openapi-public.yaml
- **GET /api/public/v1/recommend?goals=…&symptoms=…** — The panels and tests our condition and symptom pages list for those topics (English or Spanish words), ranked, with live all-in prices. Deterministic and not a diagnosis; POST the same fields as JSON to keep the words out of URLs. Spec: https://justlabs.health/openapi-public.yaml
- **GET /api/public/v1/catalog.csv** — CSV feed of every published test and panel for price-comparison sites: price, order fee, single-item all-in, CPT, Quest code, biomarkers, fasting, turnaround, states not served. Strong ETag; If-None-Match returns 304. Spec: https://justlabs.health/openapi-public.yaml
- **GET /api/catalog** — Compact catalogue for LLM grounding: id, name, price, biomarkers, category, url and a short description per test and panel. Supports ?locale=es and ?utm_medium=<tool>.
- **GET /api/tests** — The full public catalogue: every test and panel with its public fields. Spec: https://justlabs.health/api/tests/openapi.json
- **GET /cart/handoff?items=…** — Not an API: a link that opens the JustLabs cart prefilled with these ids. Keep utm_source / utm_medium on it for attribution.
- **GET /<any public page> with Accept: text/markdown** — A clean Markdown version of the same page: tests, panels, categories, guides, blog articles (or add .md to the URL). This is how to read a guide; there is no separate guide endpoint. Protected pages (dashboard, checkout, login, admin) always return HTML.

## Examples

### All-in quote

```
curl -s 'https://justlabs.health/api/public/v1/quote?items=tsh,vitamin-d&state=CA'
```

### State availability

```
curl -s 'https://justlabs.health/api/public/v1/availability?state=NY&item=tsh'
```

### Draw sites near a ZIP

```
curl -s 'https://justlabs.health/api/public/v1/draw-sites?zip=94110&limit=5'
```

### Compare one test across services

```
curl -s 'https://justlabs.health/api/public/v1/compare-prices?item=tsh'
```

### A page as Markdown

```
curl -s -H 'Accept: text/markdown' 'https://justlabs.health/tests/tsh'
```

### Prefilled cart link

```
https://justlabs.health/cart/handoff?items=tsh,vitamin-d&utm_source=ai&utm_medium=<your-tool>
```

## Discovery files

- [llms.txt](https://justlabs.health/llms.txt) — Plain-language map of the site for language models.
- [MCP server card](https://justlabs.health/.well-known/mcp/server-card.json) — The MCP App: transport, URL and tools.
- [Agent skills index](https://justlabs.health/.well-known/agent-skills/index.json) — One SHA-256-addressed SKILL.md per MCP tool.
- [API catalog (RFC 9727)](https://justlabs.health/.well-known/api-catalog) — Linkset of the public APIs and their specs.
- [OpenAPI: public endpoints](https://justlabs.health/openapi-public.yaml) — OpenAPI 3.1 for every /api/public/v1 endpoint.
- [OpenAPI: catalogue](https://justlabs.health/api/tests/openapi.json) — OpenAPI 3.1 for /api/tests.

## Ordering for patients

This page covers reading the catalogue and prices. To place lab orders for your users or patients (EHRs, telehealth, clinics, health apps), use the authenticated partner API: https://justlabs.health/for-partners/companies — documentation at https://docs.justlabs.health, OpenAPI at https://justlabs.health/api-docs/openapi.yaml.

## Ground rules

- Read-only. Nothing here places an order or takes a payment; checkout happens on justlabs.health.
- Public catalogue data only. Send catalogue ids, a state, a ZIP or a marker name — never names, contact details or lab results. The recommend endpoint takes goal or symptom words only: JustLabs never stores or logs them, and POST keeps them out of URLs.
- Prices are live. Quote the total from the quote endpoint or get-pricing rather than adding the fee by hand.
- Educational, not diagnostic. Symptom → test mappings and test descriptions are not medical advice.
- Rate limited per client IP (60-request burst, about 60 a minute sustained; HTTP 429 with Retry-After). Need more? Email support@justlabs.health.
- Content signals in robots.txt: search=yes, ai-input=yes, ai-train=no. Grounding and citation are welcome; training on the content is not.
