
Prawo Pl Mcp
io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v0.2.4更新于 Oct 26, 2026
One MCP server for Polish legal data - courts, legislation, KRS, tax, KIO, UODO via 4 unified tools
概览
把十个波兰及欧盟法律数据连接器聚合在五个统一工具之后,用于检索判例、法规、公司登记与裁决。
- 可以做什么
- 列出数据源,并查看某个连接器的实时工具结构
- 用统一参数检索任意数据源,并通过额外参数传入源特有筛选条件
- 按标识符获取完整文书,按约 5000 字符分页
- 调用任意连接器的原生工具,例如引证、数据保护统计、董事会构成
- 说明各连接器覆盖什么、不覆盖什么,并给出替代方案
- 适用场景
- 当助手需要波兰法律资料(法院判决、法规、公司登记摘录、税务裁定、采购或数据保护裁决)或欧盟法律,而你又不想为十个独立连接器分别配置时适用。
- 运行要求
- 以 uvx 运行的本地进程,需要 Python 3.11 或更高版本。基于 npx 的数据源需要 Node.js 18 或更高版本,基于 uvx 的需要 uv;连接器在首次使用时下载。stdio 方式未声明需要凭据。可选环境变量可覆盖启动命令、超时和审计日志目录。
安装
在 SourceWeft 中
- 打开 控制台中的 Prawo Pl Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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.
来源:README.md,提交 6c7bae4
工具
0版本历史
2- v0.2.4最新Sep 24, 2026
- v0.2.3Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分