matematicsolutions

mcp-isap

Community matematicsolutions
Updated

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

mcp-isap

Instalacja (jedna komenda)

Opublikowany na npm + MCP Registry (io.github.matematicsolutions/mcp-isap). Uruchomienie bez klonowania:

npx -y @matematicsolutions/mcp-isap

Konfiguracja klienta MCP (stdio):

{ "mcpServers": { "mcp-isap": { "command": "npx", "args": ["-y", "@matematicsolutions/mcp-isap"] } } }

(Budowanie ze źródeł — niżej.)

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.citationscontract: each tool returns an array of {title, url, snippet?, ...metadata}that legal agents can render directly in their citation panel.

See matematicsolutions/.githubfor the full org profile.

MCP Server · Populars

MCP Server · New

    PascaleBeier

    HitKeep

    HitKeep is privacy-first analytics for humans and AI agents, self-hosted or in managed EU/US cloud regions.

    Community PascaleBeier
    prometheus

    prometheus-mcp

    MCP server for LLMs to interact with Prometheus

    Community prometheus
    TencentEdgeOne

    edgeone-makers-mcp

    An MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.

    Community TencentEdgeOne
    bonfire-systems

    reaper-mcp

    A comprehensive Model Context Protocol (MCP) server that enables AI agents to create fully mixed and mastered tracks in REAPER with both MIDI and audio capabilities.

    Community bonfire-systems
    Wanyi424

    wanyi-watermark

    抖音、小红书等平台去水印,视频解析工具,支持MCP服务

    Community Wanyi424