Connector guide5-minute read3 MCP tools7 languages

Connect KRS to Gemini CLI via MCP: Company Extracts

Polish National Court Register (KRS) open API from the Ministry of Justice, no API key: current and full extracts of companies, foundations and associations by KRS number (identity, capital, management board, activities, filed accounts, liquidation and bankruptcy), and the daily list of changed entities.

HCBy HelpCode teamUpdated 5 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

KRS Poland Court Register

KRS Poland Court Register

Polish National Court Register (KRS) open API from the Ministry of Justice, no API key: current and full extracts of companies, foundations and associations by KRS number (identity, capital, management board, activities, filed accounts, liquidation and bankruptcy), and the daily list of changed entities.

tools

3

Region

PL

Category

Government

Authentication

Public API

Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Polish National Court Register (KRS) open API from the Ministry of Justice, no API key: current and full extracts of companies, foundations and associations by KRS number (identity, capital, management board, activities, filed accounts, liquidation and bankruptcy), and the daily list of changed entities.

Guided setup

Connect KRS Poland Court Register to Gemini in 2 minutes

Start a free trial on AnythingMCP Cloud, connect KRS Poland Court Register in the guided setup, then add your MCP URL to Gemini. No code and no server to run.

No credit card · 7-day trial · Self-host alternative available

Try asking

Example prompts for KRS Poland Court Register

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

KRS Poland Court Register · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → KRS Poland Court Register, install it with no key, mint an MCP API key and you're done. No Docker, no git clone, no local server.

KRS Poland Court Register + Gemini

Polish National Court Register (KRS) open API from the Ministry of Justice, no API key: current and full extracts of companies, foundations and associations by KRS number (identity, capital, management board, activities, filed accounts, liquidation and bankruptcy), and the daily list of changed entities.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

(none: public data, no API key)

Step 1 — Set up the connector

Public data, no key: setup takes under a minute. The connector reads the open API of the Polish Ministry of Justice for the National Court Register (KRS, Krajowy Rejestr Sądowy): current and full extracts of every registered company, partnership, co-operative, foundation and association, plus the daily list of changed entities. No account, API key or sign-in is needed.

  1. In the connector store, pick KRS Poland Court Register and install it. There is nothing to paste and no Authorize with Provider step.
  2. Check it with krs_get_current_extract and the KRS number 0000019193 (PKP S.A.): it returns the company's name, legal form, address, capital and management board.

Cloud and self-hosted work the same way: there is nothing to configure in either.

Identifiers: the KRS number has 10 digits (0000019193); the API also accepts it without leading zeros. The extract carries the company's REGON (statistical number, 9 or 14 digits) and NIP (tax ID, 10 digits); the Polish EU VAT number is PL plus the NIP.

No search by name: the KRS API cannot search by name, NIP or REGON. Get the KRS number first: from the user, an invoice, the company's website, or the government search at wyszukiwarka-krs.ms.gov.pl.

Where to start: krs_get_current_extract gives the present state of a company. krs_get_full_extract answers questions about history, such as who was on the board in 2020, former names or capital increases: every value comes as a list of versions with the entry that introduced it and the entry that removed it. krs_list_changed_entities lists the KRS numbers with an entry published on a given day (YYYY-MM-DD), so the AI can then read the extracts you care about. Both extract tools take an optional register: P for entrepreneurs, S for associations and foundations; leave it out to let the API pick.

What it reads: section 1 identity (name, legal form such as sp. z o.o. or S.A., seat and address, website, share capital, shareholders of a sp. z o.o.), section 2 representation (management board and how it signs, supervisory board, proxies), section 3 business activities as PKD codes and the filings (annual financial statements, auditor opinions, approval resolutions), section 4 registered arrears and enforcement, section 5 curators and section 6 liquidation, bankruptcy, restructuring, mergers and transformations. An empty section 6 means none of these is registered.

People's names are masked: the open API masks the names and PESEL numbers of natural persons. Board members, proxies and shareholders show as, for example, K******* with only the first letter; legal persons are shown in full. Full names of people are only on the official extract from ekrs.ms.gov.pl, and the AI says so instead of guessing a name.

Read-only: every tool only reads, so there is nothing to confirm and no tool is switched off at install.

