Medicover
БесплатноНе проверенEnables AI agents to manage appointments on Medicover's Polish patient portal, including booking, rescheduling, and slot searching for patients and dependents.
Описание
Enables AI agents to manage appointments on Medicover's Polish patient portal, including booking, rescheduling, and slot searching for patients and dependents.
README
An MCP server that lets an AI agent manage appointments on
Medicover's Polish patient portal (https://online24.medicover.pl/). It talks directly to the
portal's private JSON API (reverse-engineered from real traffic — see
NOTES.md); it does not drive a browser at runtime.
It is built for an unattended daily routine: hunt for scarce slots and optionally rebook an existing appointment to an earlier one — including for linked dependents (e.g. children).
Tools
| Tool | Purpose |
|---|---|
list_patients |
The account holder + linked dependents, each with a stable patient_id (MRN). |
list_appointments |
A patient's planned/past appointments (read-only). |
search_slots |
Available slots by region + specialty (optionally doctor/clinic/language, date range, and slot-search type e.g. DiagnosticProcedure). Each slot reports its visit_type (Center/Phone/PhoneAdvice). |
book_appointment |
Book a slot for a patient — patient_id required. |
reschedule_appointment |
Move an appointment to another slot; "earlier-only" by default. |
list_appointment_filters |
Resolve specialty/doctor/clinic/region names → IDs from history. |
list_search_filters |
Clinics/doctors/languages bookable for a region + specialty. |
Patient-scoped read tools default to the account holder; the write tools require an
explicit patient_id so a booking can never land on the wrong person. Nothing else (messaging,
records, prescriptions, payments, cancel-without-rebook) is exposed.
Authentication (two-phase)
Login uses SMS 2FA, which can't be in an unattended hot path, so:
One-time bootstrap (interactive CLI, not a tool):
export MEDICOVER_USERNAME=<your-MRN-or-login> export MEDICOVER_PASSWORD=<your-password> # or omit to be prompted uv run medicover-auth login # prompts for the SMS codeThis completes OAuth + 2FA and saves the refresh token to a
0600file (default~/.config/medicover-mcp/credentials.json; override withMEDICOVER_STORE_PATH). Username/password are never stored.Unattended runtime: the MCP server loads the refresh token and silently refreshes the short-lived (~3 min) access token on every run. No password or SMS is ever needed during tool calls.
On expiry/revocation: tools fail with
session expired — run medicover-auth login; they never prompt for an SMS through a tool call.
Token-lifetime decision: the in-MCP
request_sms_code/submit_sms_codefallback is not shipped — see the reasoning in NOTES.md.
Helpers: uv run medicover-auth status (shows whether creds exist, no secrets) and
uv run medicover-auth logout (deletes them).
Setup
uv sync # create the venv and install
uv run medicover-auth login
uv run pytest # run the tests (no network — HTTP is mocked)
MCP client config
Add to your MCP client (e.g. Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"medicover": {
"command": "uv",
"args": ["--directory", "/abs/path/to/medicover", "run", "medicover-mcp"],
"env": {
"MEDICOVER_STORE_PATH": "/home/you/.config/medicover-mcp/credentials.json"
}
}
}
}
(Run medicover-auth login once on the same machine first so the credential store exists.)
Environment variables
| Var | Used by | Meaning |
|---|---|---|
MEDICOVER_USERNAME / MEDICOVER_PASSWORD |
bootstrap only | Login credentials (else prompted). |
MEDICOVER_STORE_PATH |
bootstrap + server | Credential file path (default ~/.config/medicover-mcp/credentials.json). |
MEDICOVER_TIMEOUT |
server | HTTP timeout seconds (default 30). |
Example agent flow (earlier-slot hunt for a child)
list_patients→ find the child'spatient_id.list_appointments(patient_id=child, state="Planned")→ note the appointment to improve and itsappointment_id/date.list_appointment_filters(patient_id=child)→ get the region id and specialty id.search_slots(patient_id=child, region_ids=[...], specialty_ids=[...], start_date="today").- If an earlier slot exists:
reschedule_appointment(patient_id=child, appointment_id=..., booking_string=<slot>, new_slot_date=<slot date>)(refuses unless strictly earlier).
Safety
Read-before-write on booking/reschedule (the portal validates the slot at action time); reschedule never cancels without rebooking and defaults to earlier-only; polite request pacing with backoff; tokens/credentials are never logged or returned; request/response bodies (which carry medical data) are not logged.
Disclaimer
Unofficial, built against an undocumented private API that may change without notice. Use with your own account and within Medicover's terms. Not affiliated with Medicover.
Установка Medicover
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/mattijskersten/medimcpFAQ
Medicover MCP бесплатный?
Да, Medicover MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Medicover?
Нет, Medicover работает без API-ключей и переменных окружения.
Medicover — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Medicover в Claude Desktop, Claude Code или Cursor?
Открой Medicover на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Medicover with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
