Leki Mcp

io.github.ContentWritercoPublished by GitHub account ContentWritercov0.1.1Updated Oct 27, 2026

Polish medicines: refunded drug prices, patient co-payment and cheaper substitutes

VerifiedStreamable HTTPWeb executableLocation & LifestyleData & Analytics

Overview

AI-generated overview

Looks up official Polish refunded-medicine prices, patient co-payment, cheaper equivalents and register data for an AI assistant.

What you can do
  • Look up official pharmacy price, NFZ refund limit, refund level and patient co-payment for a medicine, plus cheaper equivalents with the cheapest price per tablet and free-for-seniors/children/pregnancy status
  • Search by brand name and strength, substance in Polish or Latin, pack size or EAN barcode, and get refunded alternatives when a drug is not refunded
  • Read Medicinal Products Register data: substance, strength, form, ATC code, marketing authorisation holder, prescription status, registered packs with EAN and leaflet/SmPC links
  • Check where the data comes from, how current it is and its caveats
When to use it
Useful when someone asks what a prescription medicine costs in Poland, whether it is refunded, whether a cheaper substitute exists, or whether a drug is OTC and where its leaflet is. It answers price and register questions only, not medical advice.
Requirements
Either the public remote endpoint (Streamable HTTP, no login) or a local run via npx, which needs Node.js. The local mode downloads roughly 20 MB of data on first use into a cache directory and refreshes daily; optional environment variables adjust the data directory, refresh interval, source URL, rate limit, stats and contact.
Before you install
Prices cover only refunded medicines; non-refunded and OTC prices are not given because they vary between pharmacies. Data is informational and not medical advice, and the server tells assistants not to recommend changing a medicine. Local mode fetches data from government sources over the network and can enable anonymous counters via an environment variable.

Installation

In SourceWeft

  1. Open Leki Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.ContentWriterco%2Fleki-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "leki": {
      "type": "http",
      "url": "https://leki.compabase.com/mcp"
    }
  }
}

README

leki-mcp 💊

Ile zapłacisz za lek na receptę i czy jest tańszy zamiennik – dla Twojego asystenta AI.
Serwer MCP z oficjalną listą leków refundowanych Ministra Zdrowia i Rejestrem Produktów Leczniczych. Działa w Claude, ChatGPT, Cursorze i każdym kliencie MCP.

[npm] [CI] [Licencja MIT] [Bez klucza API]

[Animacja: użytkownik pyta asystenta AI, ile płaci za lek Tulip 20 mg i czy jest coś tańszego; asystent korzysta z leki-mcp i podaje dopłatę 8,64 zł, tańszy odpowiednik za 2,49 zł, najtańsze opakowanie w przeliczeniu na tabletkę i wykres dopłat]

Prawdziwa odpowiedź publicznego serwera (wykaz leków refundowanych na 1 października 2026 r.).

Podłącz w 30 sekund

Adres MCP: https://leki.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 leki https://leki.compabase.com/mcp
  • Lokalnie (stdio): npx -y leki-mcp, np. w Claude Desktop:
json
{ "mcpServers": { "leki": { "command": "npx", "args": ["-y", "leki-mcp"] } } }

Co potrafi

NarzędzieDo czego
drug_priceUrzędowa cena w aptece, limit finansowania NFZ, poziom odpłatności (ryczałt, 30%, 50%, bezpłatny) i ile dopłacasz. Tańsze odpowiedniki – ta sama substancja, dawka i liczba sztuk – z różnicą w złotówkach, najtańsze opakowanie w przeliczeniu na tabletkę, wskazania objęte refundacją oraz czy lek jest bezpłatny dla 65+, dzieci do 18 lat i kobiet w ciąży. Szukaj po nazwie i dawce („Tulip 20 mg”), substancji – po polsku lub łacinie („atorwastatyna”, „atorvastatinum”), liczbie sztuk („30 szt”) albo kodzie EAN z opakowania. Gdy dany lek nie jest refundowany, podpowiada refundowane leki z tą samą substancją.
drug_infoDane z Rejestru Produktów Leczniczych: substancja, dawka, postać, kod ATC, podmiot odpowiedzialny, na receptę czy bez (OTC), opakowania z kodami EAN, linki do ulotki i charakterystyki produktu.
data_sourcesŹródła, data wykazu i zastrzeżenia.

Przykładowe pytania: „Ile zapłacę za Xarelto 20 mg i czy jest coś tańszego?”, „Najtańsza metformina 1000 mg na 60 tabletek”, „Czy Euthyrox 50 jest za darmo dla seniora?”, „Czy ibuprofen 400 jest bez recepty i gdzie jest ulotka?”.

