Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Polish Open Data (unofficial)

by JacekSmiversion 1.10.0i★ 0iRuns on your computerRepository ↗
Registry nameio.github.JacekSmi/PolishOpenData

How to install

What it does

Polish registers: KRS, VAT, parcels, prices, GUS statistics, legal acts, Sejm, REGON/CEIDG.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Law & government data

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Polish Open Data (unofficial). Follow https://mcp.popnx.com/i/jaceksmi-polishopendata.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 15, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

No key, nothing to install · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Polish Open Data (unofficial) for Claude on this computer, in this order: 1) 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "polishopendata": { "command": "dnx", "args": [ "PolishOpenData.Mcp", "--yes" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Polish Open Data (unofficial) tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  2. Paste these settings and save the file

    {
      "mcpServers": {
        "polishopendata": {
          "command": "dnx",
          "args": [
            "PolishOpenData.Mcp",
            "--yes"
          ]
        }
      }
    }
  3. Quit Claude and open it again

  4. Try it

    Use Polish Open Data (unofficial) and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Polish Open Data (unofficial) or shows a Polish Open Data (unofficial) tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • POLISHOPENDATA_OFFLINE_DIR Folder for the prepared VAT whitelist flat-file indexes used by check_vat_bank_account_offline (a local disk, not a network share). Default: PolishOpenData/BialaListaOffline under the user's local ap…
  • POLISHOPENDATA_REGON_KEY Optional. Your own free GUS BIR key (regon_bir@stat.gov.pl); enables the lookup_regon tool. Stays on your machine.
  • POLISHOPENDATA_CEIDG_TOKEN Optional. Your own free CEIDG API token (a personal JWT from biznes.gov.pl, e-service 00_9999_00); enables the lookup_ceidg tool. Stays on your machine.
  • POLISHOPENDATA_BDL_CLIENT_ID Optional. Your own free GUS BDL API key (from the BDL registration); raises the rate limits of find_statistical_unit, search_statistics and get_statistics, which work without it.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Polish Open Data (unofficial) yet

Polish Open Data (unofficial) runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Polish Open Data (unofficial)

  • No key, nothing to install · Only the Claude desktop app (Windows or Mac), not the web or phone
  • No key, nothing to install
  • No key, nothing to install
  • No key, nothing to install

B · Others in Law & government data that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

No key, nothing to install

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Polish Open Data (unofficial) for Claude Code on this computer, in this order: 1) 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user polishopendata -- dnx PolishOpenData.Mcp --yes 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Polish Open Data (unofficial) tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  2. Paste this command and press Enter

    claude mcp add --scope user polishopendata -- dnx PolishOpenData.Mcp --yes
  3. Type /mcp in Claude Code

    You should see Polish Open Data (unofficial) listed as connected

  4. Try it

    Use Polish Open Data (unofficial) and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Polish Open Data (unofficial) or shows a Polish Open Data (unofficial) tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • POLISHOPENDATA_OFFLINE_DIR Folder for the prepared VAT whitelist flat-file indexes used by check_vat_bank_account_offline (a local disk, not a network share). Default: PolishOpenData/BialaListaOffline under the user's local ap…
  • POLISHOPENDATA_REGON_KEY Optional. Your own free GUS BIR key (regon_bir@stat.gov.pl); enables the lookup_regon tool. Stays on your machine.
  • POLISHOPENDATA_CEIDG_TOKEN Optional. Your own free CEIDG API token (a personal JWT from biznes.gov.pl, e-service 00_9999_00); enables the lookup_ceidg tool. Stays on your machine.
  • POLISHOPENDATA_BDL_CLIENT_ID Optional. Your own free GUS BDL API key (from the BDL registration); raises the rate limits of find_statistical_unit, search_statistics and get_statistics, which work without it.

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

No key, nothing to install

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Polish Open Data (unofficial) for Cursor on this computer, in this order: 1) 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "polishopendata": { "command": "dnx", "args": [ "PolishOpenData.Mcp", "--yes" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Polish Open Data (unofficial) tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  2. Open the AI chat in Cursor in Agent mode

  3. Try it

    Use Polish Open Data (unofficial) and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Polish Open Data (unofficial) or shows a Polish Open Data (unofficial) tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • POLISHOPENDATA_OFFLINE_DIR Folder for the prepared VAT whitelist flat-file indexes used by check_vat_bank_account_offline (a local disk, not a network share). Default: PolishOpenData/BialaListaOffline under the user's local ap…
  • POLISHOPENDATA_REGON_KEY Optional. Your own free GUS BIR key (regon_bir@stat.gov.pl); enables the lookup_regon tool. Stays on your machine.
  • POLISHOPENDATA_CEIDG_TOKEN Optional. Your own free CEIDG API token (a personal JWT from biznes.gov.pl, e-service 00_9999_00); enables the lookup_ceidg tool. Stays on your machine.
  • POLISHOPENDATA_BDL_CLIENT_ID Optional. Your own free GUS BDL API key (from the BDL registration); raises the rate limits of find_statistical_unit, search_statistics and get_statistics, which work without it.

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

No key, nothing to install

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Polish Open Data (unofficial) for VS Code on this computer, in this order: 1) 2) Use only this config (already checked by PopNx MCP): { "servers": { "polishopendata": { "type": "stdio", "command": "dnx", "args": [ "PolishOpenData.Mcp", "--yes" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Polish Open Data (unofficial) tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  2. Open the AI chat in VS Code in Agent mode

  3. Try it

    Use Polish Open Data (unofficial) and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Polish Open Data (unofficial) or shows a Polish Open Data (unofficial) tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • POLISHOPENDATA_OFFLINE_DIR Folder for the prepared VAT whitelist flat-file indexes used by check_vat_bank_account_offline (a local disk, not a network share). Default: PolishOpenData/BialaListaOffline under the user's local ap…
  • POLISHOPENDATA_REGON_KEY Optional. Your own free GUS BIR key (regon_bir@stat.gov.pl); enables the lookup_regon tool. Stays on your machine.
  • POLISHOPENDATA_CEIDG_TOKEN Optional. Your own free CEIDG API token (a personal JWT from biznes.gov.pl, e-service 00_9999_00); enables the lookup_ceidg tool. Stays on your machine.
  • POLISHOPENDATA_BDL_CLIENT_ID Optional. Your own free GUS BDL API key (from the BDL registration); raises the rate limits of find_statistical_unit, search_statistics and get_statistics, which work without it.

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Polish Open Data (unofficial)💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user polishopendata -- dnx PolishOpenData.Mcp --yes

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "polishopendata": {
      "command": "dnx",
      "args": [
        "PolishOpenData.Mcp",
        "--yes"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "polishopendata": {
      "command": "dnx",
      "args": [
        "PolishOpenData.Mcp",
        "--yes"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "polishopendata": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "PolishOpenData.Mcp",
        "--yes"
      ]
    }
  }
}

Values you fill in

  • POLISHOPENDATA_OFFLINE_DIR env
    Folder for the prepared VAT whitelist flat-file indexes used by check_vat_bank_account_offline (a local disk, not a network share). Default: PolishOpenData/BialaListaOffline under the user's local ap…
  • POLISHOPENDATA_REGON_KEY secret env
    Optional. Your own free GUS BIR key (regon_bir@stat.gov.pl); enables the lookup_regon tool. Stays on your machine.
  • POLISHOPENDATA_CEIDG_TOKEN secret env
    Optional. Your own free CEIDG API token (a personal JWT from biznes.gov.pl, e-service 00_9999_00); enables the lookup_ceidg tool. Stays on your machine.
  • POLISHOPENDATA_BDL_CLIENT_ID secret env
    Optional. Your own free GUS BDL API key (from the BDL registration); raises the rate limits of find_statistical_unit, search_statistics and get_statistics, which work without it.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
Not on npm/PyPI
Connection
Runs on your computer
Latest versioni
1.10.0
Published to registryi
Nov 15, 2026
Code last changedi
Nov 15, 2026
Maker
JacekSmi
Packages
nuget: PolishOpenData.Mcp
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account JacekSmi, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 4 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked: only npm and PyPI packages with a version can be checked

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/jaceksmi-polishopendata.svg)](https://mcp.popnx.com/en/servers/jaceksmi-polishopendata)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Law & government datai

  • More stars than 0% of the other 1948 servers in this category
  • Published to the registry more recently than 90% of the other 1948 servers in this category
  • Basic checks equal to or better than 99% of the other 1948 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Polish Open Data (unofficial) safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 4 days ago, and the latest version (1.10.0) reached the registry 4 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need .NET on your computer.

What can I use instead?

In the same category: Global law, Open Legal Data (Germany), LibreJustice, InfraNode, Fedlex Connector

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Global law

The law of nearly every country on earth, any date: read it, see what changed it, check citations.

by lexifinaWidely used★ 2.1KUpdated 9 days ago

Runs in the cloud✓ lexifina.com

LibreJustice

Search French-language and European case law and French legal texts (codes, statutes, treaties).

by librejusticeEarly★ 36Updated 2 months ago

Runs in the cloud✓ service owner · librejustice.fr

InfraNode

Keyless open data for 84 German cities: 12 lean read-only MCP tools covering 67 data types.

by street1983nkEarly★ 18Updated 5 months ago

Runs in the cloud✓ service owner · infranode.dev

Fedlex Connector

Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.

by JayTheSkierEarly★ 8Updated 7 months ago

Runs in the cloud✓ service owner · fedlex-connector.ch
Compared with similar ones
This one
Polish Open Data (unofficial)
Global lawOpen Legal Data (Germany)LibreJusticeInfraNodeFedlex Connector
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/44/44/4
LicenseMITNOASSERTIONMITApache-2.0Apache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

PolishOpenData

.NET libraries and an MCP server for Polish public registers — company lookup in KRS, the VAT whitelist (Biała Lista) with bank-account checks (online, or offline against the Ministry of Finance flat file), a client for the GUS REGON register (library only), cadastral parcel lookup (ULDK), address geocoding (UUG) and real estate transaction prices (RCN) from GUGiK, and offline validation of NIP, REGON, KRS, NRB and land-registry (KW) numbers.

🇵🇱 Polska wersja

Unofficial project. Not affiliated with the Ministry of Justice, the Ministry of Finance or any other public body. Results are informational, not legal or tax advice; the registers are the authoritative source.

Packages

PackageWhat it doesTargets
PolishOpenData.CoreOffline value types: Nip, Regon, KrsNumber, Nrb, KwNumber (+ official court-code table)net10.0, netstandard2.0
PolishOpenData.KrsKRS Open API: current/full extracts, removed entities, daily change feed, English summarynet10.0, netstandard2.0
PolishOpenData.BialaListaVAT whitelist: status, bank-account check with request ID, batches, daily-limit guardnet10.0, netstandard2.0
PolishOpenData.BialaLista.OfflineVAT whitelist checked offline against the Ministry of Finance daily flat file: no request limit, many pairs at once, no request IDnet10.0, netstandard2.0
PolishOpenData.RegonGUS REGON (BIR1.2): search by NIP/REGON/KRS, batches of 20, full reports, session and request limiter; needs your own free GUS keynet10.0, netstandard2.0
PolishOpenData.CeidgCEIDG v3 (register of sole traders): entries by NIP, REGON or id with status, dates, address and PKD; needs your own free API tokennet10.0, netstandard2.0
PolishOpenData.BdlGUS Bank Danych Lokalnych: find voivodeships, powiats and gminas, search indicators, read values by year (population, unemployment, budgets...); no key needednet10.0, netstandard2.0
PolishOpenData.EliPolish legal acts (Sejm ELI API): find acts in Dziennik Ustaw and Monitor Polski, status, consolidated texts and amendments, one article as plain text with provenance; no key needednet10.0, netstandard2.0
PolishOpenData.SejmSejm parliament API: legislative processes and prints with the resulting act (ELI id), votings with the result per club, clubs and committees; individual votes and members only on request; no key needednet10.0, netstandard2.0
PolishOpenData.Geo.CoreTyped Polish coordinates: Pl1992Point (EPSG:2180) and Wgs84Point with a built-in conversion, Pl1992Bbox, ParcelId (TERYT parcel identifier)net10.0, netstandard2.0
PolishOpenData.UldkGUGiK ULDK: cadastral parcel by ID, by point or by region name and number, with its boundary as WKTnet10.0, netstandard2.0
PolishOpenData.Geo.NtsOptional NetTopologySuite adapter: ParcelGeometry.ToNtsGeometry() and ToNtsPoint() for area, intersection, buffer and distance on parcelsnet10.0, netstandard2.0
PolishOpenData.UugGUGiK UUG: geocode a Polish address to a WGS-84 point with a match accuracy, or find the nearest address to a pointnet10.0, netstandard2.0
PolishOpenData.RcnGUGiK RCN (Rejestr Cen Nieruchomości): real estate transactions (premises, parcels, buildings) in an area and period, with price per m² statisticsnet10.0, netstandard2.0
PolishOpenData.McpMCP server for AI assistants: company lookup, VAT whitelist and bank-account check (online and offline), KRS extracts, parcels, address geocoding and property prices, identifier validation.NET 10 tool

Offline validation

No network, no DI:

dotnet add package PolishOpenData.Core
using PolishOpenData;

Console.WriteLine(Nip.TryParse("774-000-14-54", out var nip) ? $"Valid NIP {nip}" : "Invalid NIP"); // Valid NIP 7740001454 Console.WriteLine(KwNumber.TryParse("WA1M/00012345/1", out var kw) ? kw.Court?.Name : "Invalid KW number"); // Sąd Rejonowy dla Warszawy-Mokotowa … Console.WriteLine(string.Join(", ", KwNumber.SuggestCorrections("WAIM/00012345/1"))); // WA1M/00012345/1

Quick start: check a counterparty

dotnet add package PolishOpenData.BialaLista

dotnet add package PolishOpenData.Krs dotnet add package Microsoft.Extensions.Http.Resilience

using Microsoft.Extensions.DependencyInjection;

using PolishOpenData; using PolishOpenData.BialaLista; using PolishOpenData.Krs; using System.Threading.Tasks;

var services = new ServiceCollection(); services.AddBialaListaClient(o => o.TrackQuota = true) .AddStandardResilienceHandler(o => o.Retry.ShouldHandle = _ => new ValueTask (false)); services.AddKrsClient().AddStandardResilienceHandler(); using var provider = services.BuildServiceProvider();

var vat = provider.GetRequiredService (); var nip = Nip.Parse("774-000-14-54");

var result = await vat.FindByNipAsync(nip); Console.WriteLine($"{result.Value?.Name}: {result.Value?.VatStatus} (request {result.RequestId})");

var check = await vat.CheckBankAccountAsync(nip, Nrb.Parse("06 1600 1127 1843 9838 2000 0034")); Console.WriteLine(check.Value ? "Account is on the whitelist" : "Account is NOT on the whitelist");

var krs = provider.GetRequiredService (); var extract = await krs.GetCurrentExtractAsync(result.Value!.Krs!.Value); Console.WriteLine(extract.Extract?.ToSummary().ShareCapital);

Retries are off for Biała Lista: every retry the resilience handler would make is another upstream request that the quota guard above cannot count, and once the daily limit is reached Biała Lista blocks the whole IP address — not just this process — until midnight. Register AddBialaListaClient once per process and reuse the resulting client (or pass one shared BialaListaQuotaTracker explicitly); a client created without DI and without a shared tracker gets its own private tracker that does not see requests made by other instances.

A runnable version is in samples/CheckCounterparty.

Keep `RequestId`. Every BialaListaResult carries the request identifier and time returned by Biała Lista (RequestId, RequestDateTime); keep them with your payment records to document when you checked the whitelist and what it answered.

Source-generated JSON. The KRS models use public converters from PolishOpenData.Krs.Serialization (KrsDateJsonConverter, KrsTimestampJsonConverter), so on .NET 8 or later you can add KrsCurrentExtract or KrsFullExtract to your own JsonSerializerContext (for example to cache extracts) without registering any converter. If you parse raw KRS API responses yourself instead of calling IKrsClient, note two things: the extract is wrapped in an odpis object, so deserialize that inner object; and the registry's field names (such as dataRejestracjiWKRS) match the properties only case-insensitively, so use JsonSerializerDefaults.Web — [JsonSourceGenerationOptions(JsonSerializerDefaults.Web)] on your context, or new JsonSerializerOptions(JsonSerializerDefaults.Web) with the reflection-based serializer on .NET Framework. Otherwise the properties stay null without an error.

Quick start: look up an entity in the GUS REGON register

PolishOpenData.Regon is a client for GUS's BIR1.2 web service: search by NIP, REGON or KRS number, batches of up to 20 identifiers, and the full reports of legal persons, sole traders and local units. It needs a key of your own (free: write to regon_bir@stat.gov.pl); GUS's public test environment works without a key but serves an old, anonymised copy of the register.

dotnet add package PolishOpenData.Regon
using Microsoft.Extensions.DependencyInjection;

using PolishOpenData; using PolishOpenData.Bir; using System.Linq;

var services = new ServiceCollection(); services.AddRegonClient(o => o.UserKey = Environment.GetEnvironmentVariable("MY_APP_REGON_KEY")); // your key, from your own configuration // GUS's public test environment needs no key: services.AddRegonClient(o => o.Environment = RegonEnvironment.Test); using var provider = services.BuildServiceProvider(); var regon = provider.GetRequiredService ();

var found = await regon.FindByNipAsync(Nip.Parse("526-104-08-28")); var entity = found.Value[0]; Console.WriteLine($"{entity.Name}, {entity.Address.City} (REGON {entity.Regon})");

var details = (await regon.GetDetailsAsync(entity, RegonInclude.Pkd)).Value[0]; Console.WriteLine($"{details.LegalFormName}; main PKD {details.Pkd!.First(p => p.IsPrimary).Code}"); Console.WriteLine($"Source: GUS REGON ({found.Environment}), retrieved {found.RetrievedAt:u}");

await regon.LogoutAsync();

The client limits itself to GUS's strictest window by default (3 calls per second, 120 per minute, 6,000 per hour; a batch of up to 20 identifiers is one call for the per-second limit, while the per-minute and per-hour limits count requests and identifiers: each identifier of a search counts one, and so does every other request — login, report, GetDataDateAsync, logout) and keeps one login session. A batch method checks its whole batch before the first request and throws QuotaExceededException without sending anything when it does not fit into what is left of the minute or hour window: under the default window one call carries at most 119 distinct identifiers (120 when the session is already logged in, fewer when other calls used the last minute). Whether GUS also counts every identifier of a batch toward its own per-second limit is not confirmed; if you send many batches, use smaller ones or space them out. Register AddRegonClient once per process and reuse the client: GUS counts requests per application instance, and a session works only from the IP address that created it. Call LogoutAsync when your process stops; the client never does it by itself. A client created without DI gets a private session and limiter.

Retries stay off for REGON, as for Biała Lista: a retry made by a resilience handler is another GUS request that the request limiter cannot count, and a SOAP fault, which means your request was wrong, arrives as HTTP 500 and would be retried. If you add AddStandardResilienceHandler, switch its retries off as in the Biała Lista example above.

Keys and the test environment. The library is bring-your-own-key: it ships no production key, never reads environment variables and never logs or prints your key. GUS's technical manual (section 3.6.3) calls it unacceptable for software to make ever

Only the beginning is shown; read the rest in the repo