Skip to main content
Glama
kriskraw80

Connects to Epic MyChart patient portals to log in, list test results, and download them as PDFs so an AI assistant can help understand your own lab work.

by kriskraw80

MyChart MCP Server

An MCP (Model Context Protocol) server that connects to any Epic MyChart patient portal to log in, list your test results, and download them as PDFs — so an AI assistant can help you understand your own lab work.

Epic offers no simple public login API (the official FHIR route requires per-organization app registration), so this server drives the MyChart website with Playwright:

  • Login is interactive and private — a visible browser window opens; you type your username/password and complete MFA yourself. Credentials never pass through the AI, the MCP protocol, or this server's tool arguments.

  • Session persists — cookies (including MyChart's session-scoped auth cookie) are exported to disk after login and replayed on every launch, so subsequent operations run headless until the portal expires the session server-side.

  • Works across MyChart versions — scraping tries the modern SPA routes (/app/test-results) first, then classic routes, with permissive selectors.

Tools

Tool

Purpose

mychart_set_provider

Set your health system's MyChart URL (one-time). Paste any URL from their MyChart site.

mychart_login

Opens a visible browser window; you sign in + complete MFA there.

mychart_session_status

Check provider config + whether the saved session is still valid.

mychart_list_test_results

List ALL test results (auto-expands "Show more"), with ids r1, r2, ....

mychart_get_test_result

Full readable content of one result (values, ranges, comments).

mychart_download_test_result

Save a result as PDF to ~/.mychart-mcp/downloads.

mychart_screenshot

Debug: full-page PNG of what the automation browser sees.

mychart_close_browser

Close the browser process (session stays saved on disk).

Related MCP server: AgentCare

Installation

npm install -g mychart-mcp-server
npx playwright install chromium

Or from source:

git clone https://github.com/kriskraw80/mychart-mcp-server.git
cd mychart-mcp-server
npm install
npx playwright install chromium
npm run build

Register with Claude Code / Claude Desktop

{
  "mcpServers": {
    "mychart": {
      "command": "npx",
      "args": ["mychart-mcp-server"]
    }
  }
}

(Or point command at node with args: ["<path>/dist/index.js"] for a source checkout.) Restart your MCP client after config changes.

Optional environment variables

Variable

Purpose

MYCHART_URL

Default provider URL (alternative to mychart_set_provider).

MYCHART_USERNAME / MYCHART_PASSWORD

If set on the server process, the login form is pre-filled (MFA is still completed by you in the window). Optional — typing in the window is the default and safest.

Typical flow

  1. mychart_set_provider with your portal URL (e.g. https://mychart.example-health.org/MyChart)

  2. mychart_login → sign in + MFA in the window that opens (check "Remember this device")

  3. mychart_list_test_results → returns r1, r2, ...

  4. mychart_get_test_result r1 or mychart_download_test_result r1

Data locations

Everything lives in ~/.mychart-mcp/ — keep it out of synced folders (the Chromium profile does not tolerate file sync):

  • config.json — provider URL

  • browser-profile/ — persistent Chromium profile

  • storage-state.json — exported session cookies (replayed on each launch)

  • results-cache.json — id → result-URL map from the last list call

  • downloads/ — PDFs and screenshots

Notes & limitations

  • Personal use, no warranty. This tool automates the MyChart web portal to access your own health records — a right you have under HIPAA — but portal scraping is not officially sanctioned by Epic. Use at your own discretion.

  • MyChart's DOM varies by health system and Epic version. If listing finds nothing, use mychart_screenshot to see the rendered page; selectors may need a tweak for your provider. Some systems host MyChart on non-obvious domains (e.g. secure.<org>.org rather than mychart.<org>.org) — paste the URL straight from your browser.

  • The server prefers your system-installed Chrome (then Edge, then Playwright's bundled Chromium) — real Chrome's app-bound cookie encryption requires the whole profile to stay on one browser brand, and some Windows machines can't run the bundled build.

  • PDF download renders the result detail page via headless Chrome (page.pdf), which is version-independent, rather than hunting for per-version "Download" buttons.

  • Sessions expire server-side after idle time; just run mychart_login again.

  • login-helper.mjs, run-direct.mjs, and run-batch.mjs drive the built dist/ code directly — handy for re-login or batch fetching without an MCP client in the loop.

License

MIT

Available Tools

8 tools
mychart_close_browserClose MyChart BrowserA
Idempotent

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.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description discloses key behavioral traits beyond the annotations: the session is preserved on disk, only the browser process is freed, and the next call auto-relaunches. This adds significant context to the idempotent and non-destructive hints. It also clarifies side effects for the user.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, front-loaded with the primary action, and contains no fluff. Every sentence adds useful information: the first states the core action, the second clarifies persistence and automatic relaunch.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple no-parameter tool with no output schema, the description fully covers purpose, side effects, and behavioral guarantees. It addresses the most likely user concerns—whether the login is lost and what happens after closing. Nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no parameters, and schema coverage is 100%, so the baseline for 0 params is 4. The description cannot add more meaning about parameters because none exist, and it appropriately focuses on behavior instead.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: 'Close the automation browser' with a specific verb and resource. This is distinct from all sibling tools, which focus on login, test results, and screenshots. There is no ambiguity about what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context on when to use it: to free the browser process while preserving the login session. It also notes that the next tool call relaunches the browser, implying it can be used between operations. However, it does not explicitly mention when not to use it or alternative tools, though no direct alternative exists among the siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

mychart_download_test_resultDownload MyChart Test Result as PDFA
Idempotent

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 " .pdf".

Files are saved to ~/.mychart-mcp/downloads. Returns: { path, bytes, id, name, date }.

ParametersJSON Schema
NameRequiredDescriptionDefault
filenameNoOptional base filename for the saved PDF
result_idYesResult id from mychart_list_test_results (e.g. "r3") or a full result URL

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations provide readOnlyHint=false, destructiveHint=false, and idempotentHint=true, and the description adds context beyond those: files are saved to a specific directory (~/.mychart-mcp/downloads), the PDF is rendered from the result detail page, and login is required. It also describes the return value shape, which helps the agent understand side effects and outcomes without contradicting the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and well-structured: a one-sentence purpose, a short prerequisites note, a bulleted argument list, a storage location line, and a return shape line. Every sentence contributes meaningful information, and there is no redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with only two parameters, no output schema, and existing annotations, the description covers all essential contextual aspects: what it does, prerequisites, where files are saved, the output format, and how to source the result_id. It does not explain error handling, but that is not necessary for a straightforward download tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already describes both parameters with 100% coverage, so the baseline is 3. The description adds value by specifying that result_id can be a full URL (already in schema) and by giving the default filename pattern ('<date> <test name>.pdf'), which is not in the schema and clarifies how the optional filename parameter behaves.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Save one test result as a PDF file on disk,' which clearly states what the tool does and its output format. It also differentiates from siblings by noting the result_id comes from mychart_list_test_results and that it renders from the result detail page, making it distinct from screenshotting or retrieving test result data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly states a prerequisite ('Requires a logged-in session'), which indicates when the tool can be used. It does not explicitly name alternatives or when-not-to-use scenarios, but the context of 'PDF file on disk' and the referenced sibling tools make the appropriate usage clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

mychart_get_test_resultGet MyChart Test Result DetailsA
Read-onlyIdempotent

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
result_idYesResult id from mychart_list_test_results (e.g. "r3") or a full result URL

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only and idempotent behavior, but the description adds valuable context: the need for a logged-in session, the return format including a truncated flag, and the fallback to download for full PDFs. This goes beyond the annotations and helps the agent understand operational requirements and limitations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-organized with separate sections for the main purpose, arguments, and return value. Every sentence provides essential information without fluff, making it easy to parse and understand.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with a single parameter and no output schema, the description fully covers what the agent needs: the input source, session requirement, return fields, and truncation handling. It even references the relevant sibling tool for complete PDFs, making it self-contained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already provides a full description of result_id, and the description's Args section repeats the same information. Since schema coverage is 100%, the description adds no new meaning to the parameter beyond what is already structured.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool opens one test result and returns full readable content including component values, reference ranges, flags, and provider comments. It distinguishes from siblings like mychart_list_test_results and mychart_download_test_result by focusing on a single result's detailed readable text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions the prerequisite of a logged-in session and points to mychart_download_test_result as an alternative when truncated is true. It also references mychart_list_test_results as the source for result IDs. However, it does not explicitly state when to use this tool versus listing or downloading in all cases, though the context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

mychart_list_test_resultsList MyChart Test ResultsA
Read-onlyIdempotent

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 WITH DIFFERENTIAL" "date": string?, // collection/result date as shown by MyChart "url": string // direct link to the result detail page } ] }

Error Handling:

  • "Not logged in" -> run mychart_login first.

  • If no results are recognized, use mychart_screenshot to inspect what the portal is showing.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, and the description adds valuable context: automatic expansion of lazy-loaded lists, result ordering, the need for an authenticated session, and error handling behavior. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear lead sentence, a compact return schema, and an error-handling section. Every sentence adds value and there is no redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the full context: what the tool does, how it behaves (auto-expand, ordering), what it returns (detailed JSON schema), prerequisites (login), and failure paths (screenshot fallback). Given the tool's moderate complexity, this is complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are zero parameters (input schema is empty), so the baseline is 4. The description doesn't need to add parameter meaning because there are none; it wisely focuses on the return schema and behavior instead.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Fetch') and resource ('full list of test results from the MyChart portal'), clearly distinguishing it from siblings like mychart_get_test_result and mychart_download_test_result. It also specifies content types (labs, imaging, pathology) and ordering.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the prerequisite of a logged-in session and instructs to run mychart_login if not logged in. Also provides a fallback to mychart_screenshot if no results are recognized, effectively guiding when to use this tool versus alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

mychart_loginLog in to MyChartA
Idempotent

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 headlessly without repeating login until the session expires.

Args:

  • timeout_seconds (number): How long to wait for the user to finish signing in (default 300, max 900).

Returns: { success, landedUrl, message }

ParametersJSON Schema
NameRequiredDescriptionDefault
timeout_secondsNoSeconds to wait for the user to complete sign-in (default 300)

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description discloses key behaviors: visible browser window, direct user interaction for MFA, no credential passing through MCP, optional prefill from env vars, and persistent profile storage. These traits go well beyond the annotations, which only mark idempotency and open-world behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Each section, such as purpose, MFA tip, persistent profile explanation, and parameters, adds necessary context. The description is structured and front-loaded with the core action, making it easy to parse despite its length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's interactive login nature, the description covers prerequisites, user actions, session persistence, and return format. The explicit Returns line compensates for the missing output schema, and the detail about the browser profile ensures the agent understands side effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already fully documents timeout_seconds with default 300 and max 900, so the description's Args section repeats this. It adds no new meaning beyond what the schema provides, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: opening a visible browser window at the MyChart login page and waiting for sign-in. This distinguishes it from siblings like mychart_list_test_results or mychart_session_status, which are post-login operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explains that all other tools work headlessly after this login, implying this is the prerequisite step. It also advises about MFA and session persistence, giving clear when-to-use context, though it doesn't explicitly mention alternatives like checking session status first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

mychart_screenshotScreenshot Current MyChart PageA
Read-only

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameNoOptional base filename

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds valuable behavioral details: the fallback behavior when idle, the file save location (~/.mychart-mcp/downloads), and the return format { path, url }. These go beyond what annotations convey and help the agent understand side effects and expectations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: it opens with the core purpose ('Debug aid: capture a full-page PNG'), then gives a practical use case, and finishes with compact Args and Returns sections. Every sentence earns its place without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one optional parameter and no output schema, the description is highly complete. It documents the return shape ({ path, url }), the save location, the fallback behavior when idle, and the intended debugging scenario. Nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The only parameter 'name' is fully described in the schema as an optional base filename, and the description simply restates it in the Args section. Since schema coverage is 100%, the description adds no additional semantic meaning beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: capture a full-page PNG of whatever page the automation browser is currently on, with a fallback to the MyChart home page. It identifies itself as a debug aid and specifies the resource (PNG) and scope, distinguishing it from sibling tools that focus on data retrieval or session management.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit context for when to use this tool: 'Useful when list/detail scraping reports nothing recognizable.' This gives a clear scenario. However, it does not explicitly mention when not to use it or alternative tools, so it lacks exclusions that would merit a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

mychart_session_statusCheck MyChart SessionA
Read-onlyIdempotent

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.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds valuable behavioral context by stating it 'Runs headless' and disclosing the exact return fields. This goes beyond the structured metadata to inform the agent about the tool's execution mode and output shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, front-loads the core purpose, and packs essential usage and return information without any fluff. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has no parameters and no output schema, the description fully covers the necessary context: what is checked, the return structure, and the conditional action to take. It leaves no critical gaps for a status-check tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With zero parameters, the baseline is 4. The description doesn't need to explain parameter semantics, but it adds clarity by describing what the tool evaluates and returns, which is sufficient for a no-input status check.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks both MyChart provider configuration and browser session login status, with a specific verb and resource. It distinguishes itself from siblings by focusing on the session status and explicitly referencing the mychart_login alternative when loggedIn is false.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage guidance: 'safe to call any time' indicates when to use it, and 'If loggedIn is false, run mychart_login' gives a direct alternative action. This clearly orients the agent on when to invoke this tool versus the login tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

mychart_set_providerSet MyChart ProviderA
Idempotent

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:

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 the sense that tools will now target the new site.

ParametersJSON Schema
NameRequiredDescriptionDefault
urlYesAny URL on your health system's MyChart site, e.g. https://mychart.virtua.org/MyChartPRD

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate idempotentHint=true, readOnlyHint=false, and destructiveHint=false. The description goes beyond this by disclosing that the setting persists to ~/.mychart-mcp/config.json, that URLs are normalized to the instance root, and that changing providers invalidates saved login sessions in a nuanced way. This additional context about side effects and persistence is valuable and not redundant with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear opening sentence, an Args section, a Returns statement, and a brief note on persistence. Every sentence serves a purpose, and the length is appropriate for the complexity of the tool. No filler or repetition of schema verbatim.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter configuration tool, the description fully covers what the tool does, where the setting is stored, what it returns, and the effect on sessions. There is no output schema, but the Returns line describes the normalized base URL. Combined with annotations, this is complete and leaves no open questions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with the url parameter already described. The description adds meaning by giving concrete examples (e.g., a login page URL), stating that any URL from the provider's site works, and explaining automatic normalization to the instance root. This improves understanding beyond the schema's simple description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-resource pair: 'Configure which health system's MyChart site to use.' This clearly distinguishes it from sibling tools like mychart_login or mychart_list_test_results, as it is the only configuration/setup tool. It also states the need to set it once before logging in, reinforcing its purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says 'must be set once before logging in,' which tells the agent when to use this tool relative to mychart_login. It also explains that every hospital system runs its own instance, so this setup is required. However, it does not explicitly list alternatives or 'when-not-to-use' scenarios, missing the full bar for a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 8 tool updatesv1.0.0
    • First observedmychart_close_browser
    • First observedmychart_download_test_result
    • First observedmychart_get_test_result
    • First observedmychart_list_test_results
    • First observedmychart_login
    • First observedmychart_screenshot
    • First observedmychart_session_status
    • First observedmychart_set_provider

TDQS

A4.6/5.0

Scored across 8 tools

Disambiguation5/5

Each tool has a distinct role: configure provider, login, check session, list results, get detail, download PDF, screenshot for debugging, and close browser. No overlapping purposes that would confuse an agent.

Naming Consistency4/5

All tools share the 'mychart_' prefix and most use verb_noun (set_provider, list_test_results, get_test_result, download_test_result, close_browser). Minor deviations include 'login', 'session_status', and 'screenshot', but the pattern remains recognizable and predictable.

Tool Count5/5

Eight tools is a well-scoped size for a MyChart portal connector. Each tool covers a necessary step in the workflow (setup, auth, status, list, retrieve, download, debug, cleanup) without redundancy or bloat.

Completeness5/5

The tool set fully covers the stated purpose: configure a provider, log in, verify session, list test results, retrieve readable content, download PDFs, and debug if scraping fails. There are no obvious gaps for the intended use case.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers