# fhir-dsl [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/awbx/fhir-dsl  
**GitHub Stars:** 15  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/fhir-dsl

## Description
The TypeScript FHIR toolchain — typed query builder, code generator, FHIRPath, validators with invariants, SMART v2, terminology, and an MCP server

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

```json
"mcpServers": {
  "fhir-dsl": {
    "command": "npx",
    "args": ["-y","@fhir-dsl/cli"]
  }
}
```

## Documentation

## What fhir-dsl MCP server does

The fhir-dsl MCP server connects an LLM agent to a FHIR endpoint and presents FHIR operations as MCP tools. The package is part of the wider TypeScript fhir-dsl toolchain, which includes typed query construction, generated resource and profile types, FHIRPath evaluation, validation, terminology handling, and SMART on FHIR authentication.

The MCP-specific package is `@fhir-dsl/mcp`. Its purpose is to provide an agent-facing bridge for FHIR systems, so an agent can use generic FHIR verbs instead of relying on a separately written adapter for each endpoint.

## How it works

The server receives MCP tool requests from an LLM agent and maps them to operations against a configured FHIR endpoint. It exposes roughly ten generic FHIR verbs rather than a collection of endpoint-specific tools. Authentication and auditing are designed as pluggable parts of the MCP package, allowing deployments to provide their own handling for those concerns.

This approach is suited to agents that need to interact with FHIR resources while keeping the FHIR connection behind an MCP interface. The underlying fhir-dsl project also supports FHIR versions including R4, R4B, R5, and R6, plus published Implementation Guides through its code-generation tooling.

## Setup and configuration

Install the `@fhir-dsl/mcp` package when exposing a FHIR endpoint to an LLM agent. The package belongs to a monorepo that also contains the core query builder, HTTP runtime, generated FHIR types, SMART authentication, FHIRPath, and terminology packages.

Authentication and audit behavior are pluggable. Configure those components according to the requirements of the FHIR deployment and the agent environment. The surrounding fhir-dsl project is written in TypeScript and supports both ESM and CommonJS Node.js environments.

## Tools and capabilities

- Exposes roughly ten generic FHIR verbs through MCP.
- Connects an LLM agent to any FHIR endpoint.
- Provides pluggable authentication handling.
- Provides pluggable audit handling.
- Sits alongside typed FHIR queries, generated resource and profile types, and runtime HTTP support.

The broader toolchain can generate TypeScript types from FHIR specifications and Implementation Guides, including profile-aware interfaces. Those capabilities are separate from the MCP bridge but can support applications that use the same project outside the agent connection.

## Limitations and notes

The MCP package is intended as an agent-facing bridge, not as a replacement for the complete fhir-dsl TypeScript toolchain. Its documented scope is a set of generic FHIR verbs; the exact operation names and endpoint-specific behavior depend on the package configuration and connected FHIR service.

FHIR validation, FHIRPath evaluation, terminology filtering, and SMART on FHIR v2 are available as separate fhir-dsl packages or capabilities in the wider project. They should not be assumed to be additional MCP tools unless explicitly exposed by the deployment.

_Full upstream README: https://allmcps.com/mcp/fhir-dsl/readme_

