Practice Fusion Mcp logo
Health: ActiveRecent health check succeeded.Last checked 8/7/2026, 10:35:46 PM

Practice Fusion Mcp

kushaim
View Repository2

FHIR-first, read-only MCP server for the Practice Fusion EHR. Search patients and review appointments, conditions, medications, and lab results. SMART backend-services auth, audit-logged, HIPAA-conscious.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ€” or use 1-click editor setup below.

Manual Client & Custom JSON ConfigExpand JSON โ–พ

Install Config Generator

claude_desktop_config.json
{
  "mcpServers": {
    "kushaim-practice-fusion-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "practice-fusion-mcp"
      ]
    }
  }
}

๐Ÿ’ก Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Capabilities & Tool Schemas (18)Self-reported

Inspect callable tools, capabilities, and parameters exposed to AI agents by Practice Fusion Mcp.

practicefusion_search_patients

Find patients by name / birthdate / gender / identifier

practicefusion_get_patient

One patient's demographics by id

practicefusion_search_practitioners

Find providers by name / identifier

practicefusion_get_conditions

A patient's problems / diagnoses

practicefusion_get_medications

A patient's medication requests

practicefusion_get_lab_results

A patient's laboratory observations

Documentation Overview

practice-fusion-mcp โ€” FHIR-first, read-only MCP server for Practice Fusion

practice-fusion-mcp

npm CI Glama score License: MIT Node MCP FHIR R4 Access

An open-source, FHIR-first, read-only Model Context Protocol server for Practice Fusion. Connect Claude (Desktop / Code), Cursor, or any MCP client to a Practice Fusion EHR to search patients and providers and review appointments, conditions, medications, labs, vitals, allergies, immunizations, encounters, documents, procedures, diagnostic reports, care plans, and goals โ€” running on Practice Fusion's free Open FHIR account.

Read-only by design. Audit-logged. No write access, no scheduling, no patient creation.

Contents

Architecture

mermaid
flowchart LR
    C["MCP client<br/>Claude Desktop / Code ยท Cursor"] -- stdio --> S

    subgraph S["practice-fusion-mcp"]
      direction TB
      T["18 read tools<br/>patients ยท providers ยท appointments<br/>conditions ยท meds ยท labs ยท vitals<br/>allergies ยท immunizations ยท encounters<br/>documents ยท coverage ยท procedures ยท reports<br/>care plans ยท goals ยท everything"]
      A["Audit logger<br/>stderr + optional file<br/>PHI-redacted"]
      F["FHIR client<br/>Bundle unwrap ยท shapers<br/>pagination ยท sanitized errors"]
      TP["SMART backend-services<br/>TokenProvider<br/>signed JWT assertion ยท token cache"]
      T -. audited .-> A
      T --> F
      F --> TP
    end

    TP -- "OAuth2 client-credentials" --> AUTH["PF token endpoint"]
    F -- "read-only FHIR R4" --> PF["Practice Fusion<br/>Open FHIR API"]
    AUTH -- access token --> F

Every tool call flows through the audit logger; the FHIR client only ever holds a short-lived token minted from a signed JWT assertion (SMART backend-services), and long free-text parameters are redacted before anything is logged.

Tools

