MyAtriumHealth (Epic MyChart) records via your signed-in browser tab
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
MCP server for MyAtriumHealth β Atrium Health's Epic MyChart
patient portal at my.atriumhealth.org. Reads test results, medications, allergies,
immunizations, health issues, goals and visits.
This project was developed and is maintained by AI. Use at your own discretion. It reads personal health information, and only ever from the signed-in user's own account.
| Mode | When | Credentials held |
|---|---|---|
| Browser bridge (default) | no credentials configured | none |
| Bridge-less | MAH_USERNAME + MAH_PASSWORD set | your portal password, on disk |
Bridge-less logs in server-side β no browser, no extension β which is what makes
hosting possible. Verification is human-in-the-loop: the portal challenges,
mah_sign_in reports the channels your account allows, the portal sends a code to
you, and mah_verify_code submits only what you provide. Nothing here bypasses the
second factor.
When the session expires you do not reconnect the MCP or restart anything. The
next tool call returns an actionable error naming the channels and your masked
destinations; you pick one, the portal texts or emails you, and mah_verify_code
resumes the session in place. A pending challenge is remembered, so further tool calls
report it rather than re-submitting your password each time.
Where credentials are read from. A real MAH_USERNAME / MAH_PASSWORD in the
environment always wins. Failing that the server reads the first .env it finds, in
this order: MAH_DOTENV, then ~/.myatriumhealth-mcp/.env, then ./.env.
The middle one exists because MCP clients launch the server from whatever directory
they happen to be in, so a .env sitting in a checkout is invisible to it β and the
failure is quiet: with no credentials the server falls back to the browser bridge,
binds a port and waits for a signed-in tab. If you meant to run bridge-less and see the
bridge start, that is what happened; the startup line now says so.
How the session persists. After one verification the cookie jar is stored (0600, bound to the account) and reused, so restarts resume the existing session rather than signing in again β no browser and no further codes until the session lapses.
How long that lasts, measured rather than assumed. Every one of the ten cookies
MyChart sets is a session cookie β none carries an expires or max-age β so the
lifetime is the server's alone and cannot be read from the jar. A jar left idle for
219 minutes no longer authenticated: the next call fell through to a fresh sign-in
and was challenged for a code immediately.
What that does and does not establish: it bounds an idle session, and says nothing about an active one. The measurement cannot tell an idle timeout from an absolute one, and portals of this kind usually expire on inactivity β so a session in steady use may outlive 3.6h comfortably, while one left alone will not. Plan re-verification around gaps in use, not around wall-clock age.
Why the jar is written back mid-session. Every response's Set-Cookie is absorbed,
and the jar is re-persisted whenever a value actually changed (transport-server.ts
after each request; a no-op write when nothing rotated). That is not bookkeeping: if
the portal refreshes its ticket as a session is used, the refreshed one only survives a
process restart by reaching disk. On a scale-to-zero host β where the child exits
between tool calls β that write-back is the whole reason an extended session is still
there on the next call, rather than the copy frozen at sign-in.
Two things none of this changes: a lapse still costs one code rather than a reconnect,
and detection alone sends nothing β only mah_sign_in asks the portal to send
anything.
What does NOT work, measured rather than assumed: the
RememberDeviceIdthis portal returns is not a device-tracking id it will accept back. Sending it neither skips verification nor is harmless β it breaks the challenge, leaving the SecondaryValidation page without itstemplateContextso the antiforgery token cannot be read andSendCodereturns 500. The account reportsRememberMeSettings.EnrollDeviceTracking: False, which fits. The token is therefore stored but deliberately never sent.
The bridge mode's real virtue is that it holds no credentials at all. Prefer it unless you specifically need bridge-less.
Every MyChart cookie is HttpOnly and login is MFA-gated, so the session cannot be
copied out of the browser and replayed from Node. Requests are therefore relayed
through the user's own signed-in tab via the
fetchproxy bridge and the Transporter
extension, reusing their authenticated session. The server never reads or stores the
session cookie.
The portal's web app talks to a JSON API in two generations β modern
POST api/<area>/<Action> and legacy form-encoded POST <Area>/<Controller>/<Action>.
Both are documented, with live-captured shapes, in
docs/MYATRIUMHEALTH-API.md.
Then sign in to my.atriumhealth.org in Chrome and call mah_healthcheck. The first
call prints a pair code β approve it once in the Transporter popup.
| Env | Default | Purpose |
|---|---|---|
MAH_USERNAME | β | MyAtriumHealth username. Set with MAH_PASSWORD to enable bridge-less mode. |
MAH_PASSWORD | β | Portal password. Both are required; setting only one falls back to the bridge (with a warning). |
MAH_DEVICE_FILE | ~/.myatriumhealth-mcp/device.json | Session state (0600). Holds the live cookie jar as well as the device token β treat as a credential. |
MAH_WS_PORT | 37149 | fetchproxy concentrator port (bridge mode only). The whole fleet shares this one port; override only when hosting. |
All read-only except mah_set_active_patient, which changes only which patient this
connector reads β it writes nothing to any chart.
Every reading tool returns { patient, data }, so the chart a response belongs to is
stated rather than inferred.
| Tool | What it returns |
|---|---|
mah_list_allergies | Allergies with reactions and severity |
mah_list_health_issues | The problem list |
mah_list_immunizations | Immunizations and dates, by organization |
mah_list_medications | Medications with dosing instructions (sig) and prescriber |
mah_list_test_results | Labs and imaging: name, abnormal flag, date, provider comments |
mah_list_upcoming_visits | Upcoming and in-progress appointments |
mah_list_past_visits | Past visits, grouped by organization |
mah_list_goals | Patient goals |
mah_get_health_summary | Health-summary header and action plans |
mah_list_message_folders | Message Center folders with unread counts |
mah_list_messages | Message Center conversations for a folder |
mah_list_insurance | Insurance coverages on file |
mah_list_care_team | Care team providers, internal and external |
mah_list_billing_accounts | Billing accounts and balances (parsed from HTML) |
mah_get_menu | Which portal features this account exposes |
mah_healthcheck | Connection health β bridge status, or credential/session status in bridge-less mode |
mah_auth_status | Whether a session can be resumed and whether a device token is stored (bridge-less only) |
mah_sign_in | Sign in server-side; reports verification channels if a code is needed (bridge-less only) |
mah_send_verification_code | Ask the portal to send a code to the account holder (bridge-less only) |
mah_verify_code | Submit the code the user received (bridge-less only) |
mah_list_patients | The patients this login can open β the account holder and any proxy subjects |
mah_get_patient_context | Which patient the readers are serving, confirmed with the portal |
mah_set_active_patient | Point every reader at one of those patients; survives restarts |
Every reading tool takes view: compact (the default) or full. The raw envelopes
are large β test results ~33 KB, medications ~30 KB β so compact is what you want for
browsing, and full returns MyAtriumHealth's payload untouched.
compact always strips image and avatar URLs, which is subtractive and cannot drop a
field nobody knew about. Ten readers additionally reduce each record to its clinically
meaningful fields, because their real payloads were captured and a projection derived
from them: mah_list_allergies, mah_list_health_issues, mah_list_immunizations,
mah_list_medications, mah_list_care_team, mah_list_goals, mah_list_test_results,
mah_list_past_visits, mah_list_insurance and mah_list_messages.
Every other reader gets the URL strip only. That field list is applied where one was
actually established and nowhere else β the list above is generated from
PROJECTED_ENDPOINTS and checked against the project() call sites by a test, so it
cannot quietly drift out of step with the code. If the portal's shape drifts, the
projection warns to stderr and returns the raw response rather than an empty list.
MyChart answers an expired session with HTTP 200 whose body is the login page, never
a 401, and the JSON endpoints then return {}. Tools raise a "Not signed in" error with
the remedy rather than reporting empty results. Sessions are short-lived; expect to sign
in again between uses.
skills/myatriumhealth-fpx does the same thing from a
shell with the fpx CLI β no server to run. Its references/endpoints.md carries
live-verified jq recipes for every endpoint here.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/myatriumhealth-mcp)<a href="https://allmcps.com/mcp/myatriumhealth-mcp"><img src="https://allmcps.com/api/badge/myatriumhealth-mcp?style=directory" alt="Myatriumhealth MCP on AllMCPs" /></a>