The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the MCP Nsa listing page.
Published on npm + the MCP Registry (io.github.matematicsolutions/mcp-nsa). Run without cloning:
MCP client configuration (stdio):
(Building from source - below.)
MCP server for the case law of the Polish administrative courts -
Naczelny Sad Administracyjny / NSA (Supreme Administrative Court) + 16 Wojewodzkie Sady Administracyjne / WSA (regional administrative courts) - via CBOSA (Centralna Baza Orzeczen Sadow Administracyjnych - the administrative courts' central case-law database)
(orzeczenia.nsa.gov.pl).
SAOS (the common-courts case-law analysis system) does not index the administrative courts. Yet that is exactly where the substantive case law lives:
mcp-nsa closes this gap. Coverage: 2,390,000+ rulings (verified live 2026-07-08 across the full date range), from 1981 to today.
search(query, caseNumber?, court?, dateFrom?, dateTo?, pageNumber?)
get_judgment(doc_id) - full ruling by 10-character hex doc_id
(from the CBOSA URL, e.g. 7E50984BB7).search_by_case(caseNumber) - shortcut: search by case number
(e.g. III OSK 1377/23, I SA/Gl 659/22).Every response contains structuredContent.citations with the fields:
title, url (CBOSA), case_number, court, judgment_date,
decision_type, snippet, doc_id. Patron reads this field automatically
and surfaces it in the UI panel as the section "Rulings from CBOSA (NSA / WSA - administrative courts)".
@modelcontextprotocol/sdkhttps + regex HTML parser (zero external deps beyond the SDK)rejectUnauthorized: false - the CBOSA chain is sometimes incomplete on some
machines; public rulings, no PII, MITM risk negligible against the benefit.
See: LDH issue #167.In patron/backend/mcp-servers.json (alongside mcp-saos and mcp-eu-sparql):
Should return ~1500 hits + the top 5 with Polish NSA/WSA case numbers + CBOSA URLs
Implementation rewritten in TypeScript on the basis of the HTTP/HTML contract from
legal-data-hunter/sources/PL/NSA
(Python + BeautifulSoup, MIT). It does not import the source code - it reproduces the
query pattern and HTML parsing.
MIT.
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.
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.