npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@matematicsolutions/mcp-krs

v1.1.1

Published

MCP server - Polish KRS registry (Krajowy Rejestr Sadowy) via official MS API

Readme

mcp-krs

MCP License: MIT Node

MCP server dla Krajowego Rejestru Sądowego przez oficjalne, darmowe API Ministerstwa Sprawiedliwości (api-krs.ms.gov.pl/api/krs).

Po co

Kancelaria pyta o kontrahenta → Patron zwraca pełne dane rejestrowe: nazwa, forma prawna, NIP, REGON, adres, kapitał, skład zarządu, sposób reprezentacji, prokurenci, główny PKD, status (aktywny / likwidacja / upadłość). Plus URL do wyszukiwarki MS.

Krytyczne dla pracy nad umowami: pytanie „czy ta osoba może sama podpisać tę umowę za spółkę X" sprowadza się do dwóch ruchówkrs__get_board z numerem KRS, potem porównanie sposobu reprezentacji ze stroną podpisującą.

Tooly

  • get_entity(krs, rejestr?) — odpis aktualny (pełne dane podmiotu).
  • get_entity_full(krs, rejestr?) — odpis pełny (z historią wpisów).
  • get_board(krs, rejestr?) — skrócona: tylko reprezentacja (sposób + skład) + prokurenci.

Parametry:

  • krs — 1-10 cyfr, zera wiodące dopełniane automatycznie (288600000028860).
  • rejestrP (przedsiębiorców, default) lub S (stowarzyszeń).

Każda zwrotka zawiera structuredContent.citations z polami: title, url (MS wyszukiwarka), krs, nazwa, nip, regon, forma_prawna, status, miejscowosc, sad_rejestrowy, rejestr.

Patron czyta pole automatycznie i wystawia w panelu UI jako sekcję „Krajowy Rejestr Sądowy (KRS — MS)".

Stack

  • Node 18+ (wbudowany fetch)
  • @modelcontextprotocol/sdk
  • Stdio transport
  • Throttle 500 ms (2 req/s) — MS API tolerancyjne ale grzecznie

Build + uruchomienie

npm install
npm run build
node dist/index.js

Wpięcie do Patrona

W patron/backend/mcp-servers.json:

{
  "name": "krs",
  "transport": "stdio",
  "command": "node",
  "args": ["C:/Users/<TWOJ-UZYTKOWNIK>/mcp-krs/dist/index.js"],
  "enabled": true
}

Smoke test

echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"s","version":"0"}}}
{"jsonrpc":"2.0","method":"notifications/initialized"}
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_board","arguments":{"krs":"28860"}}}' \
  | node dist/index.js

Powinno zwrócić ORLEN SA, sposób reprezentacji „dwaj członkowie zarządu działający łącznie", skład zarządu, prokurenci + URL.

Uwagi RODO

API MS w odpowiedziach zwraca zamaskowane dane osobowe członków zarządu (gwiazdki w nazwiskach po nowelizacji 2023). Patron przepuszcza to surowo, nie demaskuje. Dla pełnych nazwisk: użytkownik kancelarii otwiera link MS w przeglądarce po zalogowaniu.

Lineage

Kontrakt API z oficjalnej dokumentacji MS api-krs.ms.gov.pl. Implementacja TS od zera.

Licencja

MIT.

Part of the MateMatic legal stack

This server is one of five MCP connectors covering Polish jurisdiction + EU law, used by Patron (AGPL-3.0) and any other MCP-aware legal AI agent.

  • mcp-krs (this repo) — Polish company registry (official MS API)
  • mcp-saos — common courts, SN, TK, KIO
  • mcp-nsa — NSA + 16 WSA administrative courts
  • mcp-isap — Polish legislation (Dz.U. + M.P.)
  • mcp-eu-sparql — EU law + CJEU (EUR-Lex)

All five MCP servers share the same structuredContent.citations contract: each tool returns an array of {title, url, snippet?, ...metadata} that legal agents can render directly in their citation panel.

See matematicsolutions/.github for the full org profile.