mychart
v1.0.0Connects to Epic MyChart patient portals: interactive login, list and download your own test results
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mychart_set_provider Set MyChart Provider
Configure which health system's MyChart site to use. Every hospital system runs its own MyChart instance at its own URL, so this must be set once before logging in. Args: - url (string): Any URL from the provider's MyChart site — the login page URL pasted from a browser works fine (e.g. "https://mychart.virtua.org/MyChartPRD/Authentication/Login"). It is normalized to the instance root automatically. Returns: The normalized base URL that was saved. The setting persists in ~/.mychart-mcp/config.json. Changing providers invalidates any saved login session for the previous provider only in…
| Parameter | Type | Description |
|---|---|---|
url * | string | Any URL on your health system's MyChart site, e.g. https://mychart.virtua.org/MyChartPRD |
mychart_login Log in to MyChart
Open a VISIBLE browser window at the configured MyChart login page and wait for the sign-in to complete. The user types their username/password and completes any MFA prompt directly in that window — credentials are never passed through the MCP client. (Optionally, if MYCHART_USERNAME and MYCHART_PASSWORD environment variables are set on the server process, the login form is pre-filled.) Tip: check "Remember this device" during MFA so future logins skip the code. The session is stored in a persistent browser profile (~/.mychart-mcp/browser-profile), so once logged in, all other tools work h…
| Parameter | Type | Description |
|---|---|---|
timeout_seconds | integer | Seconds to wait for the user to complete sign-in (default 300) |
mychart_session_status Check MyChart Session
Check whether a MyChart provider is configured and whether the saved browser session is still logged in. Runs headless; safe to call any time. Returns: { configured, baseUrl, loggedIn, landedUrl }. If loggedIn is false, run mychart_login.
mychart_list_test_results List MyChart Test Results
Fetch the full list of test results from the MyChart portal (labs, imaging, pathology, etc.). Automatically expands lazy-loaded lists ("Show more") so every available result is returned, newest first as displayed by MyChart. Requires a logged-in session. Returns: JSON with schema: { "count": number, "listUrl": string, // the portal page that was scraped "results": [ { "id": string, // stable id for this session, e.g. "r1" — use with mychart_get_test_result / mychart_download_test_result "name": string, // test name, e.g. "CBC WI…
mychart_get_test_result Get MyChart Test Result Details
Open one test result and return its full readable content — component values, reference ranges, flags, and provider comments — as text. Requires a logged-in session. Args: - result_id (string): An id from mychart_list_test_results (e.g. "r3"), or a full result-detail URL. Returns: { id, name, date, url, text, truncated }. If truncated is true, use mychart_download_test_result for the complete PDF.
| Parameter | Type | Description |
|---|---|---|
result_id * | string | Result id from mychart_list_test_results (e.g. "r3") or a full result URL |
mychart_download_test_result Download MyChart Test Result as PDF
Save one test result as a PDF file on disk (rendered from the result detail page). Requires a logged-in session. Args: - result_id (string): An id from mychart_list_test_results (e.g. "r3"), or a full result-detail URL. - filename (string, optional): Base filename for the PDF; defaults to "<date> <test name>.pdf". Files are saved to ~/.mychart-mcp/downloads. Returns: { path, bytes, id, name, date }.
| Parameter | Type | Description |
|---|---|---|
result_id * | string | Result id from mychart_list_test_results (e.g. "r3") or a full result URL |
filename | string | Optional base filename for the saved PDF |
mychart_screenshot Screenshot Current MyChart Page
Debug aid: capture a full-page PNG of whatever page the automation browser is currently on (or the MyChart home page if idle). Useful when list/detail scraping reports nothing recognizable — the screenshot shows what the portal actually rendered. Args: - name (string, optional): Base filename for the PNG. Returns: { path, url }. Screenshot is saved to ~/.mychart-mcp/downloads.
| Parameter | Type | Description |
|---|---|---|
name | string | Optional base filename |
mychart_close_browser Close MyChart Browser
Close the automation browser. The login session itself is preserved in the persistent profile on disk — this only frees the browser process. The next tool call relaunches it automatically.