
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 分