
Prawo Pl Mcp
io.github.matematicsolutionsPublished by GitHub account matematicsolutionsv0.2.4Updated Oct 26, 2026
One MCP server for Polish legal data - courts, legislation, KRS, tax, KIO, UODO via 4 unified tools
Overview
Aggregates ten Polish and EU legal-data connectors behind five unified tools for searching case law, legislation, registers and rulings.
- What you can do
- List sources and inspect a connector's live tool schemas
- Search any source with normalized parameters and source-specific filters
- Fetch full documents by identifier, paginated in ~5000-character chunks
- Call any native connector tool, such as citators, DPA statistics or board composition
- Report what each connector covers and what it does not, with fallbacks
- When to use it
- Useful when an assistant needs Polish legal material — court judgments, legislation, company register extracts, tax rulings, procurement or data-protection decisions — or EU law, and you would rather configure one server than ten separate connectors.
- Requirements
- Local process run with uvx; Python 3.11 or newer. Node.js 18 or newer for npx-based sources and uv for uvx-based sources; connectors are downloaded on first use. No credentials are declared for stdio use. Optional environment variables override spawn commands, timeouts and the audit-log directory.
Installation
In SourceWeft
- Open Prawo Pl Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
prawo-pl-mcp
One MCP server for Polish legal data.
Ten independent connectors - case law, legislation, the company register, tax rulings, public procurement, data-protection decisions, plus EU extras - behind five tools. Each connector stays a separate package with its own repository; this server spawns them on demand and translates between their conventions.
"Prawo" is Polish for "law"; the name follows yargi-mcp's move of naming a country server in its own language.
Why an aggregator
The connectors cover Polish legal data well, but as separate MCP servers, one per database - ten installs and ten config entries before the first question. yargi-mcp showed the fix for Turkish law: 16 institutions, one server. prawo-pl-mcp does the same for Poland:
- Five tools instead of 42.
pl_list_sources,pl_search,pl_get_document,pl_callandpl_coverage- fewer tool schemas means less context spent before the LLM starts working. - One convention. The connectors grew organically:
dateFromhere,date_fromthere, pages counted from 0 or from 1 depending on the repo. Herepageis always 1-based and dates are alwaysdate_from/date_to(YYYY-MM-DD); the translation happens inside. One name per concept applies to the aggregator's own tools too:pageis the page parameter of bothpl_searchandpl_get_document(page_numberstill works as a deprecated alias), andpl_calltakesargumentsor its aliasargs. - Native names on the table. Every catalog entry carries
native_params- the native parameter name each unified one maps to for that source, soarticle_number(eu-compliance) is visible without spawning the connector or reading an upstream error.pl_callchecks the names it was given against the connector's own schema and says which one it meant. - Nothing preinstalled. Connectors run as subprocesses via
npx -y/uvx, downloaded on the first call to a given source and kept alive afterwards. A source that cannot start reports a readable error while the rest keep working. - Paginated documents. Full judgment and act texts are chunked at ~5000
characters per page (yargi-mcp's pattern), so a 200-page ruling does not
flood the context window. Sources that paginate server-side (
isap) get thepageforwarded natively and are reported aspagination: "native"- the aggregator does not re-cut an already-cut page and does not invent atotal_pagesit cannot know.
Coverage
Polish sources are tagged group: pl, EU extras group: eu - filter with
pl_list_sources(group="pl").
Tools
The typical flow an LLM follows (spelled out in the server's instructions):
pl_list_sources → pl_search → pl_get_document, with pl_call for the
specialized tools each connector brings.
Install
Requires Python ≥ 3.11 plus the runtimes of the sources you use: Node.js ≥ 18
for npx sources, uv for uvx sources. If a
runtime is missing, its sources report source_unavailable and the rest work.
Claude Code
Claude Desktop / any MCP client (stdio)
Remote (Streamable HTTP)
Open by default (public, read-only data). Set PRAWO_PL_MCP_API_KEY to require
X-API-Key: <key> or Authorization: Bearer <key> on every request.
Configuration
Architecture
The aggregator is a thin proxy (ADR 0001). Connectors are not imported, vendored or forked; the aggregator speaks MCP to them over stdio the same way any client would. The whole layer is a source registry (one dataclass entry per connector), a lazy subprocess pool, a parameter translator and a paginator. Adding a source means adding a registry entry.
Every call lands in a JSONL audit log (timestamp, tool, source, parameter hash, latency - never document content).
Development
License
Apache-2.0. Individual connectors carry their own licenses (MIT or Apache-2.0), their own rate limits and their own terms toward upstream databases - the aggregator adds no caching and no transformation beyond pagination, so each connector's constraints apply unchanged.
Source: README.md at commit 6c7bae4
Tools
0Version history
2- v0.2.4LatestSep 24, 2026
- v0.2.3Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts