Skip to main content
Glama

Poland Legal Research MCP Server (pl-legal-mcp)

Polski | English Documentation


Serwer MCP Prawa i Orzecznictwa Sądowego (pl-legal-mcp) — Polski

O tym repozytorium

To repozytorium zawiera serwer Model Context Protocol (MCP) łączący wybraną aplikację AI (Claude Desktop, Cursor, Windsurf, VS Code / Copilot, Cline lub Antigravity) bezpośrednio z systemem ISAP/ELI Sejmu RP (isap.sejm.gov.pl) oraz bazami orzeczeń (SAOS i Portal Orzeczeń Sądów Powszechnych: 318 sądów rejonowych, 47 sądów okręgowych, 16 WSA, 11 sądów apelacyjnych, Sąd Najwyższy, NSA oraz Trybunał Konstytucyjny).

Szybka instalacja (Wybór aplikacji AI)

  1. Pobranie: Kliknij <> Code -> Download ZIP i rozpakuj folder na komputerze.

  2. Uruchomienie: Kliknij dwukrotnie Click_Here_To_Install_Windows.bat (Windows) lub Click_Here_To_Install_Mac.command (macOS).

  3. Wybór klienta AI: Zaznacz używane programy AI (Claude, Cursor, Windsurf, VS Code, Antigravity), kliknij przycisk instalacji i uruchom ponownie wybraną aplikację AI.

Informacja o bezpieczeństwie: Instalator działa w trybie tylko do odczytu i nie ma dostępu do prywatnych plików na komputerze.

Instancje sądowe i oficjalne źródła

Instancja

Objęte sądy

I instancja (Sądy rejonowe, okręgowe i WSA)

Sądy Rejonowe (318 District Courts), Sądy Okręgowe (47 Regional Courts in 1st instance) & Wojewódzkie Sądy Administracyjne (16 WSA)

II instancja (11 Sądów apelacyjnych)

11 Sądów Apelacyjnych (Warszawa, Kraków, Wrocław, Poznań, Gdańsk, Katowice, Łódź, Lublin, Białystok, Rzeszów, Szczecin) & Sądy Okręgowe (Appellate divisions)

Sąd Najwyższy, NSA i Trybunał Konstytucyjny

Sąd Najwyższy (SN), Naczelny Sąd Administracyjny (NSA) & Trybunał Konstytucyjny (TK)

  • Sejm ELI Official REST API (api.sejm.gov.pl/eli): https://isap.sejm.gov.pl (isap.sejm.gov.pl, dziennikustaw.gov.pl, sejm.gov.pl)

  • SAOS Open API & Portal Orzeczeń Sądów Powszechnych (orzeczenia.ms.gov.pl — Rejonowe, Okręgowe & Apelacyjne): https://www.saos.org.pl (saos.org.pl, orzeczenia.ms.gov.pl, sn.pl, nsa.gov.pl, trybunal.gov.pl)


Related MCP server: hr-legal-mcp

English Documentation

Model Context Protocol (MCP) server providing live, read-only access to Poland (PL) legislation, official gazettes, multi-tier judicial decisions (First Instance, Regional/Cantonal/Appellate, and Supreme/Constitutional courts, including HTML and PDF full-text extraction), and statutory citation verification across all major AI clients (ChatGPT Desktop, OpenAI Codex CLI, Claude Desktop, Claude Code CLI, Cursor, Windsurf, VS Code / GitHub Copilot / Cline / Roo Code, Google Antigravity / Gemini CLI, Perplexity, and Continue.dev).


Interactive Desktop Setup (Select Your AI Assistant)

This package includes a graphical installer for legal practitioners and non-technical users that lets you select which AI application(s) you use:

  1. Download: Click <> Code at the top right of this repository, select Download ZIP, and extract the folder to your computer.

  2. Run the Setup Utility:

    • Windows: Double-click Click_Here_To_Install_Windows.bat

    • macOS: Double-click Click_Here_To_Install_Mac.command

  3. Select Your AI Client(s) & Connect: Check the box(es) for the AI assistant(s) installed on your computer (ChatGPT Desktop & OpenAI Codex CLI, Claude Desktop & Claude Code CLI, Cursor, Windsurf, VS Code / GitHub Copilot / Cline / Roo Code, Google Antigravity / Gemini CLI, or Perplexity / Continue.dev), click Install to Selected AI Clients, and restart your selected AI application.

System Integrity Note: The setup utility operates strictly in read-only mode with respect to your personal files and documents. It installs an isolated Python runtime inside the extracted folder and registers the server entry only in the AI client configuration files you select.


Multi-Tier Judicial Hierarchy & Live Indexed National Archives

This server performs live queries across the full judicial hierarchy and official legal archives of Poland, extracting full text from both HTML pages and official court/gazette PDF judgments:

Judicial Tier

Covered Courts & Tribunals

Tier 1 — First Instance

Sądy Rejonowe (318 District Courts), Sądy Okręgowe (47 Regional Courts in 1st instance) & Wojewódzkie Sądy Administracyjne (16 WSA)

