# Connect Epic to AI Agents Under HIPAA | 5Lime Labs

> How 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.

- URL: https://5lime.com/systems/epic/
- Section: Home > Systems > Epic
- Last updated: 2026-11-28
- Business: 5Lime Labs · United States · (224) 243-6864 · hello@5lime.com

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.

Vendor Epic Systems Corporation

Category Electronic health record (EHR)

Access Epic 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 server official 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

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

Used by 4 industries

- Hospitals & Health Systems

- Medical Practices

- Behavioral Health

- Home Health & Hospice

Connect Epic

### Once Epic is connected.

C01 Starts 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.

C02 Starts 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.

C03 Starts 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.

C04 Starts 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.

C05 Starts 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.

### 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.01 Can 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.02 Does 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.03 Will 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.04 Which 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.

### 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

Sources (9) · verified 2026-11-28

- Epic on FHIR: App Creation and Request Process Overview

- Epic on FHIR: OAuth 2.0 Specification

- Epic on FHIR: App Developer Guidelines

- Epic on FHIR: Developer Testing Guide (backend OAuth)

- Epic on FHIR: Remote Patient Monitoring (HL7v2 and Observation.Create filing)

- Epic on FHIR: FHIR Bulk Data Access Tutorial

- Epic on FHIR: open.epic MCP

- Epic on FHIR: Agent Factory Connectors, early information for developers

- open.epic

## Links

- [How it works](https://5lime.com/how-it-works/)
- [Industries](https://5lime.com/industries/)
- [Systems](https://5lime.com/systems/)
- [Blog](https://5lime.com/blog/)
- [Security](https://5lime.com/security/)
- [About](https://5lime.com/about/)
- [Contact](https://5lime.com/contact/)

## Sources

- [Epic on FHIR: App Creation and Request Process Overview](https://fhir.epic.com/Documentation?docId=epiconfhirrequestprocess)
- [Epic on FHIR: OAuth 2.0 Specification](https://fhir.epic.com/Documentation?docId=oauth2)
- [Epic on FHIR: App Developer Guidelines](https://fhir.epic.com/Documentation?docId=developerguidelines)
- [Epic on FHIR: Developer Testing Guide (backend OAuth)](https://fhir.epic.com/Documentation?docId=testingguide)
- [Epic on FHIR: Remote Patient Monitoring (HL7v2 and Observation.Create filing)](https://fhir.epic.com/Documentation?docId=rpm_devices_software)
- [Epic on FHIR: FHIR Bulk Data Access Tutorial](https://fhir.epic.com/Documentation?docId=fhir_bulk_data)
- [Epic on FHIR: open.epic MCP](https://fhir.epic.com/Documentation?docId=mcp)
- [Epic on FHIR: Agent Factory Connectors, early information for developers](https://fhir.epic.com/Documentation?docId=agent-factory-connectors)
- [open.epic](https://open.epic.com/)
- [Site summary for language models](https://5lime.com/llms.txt)