Skąd dane

  • Wykaz leków refundowanych – obwieszczenie Ministra Zdrowia (załącznik .xlsx z gov.pl, zwykle co kwartał: 1 stycznia, kwietnia, lipca i października). Serwer sam znajduje najnowsze obwieszczenie i pobiera je codziennie. Używamy części A1–A3 (leki, środki spożywcze specjalnego przeznaczenia i wyroby medyczne w aptece) oraz list D1 (65+), D2 (do 18 lat) i E (kobiety w ciąży).
  • Rejestr Produktów Leczniczych (e-Zdrowie, rejestry.ezdrowie.gov.pl) – pełny eksport CSV, ok. 20 tys. leków stosowanych u ludzi.
  • Ceny leków refundowanych są urzędowe – takie same w każdej aptece. Cen leków nierefundowanych (w tym OTC) nie podajemy: są wolne i różnią się między aptekami.
  • Odpowiedniki to leki z tej samej grupy limitowej, z tą samą substancją, dawką i liczbą sztuk; farmaceuta ma obowiązek poinformować o tańszym odpowiedniku i wydać go na życzenie pacjenta, chyba że lekarz wpisał „NZ”.
  • To informacja, nie porada medyczna – zmianę leku skonsultuj z lekarzem lub farmaceutą.

Własny serwer

bash
npx -y leki-mcp --http --port 3000      # MCP: http://localhost:3000/mcpnpx -y leki-mcp price "Tulip 20 mg 30 szt"npx -y leki-mcp info "ibuprofen 400 mg"

Dane (~20 MB) pobierają się przy pierwszym użyciu do ~/.cache/leki-mcp i odświeżają raz na dobę. Zmienne: LEKI_DATA_DIR, LEKI_REFRESH_HOURS (24), LEKI_REFUND_XLSX_URL (bezpośredni link do załącznika), LEKI_RATE_LIMIT, LEKI_STATS=1 (anonimowe liczniki pod /stats), LEKI_CONTACT, LEKI_PUBLIC_URL.

Licencja

Kod: MIT. Dane: Ministerstwo Zdrowia (wykaz leków refundowanych), Urząd Rejestracji Produktów Leczniczych / Centrum e-Zdrowia (Rejestr Produktów Leczniczych) – dane przetworzone. Projekt niezależny, hostowany pro publico bono przez Compabase. Zobacz też rozkład-mcp (rozkłady jazdy) i ceny-nieruchomosci-mcp (ceny transakcyjne i działki).


English

[Animation: a user asks an AI assistant what they pay for Tulip 20 mg and whether there is something cheaper; the assistant uses leki-mcp and answers with the co-payment, a cheaper equivalent, the cheapest pack per tablet and a chart of co-payments]

leki-mcp gives AI assistants the official prices of refunded medicines in Poland: the pharmacy price, the NFZ refund limit, the refund level and what the patient pays, plus cheaper equivalents (same substance, strength and pack size), the cheapest pack per tablet and whether the drug is free for patients 65+, under 18 or pregnant. drug_info adds prescription status (Rx/OTC), registered packs and leaflet links from the Polish Medicinal Products Register. Public endpoint: https://leki.compabase.com/mcp (no key), or run locally with npx -y leki-mcp. Data: Minister of Health refund list (updated quarterly, fetched daily) and the Medicinal Products Register. Information only – not medical advice.

Source: README.md at commit 1a273e4

Tools

3

drug_price

Refunded drug price, co-payment and cheaper substitutes (Poland)

Official pharmacy price, NFZ refund limit, refund level and patient co-payment of a medicine on the Polish refund list, with cheaper equivalents (same substance, strength and pack size) and the cheapest price per tablet. Also tells if the pack is free for seniors 65+, children under 18 or pregnant women. query: brand + strength ("Tulip 20 mg"), substance ("atorwastatyna 20 mg" / "atorvastatinum"), pack size ("30 szt") or EAN/GTIN.

Parametersmaxqueryrequiredindication

drug_info

Medicine registration data (Poland)

Data from the Polish Medicinal Products Register: substance, strength, form, ATC, marketing authorisation holder, prescription status (OTC / Rp / Rpz / Rpw / Lz), registered packs with EAN and links to the patient leaflet and SmPC.

Parametersmaxqueryrequired

data_sources

Data sources

Where the data comes from, how current it is, caveats.

Takes no parameters.

Version history

1
  1. v0.1.1LatestOct 22, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts