Fhir MCP Server logo

Fhir MCP Server

by the-momentum

Connects AI agents to FHIR APIs for natural-language clinical data queries, resource CRUD, document search, and LOINC lookup.

Install Fhir MCP Server

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for the-momentum/fhir-mcp-server, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

The the-momentum/fhir-mcp-server MCP server connects MCP-compatible AI clients with FHIR-compliant backends through tools for querying and modifying clinical resources. It supports CRUD operations for major FHIR resource types, a generic resource tool, LOINC terminology lookup, and document retrieval backed by Pinecone. OAuth2 handles authentication for FHIR API access. Reach for it when an agent needs natural-language access to patient records, clinical resources, or indexed healthcare documents.

Use cases

  • Query patient history in natural language
  • Retrieve conditions, medications, encounters, and patient records
  • Manage FHIR resources through agent-driven CRUD operations
  • Search indexed clinical documents semantically
  • Look up and validate LOINC codes

Key features

  • FHIR resource CRUD
  • OAuth2 authentication
  • LOINC terminology lookup
  • Pinecone semantic document search
  • TXT, CSV, JSON, and PDF ingestion
  • Docker and uv deployment

Tools1

What Fhir MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~19 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

18/19 checks healthy over the last 78d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars101Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Tools exposed1Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Fhir MCP Server works

What the-momentum/fhir-mcp-server MCP server does

The the-momentum/fhir-mcp-server MCP server gives MCP-compatible AI clients a structured interface to FHIR-compliant healthcare systems. It is intended for workflows where an agent needs to retrieve, create, update, or delete FHIR resources while communicating through natural-language requests. The repository demonstrates use with Medplum and Claude Desktop, including patient history questions and treatment-related queries.

The project covers major FHIR resource types with dedicated tools for selected resources and a generic tool for others. The documented examples include patient, condition, medication, and encounter requests. It also connects to LOINC services for medical terminology lookup and validation.

How it works

The server uses FastMCP to expose MCP tools to a client. A FHIR client component manages communication with the configured FHIR API and obtains OAuth2 credentials for protected operations. When an agent asks about clinical information, the client can select resource-specific tools or the generic resource tool based on the request.

Document workflows use ingestion and chunking for TXT, CSV, JSON, and PDF files. Processed content can be embedded and searched through Pinecone, supporting semantic retrieval and retrieval-augmented generation workflows. Pinecone is required for document search; without it, those retrieval features are unavailable. An optional LOINC account enables access to current codes from the official API, while static or inferred codes remain available without that account.

Setup and configuration

The the-momentum/fhir-mcp-server MCP server can run with Docker or uv. Setup requires cloning the repository, copying config/.env.example to config/.env, and supplying the required credentials and configuration. Docker execution uses make build; uv-based execution uses make uv.

The server can use stdio, HTTP, or HTTPS transport. A FHIR server account is required. Pinecone credentials are needed for semantic document search, and LOINC credentials are optional.

Tools and capabilities

  • Perform CRUD operations on FHIR resources.
  • Request patient, condition, medication, and encounter resources with dedicated tools.
  • Use a generic resource request tool for additional FHIR resource types.
  • Search LOINC codes through the terminology service integration.
  • Ingest and chunk TXT, CSV, JSON, and PDF documents.
  • Run vector-based semantic document searches through Pinecone.
  • Authenticate FHIR API operations with OAuth2.

Limitations and notes

The the-momentum/fhir-mcp-server MCP server requires access to a FHIR API and does not replace the permissions enforced by that backend. Document search depends on Pinecone, and LOINC results may rely on static or inferred codes when an official LOINC account is not configured. The README presents synthetic FHIR data generation as an experimental use case rather than the project’s primary design target. The repository is categorized under Biology, Medicine and Bioinformatics, so deployments should be evaluated against the operator’s clinical-data governance and access-control requirements.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Fhir MCP Server

the-momentum/fhir-mcp-server is an MCP server that connects AI agents to FHIR-compliant healthcare APIs. Its main tools support CRUD operations on FHIR resources, requests for patient, condition, medication, and encounter data, generic resource access, LOINC code lookup, and Pinecone-backed document search for supported file formats.

Install it by cloning the repository, copying `config/.env.example` to `config/.env`, configuring credentials, and then running either `make build` for Docker or `make uv` for uv. Add the resulting Docker or uv command to the MCP client configuration and restart the client.

It supports FHIR-compliant backends, with Medplum shown as an example in the README.

Yes, it works with Claude Desktop. The README provides example client configurations for Docker and uv execution, using stdio transport in the Docker example. After editing the client configuration, restart Claude Desktop so the server and environment settings are loaded.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFhir MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/the-momentum-fhir-mcp-server?style=directory)](https://allmcps.com/mcp/the-momentum-fhir-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/the-momentum-fhir-mcp-server"><img src="https://allmcps.com/api/badge/the-momentum-fhir-mcp-server?style=directory" alt="Fhir MCP Server on AllMCPs" /></a>