SundhedMCP
Summary: SundhedMCP lets an AI read your own sundhed.dk health record — locally, read-only, after you approve a MitID login yourself.
Connect & manage session —
connect_sundhedopens a MitID login window (or returns a link on a hosted server);session_statusreports whether the session is live and how long it lasted;disconnect_sundhedcloses the browser and forgets the session.Overview —
get_summaryreturns counts of medicine (active/paused/stopped), prescriptions (open/closed/future) and vaccinations (given/planned/overdue) as a cheap first call.Medicine —
get_medication_cardlists current medicine on Fælles Medicinkort (drug, form, strength, dosage, reason, active substance, dates, status);get_medication_detailsgives one medicine in full (ATC code, administration, substitution, reimbursement, prescriber).Prescriptions —
get_prescriptionslists open prescriptions with validity and remaining units;get_prescriptiondetails one (dispensings left, pharmacy, package, issuing doctor, reimbursement).Lab results —
get_lab_resultsreturns regional test results for a date range (default last 12 months), including requisitions, analyses, values and reference intervals.Vaccinations —
get_vaccinationslists every registered vaccination;get_vaccinationdetails one (diseases covered, programme, coverage, organisation).Referrals —
get_referralslists active and earlier referrals to specialists and hospitals.
All tools are read-only; CPR numbers are masked and results are kept in memory only (or ~/.sundhedmcp for phone access). Note: the README's phone_access tool is not present in this schema.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SundhedMCP show my latest lab results"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SundhedMCP
Your AI now reads your health record. A small, local, read-only MCP server that lets Claude (or any MCP client) read your own record on sundhed.dk: medicine card, prescriptions, lab results, vaccinations and referrals.
Not affiliated with sundhed.dk, Sundhedsdatastyrelsen or MitID. For one person reading their own record on their own machine. It runs locally only; there is no hosted version.
Before you use it
Your AI provider sees what it reads. SundhedMCP runs on your computer and talks only to sundhed.dk. But everything your AI reads through it (medicine, prescriptions, lab results, vaccinations, referrals) is sent to the AI provider you connect it to, such as Anthropic or OpenAI, and handled under that provider's terms and retention rules. That is your choice; make it knowingly.
You approve every login. You type your MitID user ID on the real MitID page in a browser window on your own computer and approve in your own MitID app. SundhedMCP never sees, stores or passes on MitID credentials.
Your own record only. Do not run it for family members, patients or anyone else, and do not host it for others. Health data is special-category data under GDPR; running it for someone else makes you responsible for it.
It retrieves; it does not interpret. The tools return what sundhed.dk shows, with no flags, scores or advice. It is not a medical device and not medical advice. Ask your GP or pharmacist before changing any medicine.
Unofficial. sundhed.dk has no citizen API. SundhedMCP reads the same pages your browser does, after your own login. Check sundhed.dk's terms of use yourself.
No telemetry. No analytics, no crash reporting, no logging of your data.
Related MCP server: clalit-mcp
How it works
Your AI ──stdio──▶ SundhedMCP ──fetch() inside a real browser──▶ sundhed.dk
│
└─ you log in with MitID in that browser's windowsundhed.dk has no public API for citizens. SundhedMCP opens a browser window on sundhed.dk, you log in with MitID, and every tool then calls the same JSON endpoints the site's own pages use, from inside that logged-in browser.
Local only. No SundhedMCP service in between, no telemetry.
In memory. The session lives in the browser this process owns. Right after each login the whole record is fetched into memory, so the tools still answer after sundhed.dk ends the session. Stop the server and it is gone. Nothing is written to disk.
Read-only. Only GET requests to the citizen pages.
CPR masked. CPR numbers are replaced with
[CPR]in every result.
Setup
Needs Node 24+ and Google Chrome, Microsoft Edge or Chrome Canary (or run
npx playwright-core install chromium).
npm install
claude mcp add sundhedmcp -- node /path/to/sundhedmcp/src/stdio.tsThen ask your assistant to "connect sundhed.dk", click Log på in the window that opens and approve in the MitID app. The window minimizes itself; leave it running.
Use it from your phone (claude.ai)
Your own computer becomes the server. Nothing runs on a server of ours. Step-by-step with pictures: sundhedmcp.dk/opsaetning (English).
Run
npx -y sundhedmcp serve, or ask your assistant to "set up SundhedMCP for my phone" (thephone_accesstool).Follow the guide that opens at
http://localhost:8787/guide: choose a password, install Tailscale and click Open to claude.ai, click Start at login, add the connector in claude.ai with the address the guide shows, and log in with MitID.Open Claude on your phone and ask about your medicine card.
It works while the computer is on and awake. Tailscale Funnel gives the
computer a fixed public HTTPS address; the connector behind it needs your
password (OAuth), and the guide itself only answers on this computer. After
the MitID login, a copy of your record is kept in ~/.sundhedmcp so your phone
can read it after the sundhed.dk session ends.
The Docker image (src/server.ts) still serves only a page that points here.
Set SUNDHEDMCP_HOSTED=1 to run hosted mode there at your own risk.
Tools
Tool | What it returns |
| Opens the login window on your computer and waits up to 3 minutes for MitID |
| Whether the session is live, and how long the last one lasted |
| Closes the browser and forgets the session |
| Counts: medicine, prescriptions, vaccinations |
| Current medicine on Fælles Medicinkort |
| One medicine: ATC code, prescriber, substitution, reimbursement |
| Open prescriptions with validity and remaining units |
| One prescription: dispensings left, pharmacy, package |
| Regional lab results for a date range (default 12 months) |
| Every registered vaccination |
| One vaccination: diseases covered, programme, coverage |
| Active and earlier referrals |
| Starts |
Settings
Variable | Default | |
| tries chrome, msedge, chrome-beta, chrome-canary, chromium | Playwright channel to use |
| found in the usual places | Path to the tailscale CLI, for |
|
| How often to touch the session; |
Development
npm test # unit tests (synthetic data only)
npm run typecheckThe landing page is built from site/: edit site/en.source.html (English),
then python3 site/translate.py writes the Danish page (it lists any
translation pair that no longer matches) and python3 site/build.py writes
docs/ for GitHub Pages.
Never commit captured responses: they are real health data. fixtures/private/
is ignored for that reason.
License
MIT. The landing page uses transitions from transitions.dev by Jakub Antalík.
Available Tools
12 toolsconnect_sundhedConnect sundhed.dkARead-only
Starts a sundhed.dk login with MitID. Locally it opens a browser window and waits up to 3 minutes; tell the person to enter their MitID user ID there and approve in the MitID app. On a hosted server it returns a link the person opens to log in; relay the link and ask them to say when they are done. Call this when another tool says the person is not logged in.
Inputs: no named parameters.
disconnect_sundhedLog out of sundhed.dkA
Closes the browser and forgets the session. Nothing is stored, so the next use needs a new MitID login.
Inputs: no named parameters.
get_lab_resultsTest resultsARead-only
Regional lab results (prøvesvar) for a date range, default the last 12 months: requisitions, analyses, values and reference intervals. An empty result means no regional results in that range, not that none exist anywhere; try a wider range.
Inputs: to, from.
get_medication_cardMedicine cardARead-only
Current medicine on Fælles Medicinkort, newest first: drug, form, strength, dosage text, reason (Cause), active substance, start date and status. Use OrdinationId with get_medication_details.
Inputs: no named parameters.
get_medication_detailsMedicine detailsARead-only
One medicine on the card in full: ATC code, administration, substitution and reimbursement, dosage period, and who created, changed or stopped it.
Inputs: ordination_id (required).
get_prescriptionPrescription detailsARead-only
One prescription in full: dispensings given and remaining, remaining units, validity, issuing doctor and clinic, receiving pharmacy, package size, reimbursement and substitution.
Inputs: prescription_id (required).
get_prescriptionsOpen prescriptionsARead-only
Open prescriptions (recepter): drug, strength, dosage, valid from and to, remaining units and status. Use PrescriptionId with get_prescription for dispensings left and the pharmacy.
Inputs: no named parameters.
get_referralsReferralsARead-only
Active and earlier referrals (henvisninger) to specialists and hospitals.
Inputs: no named parameters.
get_summaryHealth record summaryARead-only
Counts across the record: active, paused and stopped medicine; open, closed and future prescriptions; given, planned and overdue vaccinations. A cheap first call.
Inputs: no named parameters.
get_vaccinationVaccination detailsARead-only
One vaccination in full: diseases covered, vaccination programme, coverage, organisation, and whether a pharmacy or health record confirmed it.
Inputs: vaccination_id (required).
get_vaccinationsVaccinationsARead-only
Every registered vaccination, newest first: vaccine, date, who gave it and how long it covers. Use VaccinationIdentifier with get_vaccination for the diseases it protects against.
Inputs: no named parameters.
session_statusSession statusARead-only
Whether the sundhed.dk session is live, for how long, and how long the previous one lasted before sundhed.dk ended it.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have distinct purposes: session management vs. specific data retrievals. However, get_medication_card and get_medication_details could be confused, as could get_prescriptions and get_prescription, though the descriptions clarify the granularity difference.
Names follow a consistent verb_noun pattern: connect_, session_, disconnect_, get_medication_card, get_medication_details, get_lab_results, etc. The only minor inconsistency is 'session_status' (noun_verb instead of verb_noun), but it's a small deviation.
With 12 tools, the server is well-scoped for its purpose: managing a healthcare session and retrieving key record data. Each tool serves a distinct need, and the count is within the optimal 3-15 range.
The server covers session management and core read operations (summary, medication, lab results, vaccinations, referrals), but missing common operations like updating or stopping medications for chronic conditions. There is no tool to get full patient demographics or to handle pharmacy interactions beyond prescriptions, leaving some gaps.
Maintenance
Related MCP Connectors
Read patient-authorized EHR records: medications, labs, conditions, allergies. Consent-bounded.
Your own health records from Vora, Still, Stackwell and Joiva in your AI assistant (OAuth).
Your labs, wearables, DNA and notes as one health record your AI agent can read (OAuth 2.1).
FHIR R4 health records for AI: people connect their own record with consent; free FHIR sandbox.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to securely read and organize a patient's own health records from Epic MyChart via the FHIR API, including labs, documents, appointments, and attachments, using OAuth-based authorization.-
- AlicenseNot gradedqualityCmaintenanceEnables users to read their own Clalit Health Services records—including lab results, prescriptions, lab orders, visit and hospital summaries, and source PDFs—through an AI assistant over MCP or a CLI, with local browser-based sign-in and session keep-alive.MIT
- AlicenseBqualityBmaintenanceEnables AI assistants to read a user's own lab results, imaging reports, visit summaries, and upcoming appointments from the beWell patient portal, with local sign-in and read-only access.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover a configured FHIR R4 endpoint, search and page within a single trusted patient, read exact resources, and inspect retained results as FHIR-shaped JSON with provenance, coverage signals, and byte limits.Apache 2.0