Tier 2 — Regional / Cantonal / Appellate

11 Sądów Apelacyjnych (Warszawa, Kraków, Wrocław, Poznań, Gdańsk, Katowice, Łódź, Lublin, Białystok, Rzeszów, Szczecin) & Sądy Okręgowe (Appellate divisions)

Tier 3 — Supreme & Constitutional

Sąd Najwyższy (SN), Naczelny Sąd Administracyjny (NSA) & Trybunał Konstytucyjny (TK)

Official Portals & Live Indexed Domains

  • National Legislation & Official Gazette: Sejm ELI Official REST API (api.sejm.gov.pl/eli) — https://isap.sejm.gov.pl

    • Indexed Legislation Domains: isap.sejm.gov.pl, dziennikustaw.gov.pl, sejm.gov.pl

  • Court Decisions & Jurisprudence Archives: SAOS Open API & Portal Orzeczeń Sądów Powszechnych (orzeczenia.ms.gov.pl — Rejonowe, Okręgowe & Apelacyjne) — https://www.saos.org.pl

    • Indexed Judicial & Open Case Law Domains: saos.org.pl, orzeczenia.ms.gov.pl, sn.pl, nsa.gov.pl, trybunal.gov.pl


Available MCP Tools

Tool

Description

search_legislation

Searches enacted statutes, codes, decrees, and official gazette publications in Poland.

search_case_law

Searches national jurisprudence and open judicial archives for Poland.

search_tiered_court_decisions

Filters case law specifically by judicial instance (first_instance, appellate_regional, supreme_constitutional) or specific regional/cantonal/district court.

list_court_hierarchy

Returns the complete 3-tier court structure and supported regional court filters for Poland.

get_legal_document_markdown

Retrieves full statutory or judicial texts (both HTML and official .pdf court judgments) and converts them into clean Markdown.

verify_citation

Validates statutory and case law citations against official registries.


{
  "mcpServers": {
    "pl-legal-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "https://github.com/jurisatlas/pl-legal-mcp/archive/refs/heads/main.zip",
        "pl-legal-mcp"
      ]
    }
  }
}

Available Tools

6 tools
list_court_hierarchyList Court HierarchyA

Return the complete step-by-step multi-tier judicial hierarchy for Poland (PL): Tier 1 (First Instance / Trial / Municipal / District Courts), Tier 2 (Regional / Cantonal / County / Appellate Courts), Tier 3 (Supreme / Cassation / Constitutional Courts), and all official court sub-portals.

Inputs: no named parameters. Returns: object

search_case_lawSearch Case LawB

Search Poland (PL) court decisions and binding precedents via SAOS Open Case Law REST API (saos.org.pl/api/search/judgments) and open national judicial archives (Supported courts: Sąd Najwyższy (Supreme Court), Trybunał Konstytucyjny, NSA (Supreme Administrative Court), Common Courts).

Inputs: query (required), court, limit. Returns: object

search_legislationSearch LegislationB

Search Poland (PL) national legislation (statutes, acts, codes, regulations, official gazette) via Sejm ELI Official REST API (api.sejm.gov.pl/eli) and live national legal archives.

Inputs: query (required), year, limit. Returns: object

search_tiered_court_decisionsSearch Tiered Court DecisionsA

Search court decisions in Poland (PL) filtered by specific judicial tier or regional/cantonal/appellate court. Supports Tier 1 (first_instance), Tier 2 (appellate_regional — including Cantonal/Regional/County/Circuit courts), and Tier 3 (supreme_constitutional), or a specific sub-portal key from list_court_hierarchy.

Inputs: query (required), tier, limit, sub_court. Returns: object

verify_citationVerify CitationA

No-Hallucination Citation Verifier for Poland (PL). Validates format and live existence of legal citations (e.g., 'I CSK 123/23 or Dz.U. 2024 poz. 100') against official Poland and ECLI/ELI registries to prevent AI-hallucinated citations.

Inputs: citation (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 6 tools

    Disambiguation3/5

    Most tools are clearly distinct (court hierarchy, legislation search, citation verification, document retrieval), but search_tiered_court_decisions and search_case_law both retrieve court decisions and may be confused for general case-law queries. Their descriptions differentiate by tier filtering and API source, but an agent still faces a meaningful selection ambiguity.

    Naming Consistency4/5

    Tool names consistently use snake_case and generally follow an action-first convention (search_*, list_*, verify_*, get_*). There are minor deviations in specificity and style, such as list_court_hierarchy being noun-focused while others are verb-object, but the set is predictable overall.

    Tool Count5/5

    Six tools is well-scoped for a Polish legal research server. Each tool covers a distinct area of the workflow, and the count avoids both excessive fragmentation and thin coverage.

    Completeness4/5

    The surface covers court hierarchy discovery, decision/case-law search, legislation search, citation verification, and full document retrieval, which is a solid legal research lifecycle. Minor gaps remain around direct retrieval by citation or more structured court metadata, but core workflows are supported.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers