Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Live 59 Actions

Epic MCP Server
for AI Agents

Connect your AI agent to StackOne's Epic MCP server and give it 59 MCP tools out of the box. Auth, tool execution, and security all managed.

Epic logo
Epic MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

59 Agent Actions

Agents can read, write, delete and run operations in Epic. Extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Epic MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Epic tool response scanned for prompt injection in about 2.5 ms, with 0.94 F1 on tool-response attacks, all running on a CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Epic call.

Tools Discovery →

What is the Epic MCP Server?

A Epic MCP server lets AI agents read and write Epic data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Epic MCP server ships with 59 pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Epic MCP Tools

Every StackOne action for Epic, ready for your agent. Read, write, delete and run operations, scoped to exactly what you need.

Patients

  • Search Patients

    Find patients by name, birth date, MRN or other demographics

  • Get Patient

    Retrieve a patient's demographics by FHIR ID

Conditions

  • Search Conditions

    List a patient's problem list, encounter diagnoses or health concerns

  • Get Condition

    Retrieve one problem, diagnosis or health concern by FHIR ID

Allergys

  • Create Allergy

    Record a new allergy or intolerance for clinician confirmation

  • Get Allergy

    Retrieve one allergy or intolerance by FHIR ID

Observations

  • Search Observations

    List a patient's lab results, vital signs or social history

  • Get Observation

    Retrieve one lab result, vital sign or other observation by FHIR ID

Procedures

  • Search Procedures

    List a patient's completed procedures and surgeries

  • Get Procedure

    Retrieve one procedure by FHIR ID

Immunizations

  • Search Immunizations

    List a patient's immunization history

  • Get Immunization

    Retrieve one immunization by FHIR ID

Encounters

  • Search Encounters

    List a patient's visits, admissions and other encounters

  • Get Encounter

    Retrieve one encounter by FHIR ID

Appointments

  • Search Appointments

    List a patient's appointments within a date window

  • Get Appointment

    Retrieve one appointment by FHIR ID

Clinical Notes

  • Create Clinical Note

    File a plain-text clinical note to a patient's encounter

  • Search Clinical Notes

    List a patient's clinical notes (progress notes, H&Ps, discharge summaries)

  • Get Clinical Note

    Retrieve one clinical note's metadata by FHIR ID

Orders

  • Search Orders

    List a patient's procedure, imaging, lab and referral orders

  • Get Order

    Retrieve one order by FHIR ID

Coverages

  • Search Coverage

    List a patient's insurance coverages

  • Get Coverage

    Retrieve one insurance coverage by FHIR ID

Practitioners

  • Search Practitioners

    Find clinicians in the organisation's provider directory

  • Get Practitioner

    Retrieve one practitioner by FHIR ID

Care Plans

  • Search Care Plans

    List a patient's care plans (longitudinal, encounter or outpatient)

  • Get Care Plan

    Retrieve one care plan by FHIR ID

Care Teams

  • Search Care Teams

    List the members of a patient's care team

  • Get Care Team

    Retrieve one care team by FHIR ID

Goals

  • Search Goals

    List a patient's care goals

  • Get Goal

    Retrieve one patient goal by FHIR ID

Family Historys

  • Search Family History

    List a patient's family medical history

  • Get Family History

    Retrieve one family member history record by FHIR ID

Medication Administrations

  • Search Medication Administrations

    List medications given to a patient (inpatient MAR)

  • Get Medication Administration

    Retrieve one medication administration by FHIR ID

Claims

  • Search Claims

    List a patient's claims and prior authorisations (Explanation of Benefit)

  • Get Claim

    Retrieve one claim (ExplanationOfBenefit) by FHIR ID

Questionnaire Responses

  • Search Questionnaire Responses

    List questionnaires a patient has completed (e.g. PHQ-9, intake forms)

  • Get Questionnaire Response

    Retrieve one questionnaire response by FHIR ID

Other (20)

  • Create Problem List Entry

    Propose a new problem list item for clinician reconciliation

  • Create Flowsheet Value

    File one value to any flowsheet row on an open encounter

  • Create Vital Sign

    Record one vital sign reading on a patient's open encounter

  • Get Patient Summary (IPS)

    Generate an International Patient Summary for a patient

  • Search Medication Orders

    List a patient's signed medication orders and prescriptions

  • Get Medication Request

    Retrieve one medication order by FHIR ID

  • Search Allergies

    List a patient's allergies and intolerances

  • Search Diagnostic Reports

    List a patient's lab and imaging result reports

  • Get Report Text

    Read the result text of a lab, imaging or procedure report

  • Get Document Content

    Read the text of a clinical note or document by Binary ID

  • Search Implanted Devices

    List a patient's implanted devices

  • Get Device

    Retrieve one implanted device by FHIR ID

  • Get Bulk Export File

    Read the records in one bulk export result file

  • Get Bulk Export Status

    Check whether a bulk export has finished and list its result files

  • Delete Bulk Export

    Delete a bulk export's result files from Epic once they have been read

  • Match Patient

    Find one high-confidence patient match from demographics (Epic Patient $match)

  • Describe Epic Capabilities

    List the FHIR resources, interactions and search parameters this Epic server supports

  • Book Appointment

    Book an appointment slot returned by find_appointment_slots (Epic Appointment $book)

  • Find Appointment Slots

    Find open appointment slots a patient can book (Epic Appointment $find)

  • Start Bulk Export

    Start an asynchronous FHIR bulk export for a patient group (cohort)

Set Up Your Epic MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Epic in under 10 lines of code.

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

FAQ

Epic MCP Server FAQ

Ready to put your agents to work?