Purpose
practice-fusion-mcp is an open-source, FHIR-first, read-only Model Context Protocol (MCP) server for connecting to the Practice Fusion electronic health record (EHR). It lets Claude (Desktop/Code), Cursor, or any MCP client search patients and providers and view appointments, conditions, medications, lab results, vital signs, allergies, immunizations, encounters, documents, procedures, diagnostic reports, care plans, and goals. The server runs on Practice Fusion's free Open FHIR account.
Key capabilities
- Read-only design: no write access, no scheduling, no patient creation.
- Audit logging: every tool call is audit-logged; the FHIR client holds only short-lived tokens generated from a signed JWT assertion (SMART backend services); long free-text parameters are redacted before logging.
- Tool namespace: all tools are named with the
practicefusion_prefix to avoid conflicts with other MCP servers, and carry thereadOnlyHintannotation, returning typedoutputSchema/structuredContent. List tools accept an optionallimit(default 50, max 200) and reportcountandhas_more. - Coverage: patients and providers, appointments, conditions, medications, labs, vital signs, allergies, immunizations, encounters, documents, procedures, diagnostic reports, care plans, goals, and more.
- MCP primitives: besides tools, it also provides Prompts and Resources; resource reads are likewise audit-logged.
- Demo mode: runs without a Practice Fusion account, using in-memory synthetic data, no credentials, no network, no PHI.
Usage
Demo mode
One command, no cloning required:
npx -y practice-fusion-mcp --demo
Or run from a clone:
pnpm install && pnpm dev --demo
Or point to it in the MCP client configuration, using the --demo flag (or setting PF_DEMO=1in the environment).
Production environment
- Register a free Practice Fusion Open FHIR developer account and create a System / backend-services app. Note the FHIR base URL, token URL, and client ID, and register the app's public key.
- Provide the environment variables. For production, use the MCP client's env block; for local development, copy
.env.exampleto.env,pnpm devand it will be loaded automatically. - Add it to the MCP client configuration, for example Claude Desktop:
{
"mcpServers": {
"practice-fusion": {
"command": "npx",
"args": ["-y", "practice-fusion-mcp"],
"env": {
"PF_FHIR_BASE_URL": "...",
"PF_TOKEN_URL": "...",
"PF_CLIENT_ID": "...",
"PF_PRIVATE_KEY": "..."
}
}
}
}
The server uses the Model Context Protocol over stdio, so it works with any MCP client that supports local command + arguments + environment variable configuration. The package is published on npm, and all configurations use the same command:npx / argument ["-y", "practice-fusion-mcp"], with only the file location and JSON keys (mcpServers vs servers vs mcp , etc.) differing.
Other clients (single-line configuration):
- OpenCode — global
~/.config/opencode/config.jsonor project-levelopencode.json - Codex CLI —
~/.codex/config.toml - Cline / Roo Cline — the Cline MCP settings panel, or
.cline/mcp_settings.json - Windsurf —
~/.codeium/windsurf/mcp_config.json - Continue.dev —
~/.continue/config.jsonundermcpServersKey
Model-agnostic
practice-fusion-mcp is model-agnostic and does not care which LLM is used behind the client. You can use Anthropic Claude, OpenAI GPT, Google Gemini, a local Ollama model, or NVIDIA Nemotron provided through NIM. Model choice only affects answer quality, not the tools exposed by the server.
Use cases
- Healthcare or development scenarios that need to connect Practice Fusion EHR data to an LLM for read-only queries.
- Searching for patients and viewing clinical information in an MCP client.
- Demonstrating and testing MCP and EHR integration without real credentials.
Limitations
- No writes: no scheduling, no chart notes, no patient creation. This is a boundary, not a roadmap item.
- Audit logs contain patient identifiers: redaction is by length; free-text parameters longer than 64 characters become
[redacted:N], while shorter structured values (such as names and dates of birth) are written as-is. Logs should be treated as PHI and stored accordingly. - Summaries drop fields: each summarizer keeps only what the task requires.
practicefusion_get_everythingis the escape hatch. - One tenant per process: a single credential set and a single TokenProvider. Serving multiple clinics requires running multiple processes.
- Test coverage: most paths are covered against mocks. Unit tests require no credentials; live coverage against a real tenant is limited by partner account approval.
- HIPAA responsibility: the deployer (you) is the covered entity or business associate, responsible for signing a BAA with Veradigm/Practice Fusion and operating in a HIPAA-compliant environment. The project provides code, not a hosted data service.
Differences from other solutions
Another way to access Practice Fusion EHR is the proprietary Unity API. The official Practice Fusion Integrator tier is based on them and requires a Veradigm partnership; community MCP servers are also based on the same API and are often read-write (creating patients, appointments, editing insurance). This server takes the FHIR route, runs on a free Open FHIR account, requires no partnership, and is deliberately read-only with audit logging: intentionally reducing the risk surface for putting an EHR behind an LLM. If you need to write data or manage scheduling, a proprietary API server is more suitable; if you need an EHR read that can be reasoned over, this server is the choice.
Related MCP servers
- wso2/fhir-mcp-server — general-purpose FHIR R4 MCP server, language-agnostic, MIT.
- the-momentum/fhir-mcp-server — FHIR MCP server for healthcare data standards.
- erikhoward/azure-fhir-mcp-server — FHIR R4 for Azure Health Data Services.
- jcafazzo/fhir-mcp — enhanced FHIR MCP with data quality assessment and broader clinical coverage.
- DhairyaShah981/fhir-mcp — clinical data bridge with reversible keyed de-identification and CDS Hooks.
Development and contribution
CI (GitHub Actions) runs Prettier, ESLint, type checking, tests, andBuild on Node 22 and 24. See CONTRIBUTING.md for adding tools, and docs/adr for architecture decisions.