prawo-pl-mcp MCP Server
One MCP server for Polish legal data - courts, legislation, KRS, tax, KIO, UODO via 4 unified tools
prawo-pl-mcp scores 69 (Good), licensed Apache-2.0 and written in Python. It installs as a local process. It declares 5 tools. Filed under Uncategorized. GitHub shows 8 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
69 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 69 comes from
22 + 20 + 3 + 10 + 4 + 10 = 69. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "matematicsolutions-prawo-pl-mcp": { "command": "uvx", "args": [ "prawo-pl-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools5Tool docs quality grade C
All capabilitiespl_calltoolAny native tool of any connector: citator, DPA statistics, board composition, regulation comparison...
pl_coveragetoolDeclare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback.
pl_get_documenttoolFull document by identifier (judgment id, ELI, KRS number, signature...), paginated.
pl_list_sourcestoolCatalog of sources (no subprocess spawned). With sourceid: live tool schemas of one connector.
pl_searchtoolSearch any source with normalized parameters; source-specific filters via extra.
About
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
| Source id | What | Institution / database | Connector | Runtime |
|---|---|---|---|---|
saos | Case law: common courts, Supreme Court, Constitutional Tribunal + citator | SAOS | mcp-saos | npx |
nsa | Case law: administrative courts (NSA + 16 WSA) | CBOSA | mcp-nsa | npx |
isap | Legislation: Dziennik Ustaw + Monitor Polski, 96k+ acts | Sejm ELI API | mcp-isap | npx |
krs | Company register: extracts, history, board composition | KRS API (Ministry of Justice) | mcp-krs | npx |
eureka | Tax rulings: 550k+ individual interpretations | EUREKA (Ministry of Finance) | mcp-eureka | npx |
kio | Public procurement: National Appeal Chamber rulings | orzeczenia.uzp.gov.pl | kio-orzeczenia-mcp | uvx |
uodo | GDPR enforcement: Polish DPA decisions, fines, stats | orzeczenia.uodo.gov.pl | uodo-orzeczenia-mcp | uvx |
eu-sparql | EU law: EUR-Lex by CELEX, CJEU by ECLI, GDPRhub | Cellar SPARQL | mcp-eu-sparql | npx |
eu-compliance | 14 EU regulations offline (GDPR, AI Act, DORA, NIS2...) | Local SQLite corpus | mcp-eu-compliance | npx |
legalize | Law-as-git: 32 jurisdictions, versioned by commit | legalize-dev | legalize-mcp | uvx |
Polish sources are tagged group: pl, EU extras group: eu - filter with
pl_list_sources(group="pl").
Tools
| Tool | What it does |
|---|---|
pl_list_sources | Catalog of sources (no subprocess spawned). With source_id: live tool schemas of one connector. |
pl_search | Search any source with normalized parameters; source-specific filters via extra. |
pl_get_document | Full document by identifier (judgment id, ELI, KRS number, signature...), paginated. |
pl_call | Any native tool of any connector: citator, DPA statistics, board composition, regulation comparison... |
pl_coverage | Declare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback. |
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 mcp add pl-legal -- uvx prawo-pl-mcp
Claude Desktop / any MCP client (stdio)
{
"mcpServers": {
"pl-legal": {
"command": "uvx",
"args": ["prawo-pl-mcp"]
}
}
}
Remote (Streamable HTTP)
uvicorn prawo_pl_mcp.asgi:app --host 0.0.0.0 --port 8000
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
| Env | Default | Meaning |
|---|---|---|
PRAWO_PL_MCP_CMD_<ID> | - | Override the spawn command for a source, e.g. PRAWO_PL_MCP_CMD_SAOS="node C:/dev/mcp-saos/dist/index.js" for a local checkout. <ID> = source id, uppercase, - → _. |
PRAWO_PL_MCP_INIT_TIMEOUT | 180 | Seconds allowed for a connector's first start (includes package download). |
PRAWO_PL_MCP_TIMEOUT | 90 | Seconds per tool call after startup. |
PRAWO_PL_MCP_AUDIT_DIR | ~/.matematic/audit | Where the JSONL audit log goes. |
PRAWO_PL_MCP_API_KEY | - | ASGI mode only: require this API key (dual-channel). |
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.
LLM client ──MCP──▶ prawo-pl-mcp ──MCP/stdio──▶ npx @matematicsolutions/mcp-saos
│ ──MCP/stdio──▶ uvx kio-orzeczenia-mcp
│ ──MCP/stdio──▶ ... (spawned on first use)
└─ registry + param mapping + 5000-char pagination
Every call lands in a JSONL audit log (timestamp, tool, source, parameter hash, latency - never document content).
Development
git clone https://github.com/matematicsolutions/prawo-pl-mcp && cd prawo-pl-mcp
uv sync --extra dev
uv run pytest # offline tests: registry, dispatch mapping, pagination, drift
uv run prawo-pl-mcp # stdio server
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.
Frequently asked questions
What is prawo-pl-mcp MCP Server?
One MCP server for Polish legal data - courts, legislation, KRS, tax, KIO, UODO via 4 unified tools
How do I install prawo-pl-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. prawo-pl-mcp MCP Server runs locally from the PyPI package prawo-pl-mcp with the command uvx prawo-pl-mcp.
Is prawo-pl-mcp MCP Server free and open source?
Yes. prawo-pl-mcp MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does prawo-pl-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for prawo-pl-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does prawo-pl-mcp MCP Server provide?
prawo-pl-mcp MCP Server provides 5 tools, including pl_call, pl_coverage, pl_get_document, and pl_list_sources. See the full tool list for descriptions and parameters.
How is prawo-pl-mcp MCP Server's trust score calculated?
prawo-pl-mcp MCP Server scores 69 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.