Purpose: This project is an MCP (Model Context Protocol) server that wraps the Polish National Court Register (KRS) public API, enabling MCP-capable LLM clients (such as LM Studio) to call KRS data tools.
Main capabilities: The server provides the following read-only tools: get-krs-current-extract returns the entity's current extract (odpis aktualny) as JSON; get-krs-full-extract returns the full extract (odpis pełny), including current data and the complete register history, and is also suitable for deregistered entities; check-krs-status checks whether an entity still exists and returns a brief risk-signal summary, including liquidation, bankruptcy, restructuring, suspension of activity, dissolution, arrears and enforcement, asset security, dismissed bankruptcy petitions, court-appointed administrators, missing management board, overdue annual financial statements, tax office revocation or NIP cancellation due to a false address, removal from the register, etc.; get-krs-entity-profile returns a condensed entity profile, including NIP/REGON and NIP status, registered office and address, contact and electronic service addresses, share capital, representation rules, supervisory board, shareholders (companies named, natural persons not named), PKD codes, association purposes and public benefit status, branches, and a one-line status assessment, without returning personal data; get-krs-entry-history generates a condensed register entry history based on the full extract, listing by default in newest-first order the date, description, case number, and changed fields, filterable with odDaty and limit (default 20, maximum 100), and numerWpisu can also be used to view the content introduced, deleted, and changed by a single entry; check-krs-watchlist accepts up to 50 KRS numbers and a single day or a date range of up to 31 days, determines based on the daily KRS gazette which entities had register entries during that period, and returns the gazette dates, most recent register entries, and status assessment; weryfikacja-kontrahenta guides the model through the entity profile, status check, and register entries from the last 12 months to generate a green/yellow/red assessment report and answer who can sign contracts on behalf of the entity.
Usage: Requires Node.js 18 or newer (22 and 24 tested in CI). Start the server via npx and configure its server process launch in the LLM client. KRS API Responses are cached in memory for 10 minutes (up to the most recent 50 requests). The cache duration can be adjusted via the environment variable KRS_CACHE_TTL_SECONDS; set it to 0 to disable caching. Development environment steps: clone the repository, npm install, npm run build, npm start.
Use cases: company information lookup, counterparty due diligence, risk signal monitoring, batch watchlist checks, register history tracing, etc.
Limitations: All tools are read-only; analysis tools do not return personal data of natural persons (the KRS API masks names and PESEL, but does not mask, for example, dates of birth); full extracts of large companies are very long, for example, ORLEN S.A. (KRS 0000028860) has a single-line JSON of about 212,000 characters, of which part 2 is about 86,000 characters; the watchlist accepts up to 50 KRS numbers and a date range of up to 31 days. The project uses the MIT license.