fireboat
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
fireboat
Give AI agents safe, read-only access to one patient's FHIR health records over MCP.
Early preview, not a release. Uses synthetic (made-up) patient data; benchmarks may also use openly licensed, de-identified research data. Runs locally on your own machine. Read-only. SMART on FHIR sign-in works with local test servers only, and is not SMART certified. Not clinically validated. Not affiliated with or endorsed by HL7. No npm package or release yet.
Contents: What it is · Who it is for · Why · How it works · Try it · Use it with an AI agent · The five tools · What a response looks like · When something is not allowed · Configuration · Project layout · Development and testing · What works today · Questions
What it is
fireboat sits between an AI agent, such as Claude Code or Cursor, and a FHIR server, the standard format for electronic health records. It lets the agent search and read one patient's records through MCP (Model Context Protocol), the standard way AI agents connect to tools. The patient is chosen by whoever sets fireboat up, never by the AI. Before anything reaches the AI, fireboat checks that it belongs to that patient and removes what the AI should not see. Today it focuses on one job: looking up a patient's recent lab results.
Related MCP server: LangCare MCP FHIR Server
Who it is for
Developers building AI agents on FHIR data who want a worked example of letting an agent read health records without letting it wander: a fixed patient, no writes, and answers that say what they could and could not check.
People evaluating how AI should handle clinical data, who want to see where the safety checks sit and run them against synthetic data.
Anyone curious about MCP who wants a small, heavily tested server to read and learn from.
It is not for production use or real patients. See What works today.
Why
One patient, locked in: the patient is set in configuration, so the AI cannot ask for anyone else. Every record that comes back is checked again.
Read-only: five tools for finding and reading records. Nothing can write, change or delete data.
Exact values: a lab value written as
7.0stays7.0. A number that cannot be kept exactly is refused, never rounded.Honest answers: every result says what was checked and whether the list may be incomplete.
Size limits: every response has a maximum size, so a large record cannot flood the AI's context.
Heavily tested: automated tests pin each safety rule, and the tests are themselves checked by deliberately breaking the code to make sure they notice.
The security model and testing guide have the details.
How it works
The AI agent calls one of fireboat's five tools over MCP.
fireboat checks the request first. The patient always comes from your configuration, only allowed search filters get through, and the agent can never pass in a web address.
fireboat then asks the one FHIR server you configured on your own machine. It does not follow redirects, and it stops responses that are too large or too slow.
Everything that comes back is checked against the patient again. Data the AI should not see is removed, numbers keep their exact form, and the answer says how complete it is.
Results are kept for a short time, so the agent can page through them without fetching again.
Try it in 2 minutes
Use Node 24.22.0, pinned in .nvmrc, from a checkout.
This demo needs no Docker, API key or AI model.
npm ci
npm run demo -- --checkThe demo starts a synthetic FHIR source and a real MCP stdio server, checks them, then cleans up. Example output:
check ok tools-listed: listed 5 tools
check ok capabilities-succeed: synthetic source described
check ok search-returns-records: 1 record(s)
check ok search-confined-to-trusted-patient: page 1 carries only the trusted patient's observations
check ok page-continues: 1 new record(s)
check ok read-trusted-record: record returned
check ok cross-patient-read-denied: NOT_FOUND
check ok result-inspect: 1 retained record(s)
demo check passed (8 outcomes)Use it with an AI agent
Keep the bundled synthetic source running in one terminal:
SYNTHETIC_FHIR_PORT=19001 npm run demo:sourceIn another terminal, from the checkout, build and register it with Claude Code:
npm run build
mkdir -p .local
sed 's/8080/19001/' examples/local.config.json > .local/fireboat.config.json
npm run doctor -- --config "$PWD/.local/fireboat.config.json"
NODE="$(node -p 'process.execPath')"
CLI="$PWD/dist/packages/server/src/cli.js"
CONFIG="$PWD/.local/fireboat.config.json"
claude mcp add --transport stdio --scope local fireboat -- "$NODE" "$CLI" --config "$CONFIG"Restart Claude Code, then ask: “Show this synthetic patient's recent lab results. Cite the source records and explain any coverage limits.”
Only Claude Code has been tried as an AI host: one scripted session with the current response format, against the bundled synthetic source. The configuration guide covers ports, CLI options, doctor output and search examples. Local stdio does not mean the host keeps data on your device; see the security model.
The five tools
Tool | What the agent uses it for | Main inputs |
| Find out what it can ask: the source, the bound patient, which record types and search filters are supported, and the limits. |
|
| Search the patient's records of one type, for example lab results by code or date. |
|
| Read one record by type and ID, if it belongs to the patient (or is an allowed shared record; a clinician, organization or location only once the patient's own records name it). |
|
| Get the next page of an earlier search. |
|
| Look again at results already fetched, for example to pick out fields, without asking the server again. |
|
An example search for the patient's HbA1c results:
{
"resource_type": "Observation",
"params": [{ "name": "code", "value": "http://loinc.org|4548-4" }],
"page_size": 5
}There is no patient parameter: the patient is already fixed by configuration, and passing one is refused.
See tool inputs and the full tool contract.
What a response looks like
Every tool returns the same shape. This is a real search result from the bundled synthetic source, trimmed for length
(from examples/tool-calls.json):
{
"data": {
"resources": [{
"resourceType": "Observation",
"id": "synthetic-obs-a1",
"code": { "coding": [{ "system": "http://loinc.org", "code": "2345-7",
"display": "Glucose [Mass/volume] in Serum or Plasma" }] },
"subject": { "reference": "Patient/synthetic-patient-a" },
"effectiveDateTime": "2025-01-10T08:00:00.000Z",
"valueQuantity": { "value": 95, "unit": "mg/dL" }
}]
},
"coverage": {
"state": "partial",
"reasons": ["CLINICAL_RECORD_COMPLETENESS_UNKNOWN", "MORE_PAGES"],
"constraints": [{ "name": "patient", "value": "Patient/synthetic-patient-a",
"execution": "gateway_enforced" }]
},
"budget": { "bytes_returned": 2168, "byte_limit": 49152, "wire_bytes": 4773, "limit_reached": false },
"pagination": { "has_more": true, "next_cursor": "cur_..." },
"provenance": [{ "resource_index": 0, "retrieved_at": "2026-10-19T12:00:00.000Z" }]
}dataholds the FHIR records, cleaned of anything the AI should not see. Numbers keep the exact text the server sent.coveragetells the agent how far to trust the list. Here it says the list is partial: there are more pages, and nobody can promise a FHIR server holds a patient's complete history. It also shows that fireboat itself enforced the patient filter.budgetshows the response size against its limit (48 KiB by default). The limit counts one copy of the response (the larger of the text and structured copies);wire_bytesis the whole MCP result, which carries that JSON twice.paginationgives an opaque cursor forfhir_page. Cursors expire and cannot be built by hand.provenancesays where and when each record was fetched, so the agent can cite it.
When something is not allowed
fireboat refuses rather than guesses. A few examples:
The agent tries to... | What happens |
Read another patient's record |
|
Add a | Refused with |
Filter by another patient's record, for example | fireboat first runs the same patient-confined search the agent could run itself ( |
List the clinicians, organizations or locations on the server, or search them by name, address or identifier | Refused with |
Pass a web address or a raw request | Impossible: no tool accepts one. The only server is the one in your configuration. |
Search on a field that fireboat hides, such as a device identifier or an identifier on a shared record | Refused, so the search cannot be used to guess hidden values. |
And when the FHIR server misbehaves:
The server... | What happens |
Returns a record for a different patient | The record is dropped before anything reaches the agent. |
Returns one of this patient's records with a clinician-type reference fireboat cannot verify (for example an identifier only) | That reference is removed and labelled, and the rest of the record is delivered. |
Returns one of this patient's records that fireboat cannot check for another reason | The record is withheld and the page is marked partial with |
Returns a shared record, such as a Medication, that does not meet the shared-record policy | The record is withheld and the page is marked partial with |
Redirects the request elsewhere | The redirect is not followed. |
Sends a number that cannot be kept exactly | The record is refused, never rounded. |
Sends a response that is too large or too slow | The request is stopped at the size or time limit. |
Configuration
A minimal configuration, as shipped in examples/local.config.json:
{
"mode": "synthetic",
"source": { "alias": "local-synthetic", "baseUrl": "http://127.0.0.1:8080/fhir" },
"patientId": "synthetic-patient-a",
"privacy": { "patientIdentifierSystems": ["http://example.invalid/synthetic-mrn"] }
}modemust be"synthetic"for now.source.baseUrlmust be a literal local address, such as127.0.0.1. The agent only ever sees thealias.patientIdis the one patient fireboat will serve.privacy.patientIdentifierSystemslists the identifier systems that identify patients, such as a medical record number. Identifiers in these systems are removed from shared records, and a reference that carries one is treated as naming another patient, so its record is withheld. The patient's own records keep their own identifiers.Optional:
privacy.sharedIdentifierSystemslists product identifier systems that shared Medication records may show (empty by default). It can never include a patient identifier system. A listed system also lets an uncoded Medication mix whose ingredients only reference other Medication records be shown; see the security model.Optional:
privacy.sharedProfileslists themeta.profilecanonicals that shared records may declare (empty by default). Every other shared-record check still applies.Optional:
source.authfor signing in to the FHIR server: OAuth client credentials (the secret is read from an environment variable you name) or SMART on FHIR (a standalone patient launch throughfireboat login, or Backend Services with a private key), andlimitsfor response size, timeouts and how long results are kept.
Run npm run doctor -- --config <path> to check a configuration against its server before you connect an agent.
The configuration guide lists every field.
Project layout
Folder | What is in it |
| The gateway itself: request checks, the HTTP client, patient checks, output shaping, the result store. |
| The MCP server, the |
| Optional sign-in to the FHIR server: OAuth client credentials and the SMART on FHIR client flows. |
| The retrieval checks: fixed tasks with known answers, run through a real MCP client. |
| The demo, the synthetic FHIR server, example configurations and the HAPI FHIR quickstart helper. |
| The automated tests, including the patient-isolation suite. |
| Build, packaging, documentation generators and the mutation-testing tool. |
| User guides, limits and the generated reference pages. |
| The benchmark harness behind docs/BENCHMARK.md, a separate package that is not shipped. |
Development and testing
npm run check # type check, all tests (a few minutes), build
npm run eval:retrieval # retrieval checks, current MCP protocol version
npm run eval:retrieval -- --era legacy # the same checks, older protocol version
npm run test:isolation # patient-isolation suite
node scripts/mutation-guards.mjs --list # list the deliberate-breakage checks
npm run test:smart # live SMART sign-in check (needs Docker)The tests are checked by mutation testing: a tool deliberately breaks a guard in the code, one at a time, and confirms
that a named test fails. A full run takes hours, so contributors usually run a few at a time with --only <ids>.
CONTRIBUTING.md explains the rules, and testing and evidence has the details.
What works today, and what does not yet
Works today (on an Apple-silicon Mac with Node 24.22.0):
The demo, the automated tests and the built-in retrieval checks run locally with no Docker, keys or AI model.
Optional settings let fireboat accept a search page that has no self link when every filter can be checked on the returned records, and follow a server's opaque page tokens; refusals stay the default. This is tested against a synthetic source only (configuration).
32 of the 147 FHIR R4 record types are supported, including lab results, conditions, medication requests, administrations and dispenses, specimens, care plans, care teams, imaging studies and devices. Other types are refused, and documents return their details only, not their contents. Device serial numbers and similar production identifiers are withheld from Device records, and DICOM UIDs from imaging study records; the security model lists the residuals. See the support matrix.
Clinicians, organizations and locations are available only once one of the patient's own records names them, and only by ID.
Seven of those types (medication administrations and dispenses, specimens, care plans, care teams, imaging studies and devices) are tested against synthetic test servers only. Against HAPI FHIR they have been exercised only by the benchmark's scripted questions, not by the project's own live check.
The project's own live check runs against a local HAPI FHIR 8.12.0 server (
npm run test:hapi, needs Docker).SMART on FHIR sign-in: a standalone patient launch (authorization code with PKCE, through
fireboat login) and Backend Services (a signed JWT with a private key). Both are tested against a local SMART Launcher in front of HAPI FHIR, on loopback, with synthetic data (npm run test:smart, needs Docker). The configured patient stays the only patient, and a grant that allows writing is refused. See SMART on FHIR sign-in.
Not yet:
No use with identifiable or live patient records, no writing to records and no serving over a network.
SMART sign-in is not SMART certified and has not been tested against any vendor's server. It accepts local (loopback) servers only. There is no EHR launch and no OpenID Connect sign-in.
Only Apple-silicon Macs with Node 24.22.0 are verified. Linux, Windows and other Node versions are unverified.
An extra, stricter test suite for patient isolation is still being built. It runs in diagnostic mode and counts no cases yet.
No independent human security review yet.
No claim that it saves tokens, time or cost: that has not been measured.
Benchmark (scripted tool calls with no AI model, HAPI FHIR 8.12.0, fireboat built from this repository): on 150 questions about a fresh sample of synthetic patients that development never saw, fireboat with default settings answered 140 correctly (141 with operator settings) and the WSO2 fhir-mcp-server 148. fireboat cannot answer the questions about what a clinical note says or who is on a care team, because it withholds note text and the patient's name on references to the patient. On 147 MIMIC questions, data fireboat was developed against, fireboat answered 134 by default (140 with operator settings) and WSO2 147. fireboat returned no other patient's records in 100 probes. The same author wrote both fireboat and the benchmark, so read the results and caveats. The harness is in bench/.
Current results for the tests, the deliberate-breakage checks, the retrieval checks and the isolation suite are in testing and evidence.
Questions
Can I connect it to a real EHR or real patient data? Not in this version. It only accepts a local FHIR server and synthetic mode, including for SMART sign-in. Use the bundled synthetic server or a local HAPI FHIR server loaded with the synthetic seed (quickstart).
Does it support SMART on FHIR? It can sign in as a SMART on FHIR client: a standalone patient launch through
fireboat login, or Backend Services with a private key. Both are tested only against a local SMART Launcher with
synthetic data, and it is not SMART certified. The patient in your configuration stays the only patient it serves, whatever
the token says. See SMART on FHIR sign-in.
Does my data stay on my machine? fireboat itself runs locally and only talks to the server you configure. But the AI host you connect it to may send tool results to its model provider. That is up to the host, not fireboat. See the security model.
Why only one patient? It keeps the safety rule simple and checkable: the agent cannot reach anyone else, whatever it asks for.
Which AI hosts work? Only Claude Code has been tried: one scripted session with the current response format, against the bundled synthetic source.
Do I need Docker? No. The demo and the bundled synthetic server need only Node. Docker is only for the optional HAPI FHIR quickstart and the live checks.
Was AI used to build it? fireboat was built with the help of AI coding assistants, and AI models were used to review parts of the code and the benchmark; the tests and gates described in docs/TESTING.md are the evidence for how it behaves.
Learn more
Configuration and command-line options, size and time limits, security model.
SMART on FHIR sign-in:
fireboat login, Backend Services keys, scopes and the token file.Testing and evidence, benchmark results and the benchmark harness.
Which record types are supported, how searches are checked, how failed searches are explained.
Running it against a local HAPI FHIR server (needs Docker).
Contributing, code of conduct, instructions for coding agents, security policy.
Issues and pull requests are welcome. Include your platform, Node version, command and output with testing feedback. Report security issues privately through the security policy. Do not submit real or de-identified patient data (including benchmark data) or credentials.
License
Apache License 2.0. See LICENSE, NOTICE and THIRD_PARTY_NOTICES.md.
Third-party content: the synthetic test data contains content from LOINC and records generated with Synthea. The LOINC notice and other credits are in packaging/licenses/SEED_NOTICES.md. Benchmark datasets are not included: they are downloaded at run time and cited in testing and evidence.
HL7® and FHIR® are registered trademarks of Health Level Seven International. Their use here does not constitute endorsement by HL7.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Read patient-authorized EHR records: medications, labs, conditions, allergies. Consent-bounded.
Read a patient's claims and clinical records from the payers and providers they connect.
Search and read patients, conditions, observations and prescriptions in Medplum.
FHIR R4 health records for AI: people connect their own record with consent; free FHIR sandbox.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables LLM-based agents to interact with FHIR healthcare data through natural language prompts, providing full CRUD operations on FHIR resources, document processing, and semantic search capabilities.13102MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to securely interact with FHIR R4-based EMRs, supporting read, search, create, and update operations on any FHIR resource type across systems like Epic, Cerner, and OpenEMR.MIT
- AlicenseNot gradedqualityBmaintenanceConnects frontier AI agents to HL7 FHIR R4 electronic health record repositories, enabling patient, observation, condition, medication, allergy, and diagnostic report queries plus draft-only clinical writes. Enforces mathematical safety gates, HIPAA-compliant tamper-evident audit logging, and token distillation of bulky FHIR payloads.Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables LLM-based agents and MCP-compatible clients to query and manipulate clinical data on a FHIR-compliant backend through CRUD resource tools, document ingestion, semantic search, and terminology lookup.-