Add to Claude Code
0 addsAdd this MCP server to Claude Code.
Name: FHIR API MCP
Merge into: ~/.claude/mcp.json under mcpServers
---
{
"mcpServers": {
"fhir": {
"command": "npx",
"args": ["-y", "@anthropic-community/mcp-fhir"],
"env": {
"FHIR_BASE_URL": "https://your-fhir-server.example.com/fhir/R4",
"FHIR_AUTH_TOKEN": "<YOUR_BEARER_TOKEN>"
}
}
}
}
// ── Setup ────────────────────────────────────────────────────────────────────
// 1. Set FHIR_BASE_URL to your FHIR R4 server endpoint
// For development, use HAPI FHIR public sandbox: https://hapi.fhir.org/baseR4
//
// 2. Set FHIR_AUTH_TOKEN if your server requires authentication
// For the public sandbox, leave empty or omit
//
// ── Available tools ──────────────────────────────────────────────────────────
// search_resources query Patient, Observation, Condition, etc. with search params
// read_resource fetch a specific resource by type and ID
// validate_resource validate a FHIR payload against the R4 spec
// get_capability_statement inspect server capabilities
// list_resource_types browse available FHIR resource definitions
Paste into Claude Code to connect this MCP server.
How to add
Full guide →Click Add, then paste into Claude Code. Claude will connect the MCP server in your settings.
Target: .claude/mcp.json → mcpServers