All tools are namespaced with a practicefusion_ prefix (so they don't collide when loaded alongside other MCP servers), carry a readOnlyHint annotation, and return a typed outputSchema / structuredContent. List tools accept an optional limit (default 50, max 200) and report count and has_more.

Patients & providers

ToolWhat it does
practicefusion_search_patientsFind patients by name / birthdate / gender / identifier
practicefusion_get_patientOne patient's demographics by id
practicefusion_search_practitionersFind providers by name / identifier

Clinical

ToolWhat it does
practicefusion_get_conditionsA patient's problems / diagnoses
practicefusion_get_medicationsA patient's medication requests
practicefusion_get_lab_resultsA patient's laboratory observations
practicefusion_get_vitalsA patient's vital-sign observations
practicefusion_get_allergiesA patient's allergies & intolerances
practicefusion_get_immunizationsA patient's immunizations

Records

ToolWhat it does
practicefusion_get_appointmentsAppointments by patient / status / date
practicefusion_get_encountersA patient's clinical encounters (visits)
practicefusion_get_documentsA patient's document references (note metadata)
practicefusion_get_coverageA patient's insurance Coverage (status, payer, period)

Summary

ToolWhat it does
practicefusion_get_everythingPre-visit summary for a single patient โ€” per-type counts plus a bounded sample of raw resources (FHIR $everything with a per-type-search fallback)

Procedures & care planning

ToolWhat it does
practicefusion_get_proceduresA patient's procedures
practicefusion_get_diagnostic_reportsA patient's diagnostic (lab / imaging) reports
practicefusion_get_care_plansA patient's care plans
practicefusion_get_goalsA patient's care goals

Prompts & resources

Beyond tools, the server exposes the other two MCP primitives.

Prompts โ€” ready-made templates a client can surface:

PromptArgsWhat it does
pre_visit_summarypatientIdGuides the assistant to assemble a one-minute pre-visit summary from the read tools
medication_reviewpatientIdReviews a patient's medications against their problems and allergies (decision support, not prescribing)

Resources โ€” readable by URI:

ResourceURIWhat it returns
Patient summarypracticefusion://patient/{patientId}/summaryEvery resource linked to a patient (FHIR $everything), as JSON

Resource reads are audit-logged like tool calls.

Example

Ask an MCP client a question and it composes the tools:

You: What are Ana Rivera's active medications?

jsonc
// 1. resolve the patient
practicefusion_search_patients { "name": "Ana Rivera" }
// โ†’ { "results": [{ "id": "abc123", "name": "Ana Rivera", "birthDate": "1984-02-11" }], "count": 1, "has_more": false }

// 2. read her medications
practicefusion_get_medications { "patientId": "abc123" }
// โ†’ { "results": [
//      { "medication": "Lisinopril 10 mg", "status": "active" },
//      { "medication": "Atorvastatin 20 mg", "status": "active" }
//    ], "count": 2, "has_more": false }

Assistant: Ana Rivera has 2 active medications: Lisinopril 10 mg and Atorvastatin 20 mg.

Because every tool returns structuredContent, the client gets typed objects โ€” not just text โ€” so it can chain calls reliably.

Demo mode

You can run everything above with no Practice Fusion account. Demo mode serves in-memory synthetic fixtures โ€” no credentials, no network, no PHI โ€” and the example query returns exactly what's shown.

One command, nothing to clone:

Terminal
npx -y practice-fusion-mcp --demo

Or from a clone:

bash
pnpm install
pnpm dev --demo

Or point an MCP client at it with the --demo flag (or set PF_DEMO=1 in its env):

config.json
{
  "mcpServers": {
    "practice-fusion-demo": {
      "command": "npx",
      "args": ["-y", "practice-fusion-mcp", "--demo"]
    }
  }
}

The fixtures cover two patients across every resource type โ€” conditions, medications, labs, vitals, allergies, immunizations, appointments, encounters, documents, and coverage โ€” so each tool returns something. It's the quickest way to see the tools before wiring real credentials.

Setup

  1. Register a free Practice Fusion Open FHIR developer account and create a System / backend-services app. Note your FHIR base URL, token URL, client id, and register your app's public key.
  2. Provide the environment variables below. In production, use your MCP client's env block (shown in step 3). For local development, copy .env.example to .env โ€” pnpm dev loads it automatically.
  3. Add to your MCP client config, e.g. Claude Desktop:
config.json
{
  "mcpServers": {
    "practice-fusion": {
      "command": "npx",
      "args": ["-y", "practice-fusion-mcp"],
      "env": {
        "PF_FHIR_BASE_URL": "https://fhir.practicefusion.com/r4",
        "PF_TOKEN_URL": "https://auth.practicefusion.com/token",
        "PF_CLIENT_ID": "your-client-id",
        "PF_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
      }
    }
  }
}

Environment variables

VarRequiredDefaultNotes
PF_FHIR_BASE_URLyesโ€”FHIR R4 base URL
PF_TOKEN_URLyesโ€”OAuth2 token endpoint
PF_CLIENT_IDyesโ€”Backend-services client id
PF_PRIVATE_KEYyesโ€”PKCS8 PEM private key (matches the registered public key)
PF_SCOPESnosystem/*.readRequested scopes
PF_TOKEN_ALGnoRS384JWT signing alg
PF_AUDIT_LOGnoโ€”Optional file path for audit records (always also written to stderr)
PF_AUDIT_LOG_FORMATnotextAudit log file format: text (multi-line, human-readable) or ndjson (one JSON object per line, SIEM-friendly). stderr always uses text.
PF_RETRY_MAX_ATTEMPTSno4Total attempts for transient FHIR responses (429/502/503/504). 1 = no retry.
PF_RETRY_BASE_MSno500Initial backoff in ms. Doubles each attempt (500 โ†’ 1000 โ†’ 2000 โ€ฆ) up to PF_RETRY_CAP_MS.
PF_RETRY_CAP_MSno8000Maximum backoff between retries. Retry-After from the server is always honored.

MCP clients

The server speaks the Model Context Protocol over stdio, so it works in any MCP client that supports a local command + args + env config. Pick your client:

ClientTestedSetup
Claude Desktopโœ…docs/clients/claude-desktop.md
Claude Codeโœ…docs/clients/claude-code.md
Cursorโœ…docs/clients/cursor.md
VS Code + GitHub Copilot (Agent mode)โœ…docs/clients/vscode-copilot.md
OpenCodeโœ…below โ€” Other clients
Codex CLIโœ…below โ€” Other clients
Cline / Roo Clineโœ…below โ€” Other clients
Windsurfโœ…below โ€” Other clients
Continue.devโœ…below โ€” Other clients
T3 codeโ€”GUI wrapper โ€” install the MCP server in the underlying agent (Codex, Claude, Cursor, or OpenCode); the configs above apply
R21 Hermes Agent (R21-internal)โœ…below โ€” R21 fleet
R21 OpenClaw host (R21-internal)โ€”host (not a client) โ€” install the MCP server in whichever agent runs on the machine (Claude Code / OpenCode / Codex CLI); the configs above apply

The same PF_* environment variables apply everywhere. The package is published on npm, so every config uses the same command: npx / args: ["-y", "practice-fusion-mcp"] pair; only the file location and JSON key (mcpServers vs servers vs mcp etc.) differ.

Other clients (one-liner configs)

All five use the same { command, args, env } shape. Only the config file location and JSON key differ.

OpenCode โ€” global ~/.config/opencode/config.json or per-project opencode.json:

config.json
{
  "mcp": {
    "practice-fusion": {
      "type": "local",
      "command": ["npx", "-y", "practice-fusion-mcp"],
      "environment": {
        "PF_FHIR_BASE_URL": "https://fhir.practicefusion.com/r4",
        "PF_TOKEN_URL": "https://auth.practicefusion.com/token",
        "PF_CLIENT_ID": "your-client-id",
        "PF_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
      }
    }
  }
}

Codex CLI โ€” ~/.codex/config.toml:

toml
[mcp_servers.practice-fusion]
command = "npx"
args = ["-y", "practice-fusion-mcp"]

[mcp_servers.practice-fusion.env]
PF_FHIR_BASE_URL = "https://fhir.practicefusion.com/r4"
PF_TOKEN_URL = "https://auth.practicefusion.com/token"
PF_CLIENT_ID = "your-client-id"
PF_PRIVATE_KEY = """-----BEGIN PRIVATE KEY-----
...your key...
-----END PRIVATE KEY-----"""

Cline / Roo Cline โ€” Cline MCP settings panel, or .cline/mcp_settings.json directly (same shape as Claude Desktop โ€” see Setup).

Windsurf โ€” ~/.codeium/windsurf/mcp_config.json (same shape as Claude Desktop).

Continue.dev โ€” ~/.continue/config.json under the mcpServers key (same shape as Claude Desktop).

Models

practice-fusion-mcp is model-agnostic โ€” it doesn't care which LLM sits behind the client. Use Anthropic Claude (in any of the above clients), OpenAI GPT (Codex, Cursor, Continue), Google Gemini (Continue, Cline), local Ollama models, or NVIDIA Nemotron served via NIM inside any of the clients that accept a custom OpenAI-compatible endpoint (most do). The model you pick only changes answer quality, not which tools the server exposes.

R21 fleet

The maintainer (R21 Digital) runs practice-fusion-mcp across two R21-internal surfaces:

  • Hermes Agent โ€” R21's multi-agent orchestration. Wire the MCP server into the Hermes sub-agent that handles healthcare/EHR work; the npx -y practice-fusion-mcp invocation is wrapped in a Make.com scenario or a Hermes tool spec. The deployer-friendly error banner (see Troubleshooting) plays well with Hermes' tool-call surfaces.
  • OpenClaw โ€” one of the R21 fleet machines. OpenClaw is a host, not a client โ€” the right setup is whichever agent runs there (typically Claude Code or OpenCode on the R21 fleet). Use the per-client config above for whichever agent you launch the MCP from.

For deeper R21-internal deployment notes (Make.com scenarios, Hermes sub-agent patterns, fleet-wide credential rotation), see the R21-internal docs/clients/hermes.md and docs/clients/openclaw.md (R21 Digital workspace, not this public repo).

Troubleshooting

If the server fails to start, the boot path prints a deployer-friendly error instead of a raw Zod dump. Each line names the env var and the fix:

Code
practicefusion-mcp: configuration error
  โœ— PF_CLIENT_ID: required env var is missing
      Set it in your MCP client config or .env, e.g. the client_id from your SMART backend-services app
  โœ— PF_PRIVATE_KEY: required env var is missing
      Key must start with -----BEGIN PRIVATE KEY----- and be PKCS8 format
  โœ— PF_FHIR_BASE_URL: Invalid URL
      Must be a URL, e.g. https://fhir.practicefusion.com/r4
  โ€ฆ and 2 more (set PF_VERBOSE=1 for full output)

Values are never echoed โ€” only the env var name. Set PF_VERBOSE=1 in your MCP client config to get the raw Zod issue tree when the friendly output isn't enough. The server exits 1 on any configuration error so the host can surface it.

Security & HIPAA

This server handles Protected Health Information. You, the deployer, are the covered entity or business associate: you are responsible for your own Business Associate Agreement (BAA) with Veradigm/Practice Fusion and for running this in a HIPAA-appropriate environment. Every tool call is audit-logged (stderr, plus optional file) with long free-text parameters redacted. Tokens and keys are never logged. This project ships code, not a hosted data service. See SECURITY.md for details. Not legal advice.

How it differs from the alternative

The other way to reach a Practice Fusion EHR is the proprietary Unity APIs. The official Practice Fusion Integrator tier is built on them and needs a Veradigm partnership; community MCP servers built on the same APIs have shown up in the directories too, and they tend to be read-write โ€” creating patients, booking appointments, editing insurance.

This server takes the FHIR route instead. It runs on Practice Fusion's free Open FHIR account with no partnership, and it is read-only and audit-logged on purpose: a deliberately small risk surface for putting an EHR behind an LLM. If you need to write data or manage scheduling, a proprietary-API server will fit you better; if you want EHR reads you can reason about, this is the one.

Related MCP servers

If you arrived here looking for "any Practice Fusion MCP" and now want the wider FHIR / EHR / healthcare MCP landscape:

Glama's MCP directory lists all of these plus ~62k others. This server is on Glama as practice-fusion-mcp.

Development

bash
pnpm install
pnpm test          # unit tests (mocked FHIR โ€” no credentials needed)
pnpm typecheck     # tsc --noEmit
pnpm lint          # eslint
pnpm format        # prettier --write
pnpm build         # bundle to dist/

CI (GitHub Actions) runs Prettier, ESLint, typecheck, tests, and build on Node 22 and 24. See CONTRIBUTING.md to add a tool, and docs/adr for the architecture decisions behind the design.

Related MCP Servers

View all alternatives

Frequently Asked Questions about Practice Fusion Mcp

How do I install the kushaim/practice-fusion-mcp MCP server?

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "practice-fusion-mcp": { "command": "npx", "args": ["-y", "kushaim/practice-fusion-mcp"] } }

What does kushaim/practice-fusion-mcp do?

FHIR-first, read-only MCP server for the Practice Fusion EHR. Search patients and review appointments, conditions, medications, and lab results. SMART backend-services auth, audit-logged, HIPAA-conscious.

Is the kushaim/practice-fusion-mcp MCP server free to use?

Yes. kushaim/practice-fusion-mcp is listed on AllMCPs as a free, open Model Context Protocol server you can install into Claude Desktop, Cursor, or any MCP-compatible client.

Technical Specs & Signals

TransportSTDIO
RuntimeNode.js
Health CheckActive
Views0
Installs0
GitHub stars2
49Quality signal: Fair ยท 49/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools28/30
Adoption1/15
Community engagement0/10

A guidance signal from public completeness & health data โ€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

โ˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server โ†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge โ€” we recheck it stays live.

Claim & get free dofollow

Promote this listing

Optional paid placement. Free listings stay free forever.

Featured boost7 days in the spotlight ยท from $12/wk
Weeks
1

โ†’ Runs until Aug 15, 2026

Category sponsorTop-of-category sponsorship ยท from $18/wk
Weeks
1

โ†’ Runs until Aug 15, 2026

Cancel anytime โ€” no long-term lock-in.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.