mcp-wl-vat
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., "@mcp-wl-vatCheck if bank account 61109010140000071219812874 is assigned to NIP 7740001454"
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.
mcp-wl-vat
MCP server dla polskiej białej listy podatników VAT (Wykaz Podatników VAT) przez
oficjalne, bezpłatne API Ministerstwa Finansów (wl-api.mf.gov.pl). Zero kluczy API.
Autor: Piotr Waśniowski, Legal Link.
Zbudowany dla Legal Link, w konwencji tego samego fleetu co mcp-saos / mcp-krs /
mcp-nsa / mcp-isap / mcp-eu-sparql (MateMatic) — ten sam kontrakt
structuredContent.citations, ten sam wzorzec kodów błędów, ten sam drift test.
Dlaczego własny, a nie istniejący nip-checker-mcp
Sprawdziliśmy istniejący projekt (solverio-pl/nip-checker-mcp) przed napisaniem tego.
Braki, które zdecydowały o budowie od zera:
brak rozróżnienia kodów błędów — awaria sieci, błędny NIP i wyczerpany dzienny limit zapytań MF wszystkie zwracały identyczny, generyczny komunikat,
brak jakiejkolwiek ochrony przed przekroczeniem dziennego limitu MF (100 zapytań/dzień metodą
search, do 5000 metodącheck) — po przekroczeniu MF blokuje cały adres IP do północy, co przy jednym IP biurowym oznacza blokadę dla całej kancelarii,brak wyszukiwania po REGON i po numerze konta,
zero testów.
Related MCP server: nip-checker-mcp
Tools
search_nip(nip, date?)— status VAT + dane podmiotu po NIP.search_regon(regon, date?)— jak wyżej, po REGON.search_bank_account(bank_account, date?)— jaki podmiot ma przypisany dany rachunek.check_nip_bank_account(nip, bank_account, date?)— TAK/NIE: czy dany rachunek jest przypisany do danego NIP. Wyższy dzienny limit (5000) niż metodasearch(100) — preferowany, gdy znasz oba identyfikatory.
Każda odpowiedź zawiera structuredContent.citations:
{ title, url, nip, regon, krs, status_vat, checked_date, request_id }.
Ochrona przed limitem dziennym
Ten serwer prowadzi lokalny licznik w pamięci procesu (nietrwały — restart = reset) i
sam odmawia wykonania zapytania (rate_limit_daily) z marginesem przed oficjalnym limitem
MF (90/100 dla search, 4800/5000 dla check). To siatka bezpieczeństwa, nie księgowość —
nie chroni przed przekroczeniem realnego limitu MF, jeśli kilka osób w biurze pyta
niezależnie z tego samego adresu IP.
Walidacja NIP/REGON/rachunku (z sumami kontrolnymi) odbywa się przed wysłaniem zapytania — literówka nie zużywa slotu z dziennego budżetu.
Potwierdzone empirycznie (2026-08-05, live test na produkcyjnym API)
WL-111 ("Nieprawidłowy numer konta bankowego") — realny kod błędu MF, zwracany gdy numer rachunku ma poprawną długość (26 cyfr) ale błędną sumę kontrolną NRB. Ten serwer nie liczy sam sumy kontrolnej NRB (mod 97 z formatowaniem liter PL) — poprawnie mapuje odpowiedź MF na kod
invalid_bank_account, ale samo zapytanie już zużywa slot z dziennego limitu (w przeciwieństwie do błędów wykrytych czysto lokalnie, np. zła długość czy zły NIP).search_nipna prawdziwym NIP (ORLEN, 7740001454) zwraca poprawne dane, zgodne co do NIP/REGON/KRS z tym, co zwracamcp-krs.
Wciąż niezweryfikowane
Dokładny format błędu MF przy przekroczeniu dziennego limitu zapytań (spodziewany kod
WL-191 wg wpisów na forach branżowych, nie potwierdzony na żywo — nikt jeszcze nie
uderzył w ten limit w testach). Detekcja (looksLikeDailyLimitError w src/format.ts)
działa na dopasowaniu frazy, nie sztywnego kodu. Jeśli kiedyś faktycznie zobaczysz ten
błąd w praktyce, sprawdź, czy wykrywanie zadziałało poprawnie — jeśli nie, popraw regex.
Build + run
npm install
npm run build
npm start # stdio transport
npm run drift # offline - spójność INSTRUCTIONS/TOOLS/ErrorCode
npm run test:offline # offline - walidacja sum kontrolnych, formatowanie
npm run smoke # LIVE - wl-api.mf.gov.pl, zużywa realny dzienny limitKonfiguracja Claude Desktop
{
"mcpServers": {
"wl-vat": {
"command": "node",
"args": ["<ścieżka>/mcp-wl-vat/dist/index.js"]
}
}
}Limity API (oficjalne, gov.pl, stan 01.01.2025)
Metoda
search: 100 zapytań/dzień z jednego IP, po max 30 podmiotów na zapytanie.Metoda
check: do 5000 podmiotów/dzień.Po przekroczeniu: blokada IP do północy — obejmuje też ludzką wyszukiwarkę na podatki.gov.pl.
Dokumentacja MF: https://www.gov.pl/web/kas/api-wykazu-podatnikow-vat
License
MIT.
Available Tools
4 toolscheck_nip_bank_accountARead-onlyIdempotent
Szybkie sprawdzenie TAK/NIE: czy KONKRETNY rachunek bankowy jest przypisany do KONKRETNEGO NIP-u. Metoda 'check' ma wyzszy dzienny limit (5000 vs 100) niz 'search' - preferuj ten tool nad search_bank_account, jesli znasz OBA identyfikatory (NIP i numer konta) i chcesz tylko potwierdzenia. Bledy: invalid_nip, invalid_bank_account, invalid_date, rate_limit_daily, upstream_error.
| Name | Required | Description | Default |
|---|---|---|---|
| nip | Yes | NIP (10 cyfr, myslniki opcjonalne). | |
| date | No | Data weryfikacji YYYY-MM-DD. Domyslnie dzisiaj. | |
| bank_account | Yes | Numer rachunku bankowego, 26 cyfr. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond annotations (readOnlyHint=true, idempotentHint=true), description adds error codes (invalid_nip, invalid_bank_account, etc.) and rate-limit context, plus clarifies it returns a binary TAK/NIE result.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with no fluff; the error list is compact and the usage guidance is integrated into a single clause.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple boolean check tool, the description covers the return nature ('TAK/NIE'), identifies the appropriate use case, lists potential errors, and leverages annotations for safety. No output schema exists, but the result type is implicit.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with descriptions for nip, bank_account, and date. The description does not add parameter-specific semantics 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.
Does the description clearly state what the tool does and how it differs from similar tools?
Description states 'Szybkie sprawdzenie TAK/NIE: czy KONKRETNY rachunek bankowy jest przypisany do KONKRETNEGO NIP-u', which clearly defines the check operation and distinguishes from sibling search_bank_account by explicitly positioning it as a confirmation check.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly says 'preferuj ten tool nad search_bank_account, jesli znasz OBA identyfikatory (NIP i numer konta) i chcesz tylko potwierdzenia' and mentions higher daily limit (5000 vs 100), giving clear context for selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_bank_accountARead-onlyIdempotent
Znajduje podmiot(y), do ktorych przypisany jest dany rachunek bankowy (26 cyfr, format NRB, bez 'PL' na poczatku). Przydatne, gdy masz numer konta z faktury i chcesz sprawdzic, czy zgadza sie z bialla lista PRZED przelewem (transakcje >15 000 zl na konto poza wykazem = brak KUP + odpowiedzialnosc solidarna VAT). Liczy sie do limitu metody search. Bledy: invalid_bank_account, invalid_date, not_found, rate_limit_daily, upstream_error.
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Data weryfikacji YYYY-MM-DD. Domyslnie dzisiaj. | |
| bank_account | Yes | Numer rachunku bankowego, 26 cyfr, bez spacji/myslnikow/prefiksu PL. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly and idempotent hints, but the description adds valuable behavior beyond that: it counts toward the 'search' method limit, lists specific error codes (invalid_bank_account, invalid_date, not_found), and explains the real-world tax/VAT consequences. This enriches the agent's understanding without contradicting annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and front-loaded with the primary purpose, followed by a practical use case, a rate-limit note, and error list. It contains relevant information without excessive fluff, though slightly longer than necessary. Efficient but not as tight as the two-sentence ideal.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite having no output schema, the description explains the search purpose, input format, rate-limit counting, and possible errors, providing a solid operational context. It does not detail the return structure or pagination, but given the tool's simplicity and strong annotations, it is sufficiently complete for an agent to invoke correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema covers 100% of parameters with clear descriptions (bank_account format, date default). The description's mention of '26 digits, NRB format, without PL' is nearly redundant with the schema's own parameter description. No additional semantics beyond what the schema already provides, so baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: 'Finds entity(ies) to which a given bank account is assigned' with specific format details. It distinguishes from sibling search tools by focusing on bank account numbers rather than NIP or REGON, making it unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides a strong usage context: 'Useful when you have an account number from an invoice and want to check if it matches the white list BEFORE transfer.' It also warns about the 'search' method limit, but it does not explicitly exclude alternatives like 'check_nip_bank_account' or 'search_nip', so it lacks explicit when-not-to-use guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_nipARead-onlyIdempotent
Sprawdza podmiot w Wykazie Podatnikow VAT (biala lista) po numerze NIP. Zwraca status VAT (czynny/zwolniony/niezarejestrowany), nazwe, REGON, KRS, adres, daty rejestracji/wykreslenia i zarejestrowane rachunki bankowe. Liczy sie do dziennego limitu metody search (100/dzien z jednego IP). Bledy: invalid_nip, invalid_date, not_found, rate_limit_daily, upstream_error.
| Name | Required | Description | Default |
|---|---|---|---|
| nip | Yes | NIP (10 cyfr, myslniki opcjonalne). | |
| date | No | Data weryfikacji YYYY-MM-DD. Domyslnie dzisiaj. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint, but the description adds valuable behavioral context beyond those hints: it discloses the daily rate limit for the `search` method, lists specific error codes (invalid_nip, invalid_date, not_found, rate_limit_daily, upstream_error), and explicitly describes the return fields. This is a strong disclosure of operational behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a compact four-sentence paragraph, front-loaded with the primary purpose. It then efficiently covers return data, rate limits, and error codes without redundant explanations. Every sentence earns its place, and the structure is clean.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is no output schema, so the description correctly compensates by listing the returned fields (VAT status, name, REGON, KRS, address, registration/deregistration dates, bank accounts). It also addresses rate limits and possible errors. For a simple tool with two parameters, this is complete and actionable.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already covers both parameters thoroughly: `nip` has format details (10 digits, optional hyphens) and `date` has format (YYYY-MM-DD) and default value (today). The description adds little parameter-specific meaning; it only reinforces that lookup is by NIP. With 100% schema coverage, the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Sprawdza' and clearly identifies the resource: 'podmiot w Wykazie Podatnikow VAT (biala lista) po numerze NIP'. It distinguishes itself from sibling tools like search_regon and search_bank_account by specifying NIP as the lookup key and enumerating the returned data (VAT status, name, REGON, KRS, address, dates, bank accounts).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly indicates when to use the tool: to verify a taxpayer in the VAT registry by NIP. It also provides practical usage context such as the daily limit (100/day per IP) and error codes. However, it does not explicitly mention alternative tools for REGON or bank account lookups, so it stops short of full when-not-to-use guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_regonARead-onlyIdempotent
Jak search_nip, ale wyszukiwanie po numerze REGON (9 lub 14 cyfr) - przydatne, gdy znasz REGON klienta/kontrahenta, a nie NIP. Liczy sie do tego samego dziennego limitu metody search. Bledy: invalid_regon, invalid_date, not_found, rate_limit_daily, upstream_error.
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Data weryfikacji YYYY-MM-DD. Domyslnie dzisiaj. | |
| regon | Yes | REGON (9 lub 14 cyfr). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint and idempotentHint, so the safety profile is known. The description adds behavioral context beyond annotations by mentioning the daily rate limit shared with the search method and enumerating possible errors (invalid_regon, invalid_date, not_found, rate_limit_daily, upstream_error). This enriches the agent's understanding of side effects and failure modes.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences long and efficiently structured: the first sentence states purpose and use case, the second adds rate limit and error information. No unnecessary words, and it is front-loaded with the essential purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple search tool with two parameters, the description covers purpose, when to use, rate limit, and errors. It references search_nip for analogy, which implies similar output structure. The absence of an explicit return format is mitigated by the reference to the sibling tool and the simplicity of the operation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100% for both parameters: 'regon' has a clear description with length constraints, and 'date' has a format and default value. The description reinforces the REGON length but does not add significant parameter semantics beyond the schema. Baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it searches by REGON (9 or 14 digits) and distinguishes it from the sibling tool search_nip by specifying the search key difference. The verb 'wyszukiwanie' (searching) is explicit and the resource is named.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explicitly states when to use this tool: when you know the client's/contractor's REGON rather than NIP, which directly contrasts with search_nip. It also mentions the shared daily rate limit with the search method, providing a concrete usage constraint.
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.
4 tool updates
v1.0.0- First observed
check_nip_bank_account - First observed
search_bank_account - First observed
search_nip - First observed
search_regon
TDQS
Scored across 4 tools
Each tool targets a distinct identifier or combination: REGON, NIP, bank account, or NIP+account pair. There is no overlap or ambiguity in their purposes.
Three tools follow the 'search_<identifier>' pattern, while the fourth uses 'check_<identifier1>_<identifier2>' to reflect its different validation action. The pattern is mostly consistent but with one justified deviation.
Four tools are well-scoped for the server's narrow domain of Polish VAT registry lookups, covering the primary search and validation operations without redundancy.
The tool set covers all core query types: searching by NIP, REGON, bank account, and verifying a NIP-account pair. No obvious gaps exist for the intended white-list verification workflows.
Maintenance
Related MCP Connectors
Verify Polish companies by NIP/KRS/REGON + EU VAT (VIES). 14 MCP tools (9 no-key).
EU VIES VAT-number validation MCP (European Commission).
MCP server for 3M+ Polish companies — KRS & CEIDG financials, ownership, and industry search.
MCP server for Hostinger API
Related MCP Servers
- AlicenseAqualityBmaintenanceOfficial MCP server: EU VAT validation via VIES, plus offline rates and format checks.5115 npm1MIT
- AlicenseAqualityDmaintenanceEnables real-time verification of Polish NIP (Tax Identification Numbers) using the official Ministry of Finance API. Also supports checking if a bank account belongs to a specific NIP.27 npmMIT
- AlicenseAqualityBmaintenanceMCP server for the Polish company register (KRS) via the official Ministry of Justice API — entities, boards and shareholders with verifiable citations.328 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for verifying Polish business entities from the National Court Register (KRS) and VAT White List. Allows querying by KRS, NIP, or REGON to retrieve official company data including name, address, board, and capital.Apache 2.0