Epic on FHIR MCP server for AI agents
Let Claude, ChatGPT or your own agent read Epic on FHIR: 2 typed functions through one MCP server. No Epic on FHIR API key needed.
- Site
- fhir.epic.com
- Functions
- 2
- Sign-in
- Not needed
- Works with
- MCP, HTTP, Node, Python
Connect
Just Epic on FHIR
An MCP server for Epic on FHIR alone, with one tool per function. Paste it into Claude, ChatGPT, Cursor or any MCP client as a remote server.
https://api.bowmark.ai/mcp/site/epic_fhirEvery site
One MCP server for Epic on FHIR and every other site Bowmark covers. Your agent looks up what it needs and calls it.
https://api.bowmark.ai/mcpSet it up in your clientBoth need a Bowmark API key. The quickstart gets you one and a first result in a few minutes.
Functions
Open a function to see its arguments, what it returns and how to call it.
Read 2
getCapabilityStatementReads an Epic FHIR R4 server's /metadata CapabilityStatement (fhir.epic.com sandbox by default, or any Epic health system's base URL) and returns…Arguments
Name Type Required baseUrlstringA FHIR R4 base URL. Defaults to Epic's public sandbox, https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4.No Returns
epic_fhirCapabilityStatementinterface epic_fhirResourceSupport { type: string; interactions: string[]; searchParams: { name: string; type: string | null; documentation: string | null }[]; } interface epic_fhirCapabilityStatement { baseUrl: string; fhirVersion: string | null; software: { name: string | null; version: string | null; releaseDate: string | null }; description: string | null; authorizeUrl: string | null; tokenUrl: string | null; securityServices: string[]; resources: epic_fhirResourceSupport[]; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/epic_fhir/getCapabilityStatementCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.epic_fhir.getCapabilityStatement();import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.epic_fhir.getCapabilityStatement())curl -X POST https://api.bowmark.ai/v1/sites/epic_fhir/getCapabilityStatement \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.epic_fhir.getCapabilityStatement();listOrganizationEndpointsLists the health systems running Epic with each one's production FHIR R4 base URL, from Epic's published open.epic.com/Endpoints/R4 directory…Arguments
Name Type Required querystringCase-insensitive part of a health system's name, e.g. "Mayo".No Returns
epic_fhirOrganizationEndpoint[]interface epic_fhirOrganizationEndpoint { id: string; name: string; organization: string | null; /** The organization's production FHIR R4 base URL. */ address: string; }HTTP endpoint
POST https://api.bowmark.ai/v1/sites/epic_fhir/listOrganizationEndpointsCall it
import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.epic_fhir.listOrganizationEndpoints();import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.epic_fhir.listOrganizationEndpoints())curl -X POST https://api.bowmark.ai/v1/sites/epic_fhir/listOrganizationEndpoints \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{}'// The body of a run: the MCP run tool, or POST /v1/run return await bowmark.providers.epic_fhir.listOrganizationEndpoints();
Use it from code
- Node
npm i @bowmark/web - Python
pip install bowmark-web - HTTP
POST /v1/sites/epic_fhir/<function> - OpenAPI
/v1/sites/epic_fhir/openapi.json