kolejki-nfz-mcp
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., "@kolejki-nfz-mcp Gdzie najszybciej dostanę się do okulisty na NFZ w Poznaniu?"
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.
Podłącz w 30 sekund
Adres MCP: https://kolejki.compabase.com/mcp (Streamable HTTP, bez logowania).
Claude: Ustawienia → Connectors → Add custom connector → wklej adres.
ChatGPT: Settings → Connectors (tryb deweloperski) → dodaj serwer MCP.
Claude Code:
claude mcp add --transport http kolejki-nfz https://kolejki.compabase.com/mcpLokalnie (stdio):
npx -y kolejki-nfz-mcp, np. w Claude Desktop:
{ "mcpServers": { "kolejki-nfz": { "command": "npx", "args": ["-y", "kolejki-nfz-mcp"] } } }Related MCP server: atlas-przetargow-mcp-py
Co potrafi
Narzędzie | Do czego |
| Dla specjalności, badania albo zabiegu (zwykłymi słowami: „okulista”, „ortopeda”, „rezonans magnetyczny”, „zaćma”, „endoprotezoplastyka biodra”) i miejsca (miejscowość, adres, „lat,lon”): poradnie i szpitale z umową z NFZ w okolicy, posortowane według prognozowanego czasu oczekiwania NFZ (albo odległości), z liczbą oczekujących, średnim czasem czekania, adresem, telefonem, odległością, udogodnieniami (winda, podjazd, parking…) i informacją, czy przyjmują dzieci. Przypadek stabilny albo pilny; poradnia albo oddział szpitalny. |
| Oficjalne nazwy świadczeń NFZ pasujące do słowa – gdy trzeba wskazać dokładne świadczenie. |
| Źródła i zastrzeżenia. |
Przykładowe pytania: „Gdzie najszybciej do endokrynologa na NFZ koło Lublina?”, „Rezonans magnetyczny na NFZ w Gdańsku – gdzie najkrótsza kolejka?”, „Ortopeda dla dziecka w Krakowie, najbliżej Nowej Huty”, „Mam skierowanie pilne do neurologa, mieszkam w Pile – dokąd?”, „Gdzie operacja zaćmy najszybciej w woj. śląskim?”.
Skąd dane
Kolejki: Narodowy Fundusz Zdrowia – API „Terminy leczenia” 1.4 (
https://apinfz.nfz.gov.pl/app-itl-api-pcus/): listy oczekujących zgłaszane przez placówki z umową z NFZ, z prognozowanym czasem uzyskania świadczenia liczonym przez NFZ. Odpowiedzi trzymamy w pamięci podręcznej (6 h) i odpytujemy API powoli, żeby go nie obciążać.Lokalizacja: GUGiK (państwowy rejestr adresów i granic gmin). Odległość w linii prostej – w miastach do adresu placówki, w mniejszych miejscowościach do ich centrum.
Zastrzeżenia: prognoza to szacunek NFZ, nie rezerwacja – na wizytę zapisuje się telefonicznie lub osobiście w placówce. Nie wszystkie świadczenia mają listy oczekujących w tym API (np. zwykłe porady kardiologiczne). Szukamy w województwie wskazanego miejsca. Serwer nie jest usługą NFZ i nie udziela porad medycznych; w nagłym przypadku – 112.
Własny serwer
npx -y kolejki-nfz-mcp --http --port 3000 # MCP: http://localhost:3000/mcp
npx -y kolejki-nfz-mcp find okulista "Poznań"
npx -y kolejki-nfz-mcp find "rezonans magnetyczny" "Gdańsk, Długa 1" --sort distance
npx -y kolejki-nfz-mcp benefits zaćmZmienne: KOLEJKI_CACHE_HOURS, KOLEJKI_CACHE_DIR, KOLEJKI_RATE_LIMIT, KOLEJKI_STATS=1 (anonimowe liczniki pod /stats), KOLEJKI_CONTACT, KOLEJKI_PUBLIC_URL.
Licencja
Kod: MIT. Dane: Narodowy Fundusz Zdrowia (dane publiczne, API „Terminy leczenia”), GUGiK – dane przetworzone. Projekt niezależny, niezwiązany z NFZ, hostowany pro publico bono przez Compabase. Zobacz też leki-mcp, powietrze-mcp, szkoly-mcp, rozklad-mcp i ceny-nieruchomosci-mcp.
English
kolejki-nfz-mcp gives AI assistants NFZ waiting times in Poland: for a specialist visit, diagnostic test or procedure (in everyday Polish words) near a place, it lists clinics and hospitals with an NFZ contract sorted by NFZ's forecast waiting time, with the number of people waiting, address, phone, distance, accessibility and whether children are seen. Stable or urgent cases. Data: NFZ "Terminy leczenia" API (public data). Public endpoint: https://kolejki.compabase.com/mcp (no key), or run locally with npx -y kolejki-nfz-mcp. Not affiliated with NFZ; the forecast is not a booking.
Available Tools
3 toolsdata_sourcesData sourcesCRead-onlyInspect
Where the data comes from and caveats.
Inputs: no named parameters.
find_benefitsNFZ benefit namesARead-onlyInspect
Look up official NFZ benefit names (clinics, wards, tests, procedures) matching a word, e.g. 'rezonans' or 'okulist'. Use the exact name as find_care.benefit.
Inputs: query (required).
find_careShortest NFZ waiting times near a placeARead-onlyInspect
Where a specialist, diagnostic test or treatment paid by NFZ is available soonest near a place in Poland. Returns clinics and hospitals with NFZ's forecast waiting time, people in the queue, address, phone, distance, accessibility and whether children are seen. service: everyday words (okulista, kardiolog, rezonans, zaćma, rehabilitacja…) or an exact NFZ benefit name from find_benefits. place: town, address or 'lat,lon'.
Inputs: place (required), service (required), max, sort, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
find_care and find_benefits both accept everyday service words like 'rezonans' or 'okulista', which could cause an agent to pick the wrong one on first pass. However, the descriptions make the intended two-step flow explicit (resolve name with find_benefits, then query with find_care.benefit), and data_sources is clearly separate.
find_care and find_benefits follow a clean verb_noun pattern, while data_sources is a noun phrase. The deviation is minor and the names remain readable and predictable.
Three tools is lean but well-matched to a narrow domain: one resolver, one search, one provenance/caveats tool. Nothing feels redundant, though data_sources borders on being documentation rather than an operational tool.
The core workflow — resolving an NFZ benefit name and finding the soonest available provider with wait times, distance and accessibility — is fully covered. Minor gaps exist, such as no tool for retrieving full details of a single clinic or browsing benefits by category/location without a search term.
Related MCP Connectors
Pay-per-call US healthcare data: hospital financials, prices, quality, exclusions, wages.
Discover, inspect and run 63,000+ agent tools from one balance. Pay per call, no subscriptions.
Access CQC care ratings, NHS health services, and food hygiene data across the UK
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables querying the Polish National Health Fund (NFZ) public API for medical waiting lists and service dictionary, allowing AI to compare wait times and find providers.33MIT
- FlicenseAqualityDmaintenanceEnables searching and analyzing Polish public procurement tenders from BZP and TED, including filtering, tender details and timelines, offers and contract values, buyer/contractor profiles, CPV code lookup, and regional statistics, with optional AI-summary endpoints.121-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search and retrieve Poland's official public procurement notices from the e-Zamówienia/BZP bulletin without any API key, covering the latest published contract notices as well as filtering by keyword, CPV code, date range, or contracting authority.85 npmMIT
- AlicenseAqualityCmaintenanceEnables AI assistants to look up official Polish refunded-medicine prices, NFZ refund limits, patient co-payments and cheaper equivalents with the same substance, strength and pack size, plus prescription status, registered packs and leaflet links from the Medicinal Products Register. Searches work by brand and dose, substance name in Polish or Latin, pack size or EAN code, and indicate free-of-charge eligibility for patients 65+, under 18 and pregnant.374 npmMIT