
Mcp Saos
io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v1.3.1更新于 Oct 24, 2026
MCP server for Polish court judgments via the SAOS API with verifiable citations.
概览
连接波兰法院判决公开数据库 SAOS 的服务器,让助手检索判例、获取判决全文,并检查某判决是否仍被援引。
- 可以做什么
- 按全文、法院、法官、法律依据或日期检索判决
- 按 SAOS 编号获取判决全文
- 按案号直接查找判决
- 运行引证检查:查找后续援引该案号的判决,扫描其中是否有推翻性表述,返回结论及供人工核对的片段
- 适用场景
- 适合处理波兰判例法:查找某主题的判决、获取特定判决,或核查某被引判决是否已被背离。每次响应都附带覆盖范围说明,因此更适合研究与起草辅助,而非权威法律意见。
- 运行要求
- 以本地进程方式通过 npx 运行 npm 包;需要 Node.js 18 或更高版本、npm 9 或更高版本,以及访问 SAOS 实时 API 的网络连接。无需 API 密钥、账号、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Saos,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-saos
Installation (one command)
Published on npm + the MCP Registry (io.github.matematicsolutions/mcp-saos). Run without cloning:
MCP client configuration (stdio):
(Building from source - below.)
An MCP (Model Context Protocol) server for Polish case law - a connector to SAOS (System Analizy Orzeczen Sadowych - the courts' public case-law database, run by Fundacja ePanstwo).
Part of the MateMatic "Polish legal AI" project. It runs as a separate process communicating over stdio; the chat template (a fork of mike) calls it through the MCP protocol.
What SAOS is
An open database of Polish court judgments. Public REST API, no key required.
Coverage caveat: coverage is broad and includes current judgments (2024-2026 are well populated), but it is uneven by court type, and some Supreme Court resolutions exist only as citations in other judgments. Verify anything critical against sn.pl, orzeczenia.ms.gov.pl, trybunal.gov.pl.
The database covers: common courts (COMMON), the Sad Najwyzszy (Supreme Court, SUPREME), the Trybunal Konstytucyjny (Constitutional Tribunal, CONSTITUTIONAL_TRIBUNAL), the KIO (National Appeal Chamber, NATIONAL_APPEAL_CHAMBER). Administrative courts (WSA/NSA) - no data in SAOS.
MCP tools
saos_cite_check - the citator
Give it a case number (a placeholder here; use a real one):
It searches SAOS full-text for later judgments citing that signature, scans
their reasoning for departure phrases ("odstepuje od pogladu wyrazonego",
"nie podziela pogladu", "traci moc uchwala", "uchwala skladu siedmiu sedziow"
and others) within ~500 characters of the signature, and returns one of four
verdicts: przelamanie_wykryte, uchwala_skladu_powiekszonego,
nadal_cytowany, brak_cytowan_w_saos. Each hit includes a +-200 character
fragment for human verification.
Every phrase on the list was verified against live SAOS data - the evidence table, the algorithm and the honest-limits section are in docs/CITE-CHECK.md. The short version: no hits does NOT mean the judgment is still good law, and every response says so.
Requirements
- Node.js >= 18
- npm >= 9
- Internet access (live API saos.org.pl)
Installation and build
After npm run build, the entry point is dist/index.js.
Standalone run (test)
Wiring into the chat template (fork of mike) - mcp-servers.json
Add an entry to your client's MCP configuration (e.g. mcp-servers.json):
Provide the absolute path to dist/index.js. On Windows use forward slashes /
or double backslashes \\.
Tests
The smoke test checks tools/list (4 tools), search, search_by_case,
a Constitutional Tribunal lookup and saos_cite_check on a Supreme Court
resolution with known later treatment.
Architecture
No external dependencies for HTTP/JSON - requests go through the built-in node:https.
The only production dependency: @modelcontextprotocol/sdk.
Limitations and known pitfalls
pageSizehas a hard lower limit of 10 (SAOS returns HTTP 400 for less) - the server automatically enforces a minimum of 10.courtType=ADMINISTRATIVEreturns empty results - SAOS does not index WSA/NSA.- Dates in the database may contain OCR artifacts (e.g. "3013-12-04") - the case
number is more reliable than the
judgmentDatefield. - Coverage is uneven by court type - the server states the relevant caveats in every tool response.
saos_cite_checkis a heuristic. It reads the top citing judgments only, its phrase list cannot cover every way a court departs from a line of case law, and no hits does not confirm the judgment is current.
License
MIT - see the LICENSE file for details. Judgment data: Fundacja ePanstwo, open license (public API with no usage restrictions).
Part of MateMatic
This connector queries its source live. It is one of the Polish and EU source connectors bundled in PATRON and works with any MCP client.
- Poland, one server for all sources: prawo-pl-mcp · each source on its own: mcp-saos (this repo) · mcp-nsa · mcp-isap · mcp-krs · mcp-eureka · kio-orzeczenia-mcp
- European Union: mcp-eu-sparql (live) · mcp-eu-compliance (offline corpus)
- A prepared corpus of Polish and EU law with a citation graph: Repertorium
mcp-saos, mcp-nsa, mcp-isap, mcp-krs and mcp-eu-sparql share one structuredContent.citations
contract: each tool returns an array of {title, url, snippet?, ...metadata}
that legal agents can render directly in their citation panel.
See matematicsolutions/.github for the full org profile.
来源:README.md,提交 683010a
工具
0版本历史
2- v1.3.1最新Oct 13, 2026
- v1.2.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分