5Lime Labs

Sheet noteHow AI connects to Epic: FHIR APIs, backend OAuth 2.0, client IDs your organization downloads, and Epic's MCP plans. What an agent reads and drafts.

Sheet SY-016 · Electronic health record (EHR)

Connecting Epic to AI, through the front door

Your clinic runs on Epic, often through a hospital partner's instance, and the inbox, the referral queue and the prior auth pile never shrink. We connect an AI agent to Epic through the FHIR APIs Epic publishes, under a Business Associate Agreement, with access your organization approves one API at a time.

VendorEpic Systems Corporation
CategoryElectronic health record (EHR)
AccessEpic on FHIR (FHIR R4) plus Epic's public APIs and HL7v2 interfaces, secured with OAuth 2.0. Unattended agents use a Backend Systems app: the OAuth 2.0 client_credentials grant with a signed JWT client assertion (SMART Backend Services). Clinician-facing tools use SMART on FHIR launches with the user's own Epic login.
MCP serverofficial MCP server (developer documentation only, not for PHI); Epic MCP tools over patient data announced, with early-adopter pilots by the end of 2026 and wider availability by the end of Q1 2027, not yet live
SY-016.1What it isEpic

Epic is the EHR at many large US health systems and at many of the physician groups, behavioral health programs and home health agencies affiliated with them. Clinicians chart in Hyperspace, patients use MyChart, and the revenue cycle, scheduling and referral work all live in the same database. Many smaller practices use Epic through a hospital's Community Connect arrangement, which means the hospital's IT and security teams own the keys to any integration.

How access works

A developer registers the app on fhir.epic.com and gets production and non-production client IDs, scoped to a specific list of APIs. Your organization then signs the open.epic API Subscription Agreement and someone holding the Purchase Apps security point downloads the client record; for a non-patient-facing app this goes through the App Request Process with your Epic analysts and security team. Epic states its APIs are licensed to the healthcare organization, with fees based on production usage, so your organization should request a licensing estimate based on the app's scope. Epic publishes an open.epic MCP server at mcp.open.epic.com, but it only returns Epic's developer documentation and Epic says it is not designed to handle PHI. Epic's Agent Factory Connectors page (updated 11/18/2026, marked subject to change) says Epic will also act as an MCP server for authorized external agents, starting with read tools over its USCDI v5 FHIR R4 APIs in a backend context. Early-adopter customers pilot by the end of 2026, organizations using Agent Factory Builder can connect by the end of Q1 2027, and Epic expects adoption to vary through 2027.

Vendor docs: https://fhir.epic.com/Documentation?docId=epiconfhirrequestprocess

SY-016.2ScopeWhat an AI agent can do

Once Epic is connected.

C01Starts at step 01 Read

Pre-visit chart summary

The night before clinic, the agent reads each scheduled patient's problems, medications, allergies, recent labs and last note through FHIR and builds a one-page brief for the provider. It flags overdue screenings and results nobody has acknowledged. Nothing is written back to the chart.

C02Starts at step 02 Draft

Referral and prior auth packets

For an outgoing referral or a payer prior authorization, the agent pulls the diagnosis, the relevant notes and the imaging or lab results and drafts the packet and the medical necessity letter. A nurse or the referral coordinator reviews and sends it from their usual workflow.

C03Starts at step 02 Draft

Patient message triage drafts

When MyChart messages pile up, the agent sorts them by type (refill, scheduling, clinical question, billing) and drafts a reply using what the chart shows. Clinical replies always go to a nurse or provider to edit and sign; the agent never sends medical advice on its own.

C04Starts at step 03 Approve

Remote readings into flowsheets

Epic documents two routes for home readings like blood pressure and weight: an HL7v2 interface on a backend app, or Observation.Create from a patient-facing app the patient signs in to with MyChart. Either way the values file to flowsheet rows your Epic team maps. We would file only those rows, log every write, and send out-of-range readings to a clinician.

C05Starts at step 02 Draft

Population lists from bulk export

Epic supports FHIR Bulk Data export for backend apps. The agent can work through a defined patient group (diabetics due for an A1c, patients overdue for a mammogram) and produce outreach lists and drafted letters for staff to approve.

SY-016.3CautionsRead before connecting

What to watch.

  • Epic's app developer guidelines cap an app at 1% of the operational database's resources during peak hours (typically 7 am to 7 pm local) and 5% off-peak, so we schedule heavy reads overnight.
  • Each client ID is scoped to a fixed list of APIs, and Epic advises scoping narrowly because scope drives which licenses your organization may need. Adding APIs later means a new client ID and another review by your security team.
  • Epic's write APIs cover a narrow slice of the chart. Orders, signing notes and anything that changes the legal record stay with a clinician.
  • If your practice is on a hospital's Epic through Community Connect, the hospital decides whether an app gets activated. Expect their security review to set the timeline.

Epic and AI: questions.

Q.01Can you connect to Epic if we are a small practice?

Usually through whoever hosts your Epic instance. If a hospital hosts it under Community Connect, their IT and security teams approve and download the client ID. We prepare the app, the API list and the security answers they ask for, and we sign a BAA with you before any PHI moves.

Q.02Does Epic have an MCP server for AI agents?

Epic runs an MCP server at mcp.open.epic.com that answers questions about its developer documentation; Epic says it is not for PHI. Epic has also announced read-only MCP tools over patient data, piloting with early adopters at the end of 2026 and open to organizations on Agent Factory Builder by the end of Q1 2027. Until your organization turns that on, we connect through the FHIR APIs directly.

Q.03Will the AI write into the chart?

Only where Epic offers a write API, your organization has licensed and approved it, and a clinician has signed off on the workflow. We start every Epic connection read-only and keep it there until your team decides otherwise.

Q.04Which AI models see our patient data?

Only models from providers that will sign a BAA, accessed under minimum necessary rules. Every request and response is logged so your compliance officer can audit what the agent read.

C-200Start hereReply within 1 business day

Run Epic? Tell us what else you run.

Epic is rarely the only system. List the others and the job that eats the most time, and we'll reply with what we'd connect first.

All systems · Security · How it works

Consult request
No. 0000
2026-11-28

A person on our team reads these and replies within one business day. Used only to answer you. Privacy.

Received

Got it, friend.

We'll get back to you within one business day. If it can't wait, text or call (224) 243-6864.