Limits: the full extract of a large company can be several hundred kilobytes. The API publishes no rate limit; keep calls reasonable. The financial statement documents themselves are only in the separate eKRS repository (Repozytorium Dokumentów Finansowych), not in this API: the extract only records that they were filed. An extract from this API is informational; an official extract with legal force is downloaded from ekrs.ms.gov.pl.

Common errors: 404 (Not Found) means the KRS number is unknown, or the register value is wrong for that entity: try again without register.

The connector does not file anything with the court register and does not issue official extracts.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Gemini

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Gemini CLI reads MCP servers from ~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json). Add:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of YOUR_MCP_API_KEY.
  2. Save the file and restart gemini.
  3. Run /mcp inside Gemini CLI (or gemini mcp list in your shell) — anythingmcp should show as connected.
  4. Start prompting — Gemini CLI can now call the KRS Poland Court Register tools.

Available tools

ToolWhat it does
krs_get_current_extractGet the current extract (odpis aktualny) of an entity from the Polish National Court Register (KRS) by KRS number, as JSON: header…
krs_get_full_extractGet the full extract (odpis pełny) of an entity from KRS by KRS number: the same six sections as the current extract but with the complete…
krs_list_changed_entitiesList the KRS numbers of entities that had an entry published in the KRS on a given day (the daily bulletin, biuletyn): a JSON array of KRS…

Example prompts

  • "Read the current KRS extract for 0000019193 and give me the legal form, address, share capital and how the management board signs."
  • "From the full extract of 0000019193, how did the share capital change over time, and when?"
  • "Is any liquidation, bankruptcy or restructuring registered for KRS 0000019193?"
  • "Which annual financial statements has this company filed, and for which periods?"
  • "Which of these KRS numbers had an entry published on 2026-11-06?"

FAQ

Why are board members' names shown with asterisks? The open KRS API masks the names of natural persons and shows only the first letter. Companies and other legal persons are shown in full. Full names are on the official extract from ekrs.ms.gov.pl.

Can I search for a company by name or NIP? Not with this API: it only reads by KRS number. Find the KRS number first, for example on an invoice or at wyszukiwarka-krs.ms.gov.pl.

Where does Gemini CLI look for MCP servers? In ~/.gemini/settings.json for your user, or in .gemini/settings.json inside a project. gemini mcp list shows each server and whether it connects.

Next steps

Was this guide helpful?

Connect KRS Poland Court Register to Gemini in 2 minutes

Start a free trial on AnythingMCP Cloud, connect KRS Poland Court Register in the guided setup, then add your MCP URL to Gemini. No code and no server to run.

Related guides

Connectors

Connect KRS to ChatGPT via MCP: Company Extracts

Polish National Court Register (KRS) open API from the Ministry of Justice, no API key: current and full extracts of companies, foundations and associations by KRS number (identity, capital, management board, activities, filed accounts, liquidation and bankruptcy), and the daily list of changed entities.

Connectors

Connect KRS to Claude via MCP: Company Extracts

Polish National Court Register (KRS) open API from the Ministry of Justice, no API key: current and full extracts of companies, foundations and associations by KRS number (identity, capital, management board, activities, filed accounts, liquidation and bankruptcy), and the daily list of changed entities.

Connectors

Connect KRS to Microsoft Copilot via MCP

Polish National Court Register (KRS) open API from the Ministry of Justice, no API key: current and full extracts of companies, foundations and associations by KRS number (identity, capital, management board, activities, filed accounts, liquidation and bankruptcy), and the daily list of changed entities.

Connectors

Connect KRS to Cursor via MCP: Register Extracts

Polish National Court Register (KRS) open API from the Ministry of Justice, no API key: current and full extracts of companies, foundations and associations by KRS number (identity, capital, management board, activities, filed accounts, liquidation and bankruptcy), and the daily list of changed entities.

Connectors

Connect KRS to Meta Muse via MCP: Register Extracts

Polish National Court Register (KRS) open API from the Ministry of Justice, no API key: current and full extracts of companies, foundations and associations by KRS number (identity, capital, management board, activities, filed accounts, liquidation and bankruptcy), and the daily list of changed entities.

Connectors

KRS MCP Server: Company Extracts and Register Changes

Polish National Court Register (KRS) open API from the Ministry of Justice, no API key: current and full extracts of companies, foundations and associations by KRS number (identity, capital, management board, activities, filed accounts, liquidation and bankruptcy), and the daily list of changed entities.