# fhirfly.io

> fhirfly.io is a freemium MCP server for healthcare software. MCP server giving Claude access to FHIRfly healthcare reference data like NDC, NPI. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API, macOS, Windows
- **Repository:** https://github.com/fhirfly-io/fhirfly-mcp-server
- **MCP Registry name:** io.fhirfly/mcp-server
- **Categories:** [healthcare software](https://ai-powered.com/categories/healthcare-software)
- **Listing updated:** 2026-11-21

## About

Adds a bridge between Claude Desktop and the FHIRfly cloud API, so questions about drugs, prescribers, lab tests and clinical codes get answered from current reference databases rather than from the model's memory. The server runs locally through npx and forwards requests to FHIRfly over HTTPS, with each call authenticated by an API key.

The tool set spans US drug and provider identifiers (NDC, NPI, RxNorm, FDA drug labels), coding systems such as LOINC, ICD-10, HCPCS, SNOMED CT and CVX, and billing references including MS-DRG, place of service codes, NCCI edits and Medicare fee schedule data. It also covers UK material such as OPCS-4 and dm+d, plus unit conversion through UCUM.

It is aimed at developers building healthcare workflows, revenue cycle and coding staff, and anyone who wants Claude to check medication or code details against structured data.

## Features

- **Drug product lookup:** Search and retrieve NDC drug products, RxNorm terms and FDA label sections by code or name.
- **Provider directory search:** Find healthcare providers by NPI number, name, specialty or location, plus their FHIR connectivity endpoints.
- **Clinical code reference:** Query LOINC, ICD-10, SNOMED CT, CVX and HCPCS codes with search and batch lookups.
- **Claims and billing data:** Check NCCI edits, MUE limits, Medicare fee schedule values and LCD coverage determinations.
- **Drug interaction checks:** Compare multiple drugs for interactions using FDA label text combined with RxNorm data.
- **Unit conversion:** Validate UCUM expressions and convert values between compatible measurement units.

## Good for

- Verify an NDC or RxCUI while drafting a prescription or medication reconciliation note
- Look up the correct ICD-10 or HCPCS code during claim preparation
- Find a clinician's NPI and FHIR endpoint for interoperability testing
- Check whether two procedure codes can be billed together under NCCI rules
- Convert lab or dosing units with UCUM codes inside a chat session

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server --env FHIRFLY_API_KEY='<FHIRFLY_API_KEY>' -- npx -y @fhirfly-io/mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server --env FHIRFLY_API_KEY='<FHIRFLY_API_KEY>' -- npx -y @fhirfly-io/mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@fhirfly-io/mcp-server"]
env = { FHIRFLY_API_KEY = "<FHIRFLY_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e FHIRFLY_API_KEY='<FHIRFLY_API_KEY>' mcp-server npx -- -y @fhirfly-io/mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fhirfly-io/mcp-server"
      ],
      "env": {
        "FHIRFLY_API_KEY": "<FHIRFLY_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 11 of 12 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `ndc_get` (name suggests: reads): Look up drug by NDC code
- `ndc_search` (name suggests: reads): Search drugs by name, ingredient, etc.
- `npi_get` (name suggests: reads): Look up provider by NPI number
- `npi_search` (name suggests: reads): Search providers by name, specialty, location
- `rxnorm_get` (name suggests: reads): Look up drug by RxCUI
- `rxnorm_search` (name suggests: reads): Search drug terminology
- `loinc_get` (name suggests: reads): Look up lab test by LOINC code
- `loinc_search` (name suggests: reads): Search lab codes
- `icd10_get` (name suggests: reads): Look up diagnosis/procedure code
- `icd10_search` (name suggests: reads): Search ICD-10 codes
- `check_drug_interactions` (name suggests: reads): Check drug-drug interactions for multiple drugs (FDA label text + RxNorm)
- `ucum_convert`: Convert a value between compatible UCUM units

## FAQ

### What do I need to run fhirfly.io?

Node.js 18 or later, Claude Desktop, and a FHIRfly API key that starts with ffly_. The package is launched with npx and configured through the Claude Desktop config file.

### Does fhirfly.io store healthcare data locally?

No. The package runs on the user's computer as a bridge, and the README states that no healthcare data is stored locally.

### Is there a free tier?

The README says a free tier is available when signing up at fhirfly.io.

### Which environment variables are supported?

FHIRFLY_API_KEY is required. FHIRFLY_API_URL, FHIRFLY_DEBUG and FHIRFLY_TIMEOUT are optional and set the API base URL, debug logging and fetch timeout.

### How do I add fhirfly.io to Claude Code?

Run this command in your terminal: claude mcp add mcp-server --env FHIRFLY_API_KEY='<FHIRFLY_API_KEY>' -- npx -y @fhirfly-io/mcp-server

### What are the best alternatives to fhirfly.io?

The closest alternatives to fhirfly.io are SolvingHealth federal health data, MedPrice AI, Omophub MCP, Meddata and MCP Clinical Reasoner.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [SolvingHealth federal health data](https://ai-powered.com/mcp/solvinghealth-federal-health-data): SolvingHealth federal health data is an open-source MCP server for health and science.
- [MedPrice AI](https://ai-powered.com/mcp/medprice-ai): MedPrice AI is an open-source MCP server for healthcare software.
- [Omophub MCP](https://ai-powered.com/mcp/omophub-mcp): Omophub MCP is a freemium MCP server for health and science.
- [Meddata](https://ai-powered.com/mcp/meddata): Meddata is a freemium MCP server for health and science.
- [MCP Clinical Reasoner](https://ai-powered.com/mcp/mcp-clinical-reasoner): MCP Clinical Reasoner is an open-source MCP server for health and science.
- [DICOM/HL7/FHIR Interoperability MCP Server](https://ai-powered.com/mcp/dicom-hl7-fhir-interoperability-mcp-server): DICOM/HL7/FHIR Interoperability MCP Server is a freemium MCP server for health and science.
- [Loa Healthcare Pricing](https://ai-powered.com/mcp/loa-healthcare-pricing): Loa Healthcare Pricing is a freemium MCP server for healthcare software.
- [Drug Interaction Checker](https://ai-powered.com/mcp/drug-interaction-checker): Drug Interaction Checker is a freemium MCP server for health and science.

---
Source: https://ai-powered.com/mcp/fhirfly-io
