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-isap

v1.1.1

Published

MCP server - Polish legislation (Dziennik Ustaw / Monitor Polski) via Sejm ELI API (96k+ acts since 1918)

Readme

mcp-isap

MCP License: MIT Node

MCP server dla legislacji polskiej — Dziennik Ustaw (DU) + Monitor Polski (MP) przez oficjalne Sejm ELI API (api.sejm.gov.pl/eli).

Po co

mcp-saos (powszechne) + mcp-nsa (administracyjne) + mcp-eu-sparql (UE) ciemnij stronę. mcp-isap dokłada legislację — ustawy, rozporządzenia, obwieszczenia, umowy międzynarodowe. To zamyka triadę:

USTAWA + ORZECZNICTWO + PRAWO UE
   ↓         ↓              ↓
  ISAP    SAOS+NSA      EUR-Lex
   ↓         ↓              ↓
        kancelaria pyta o RODO
        → 4 konektory równolegle
        → 4 sekcje cytatów w panelu

Pokrycie: 96 000+ aktów od 1918 do dziś. Pełne wsparcie ELI (European Legislation Identifier).

Tooly

  • search_acts(title?, year?, publisher?, type?, in_force?, limit?) — wyszukiwanie po fragmencie tytułu / roku / wydawcy / typie aktu / statusie obowiązywania. publisher: DU (Dziennik Ustaw) lub MP (Monitor Polski).
  • get_act(eli) — szczegóły aktu po ELI (DU/2018/1000). Zwraca tytuł, typ, status, wejście w życie, słowa kluczowe, linki do tekstu HTML/PDF i strony ISAP.
  • get_act_text(eli) — pierwsze 5000 znaków czystego tekstu aktu (bez tagów HTML) + link do pełnej wersji HTML/PDF.

Każda zwrotka zawiera structuredContent.citations z polami: title, url (ISAP UI), eli, display_address (Dz.U. 2018 poz. 1000), publisher, year, document_type, status, in_force, promulgation.

Patron czyta pole automatycznie i wystawia w panelu UI jako sekcję "Akty prawa polskiego (Dz.U. / M.P. — Sejm ELI)".

Stack

  • Node 18+ (wbudowany fetch)
  • @modelcontextprotocol/sdk
  • Stdio transport
  • Throttle 500 ms między żądaniami (2 req/s)
  • Zero scrapowania — czyste REST JSON API

Build + uruchomienie

npm install
npm run build
node dist/index.js

Wpięcie do Patrona

W patron/backend/mcp-servers.json:

{
  "name": "isap",
  "transport": "stdio",
  "command": "node",
  "args": ["C:/Users/<TWOJ-UZYTKOWNIK>/mcp-isap/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_act","arguments":{"eli":"DU/2018/1000"}}}' \
  | node dist/index.js

Powinno zwrócić Ustawę o ochronie danych osobowych z 10 maja 2018, status IN_FORCE, link do ISAP i strukturyzowany cytat.

Lineage

Kontrakt API zaczerpnięty z legal-data-hunter/sources/PL/DziennikUrzedowy (Python + REST, MIT). Implementacja TS od zera — bez importu kodu źródłowego.

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-isap (this repo) — Polish legislation (Dz.U. + M.P. via Sejm ELI)
  • mcp-saos — common courts, SN, TK, KIO
  • mcp-nsa — NSA + 16 WSA administrative courts
  • mcp-krs — Polish company registry (KRS)
  • 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.