polish-caselaw-mcp
MCP server for querying live Polish court case law (orzecznictwo) via the SAOS API, offering tools to search judgments, fetch full cases, find judgments citing specific statutory provisions, and check Constitutional Tribunal citations.
README
Polish Case Law MCP (polish-caselaw-mcp)
An MCP server exposing Polish court case law (orzecznictwo) live from the SAOS API. It has no local database — every tool call queries SAOS at request time.
The response envelope and the artNNNparN article-reference scheme mirror
polish-law-mcp (Polish statutes from ISAP), so a client can compose both
servers and follow a judgment straight to the provision it cites. This is an
independent implementation that shares those conventions for interoperability;
it is not derived from that server's code.
Tools
search_case_law— search judgments (query, court type, dates, sort, limit)get_judgment— full judgment by SAOS id (text, judges, referenced regulations as ELI ids + article refs)find_judgments_for_provision— judgments citing a statute provision (pl-du-YYYY-NNN), verified against referenced regulationscheck_constitutional_status— Constitutional Tribunal (TK) judgments citing a provision (does NOT assert the provision was struck down — read the operative part)list_courts— court types for filteringcaselaw_about/caselaw_list_sources— provenance and legal basis (prefixed to avoid name clashes with sibling MCP servers in a gateway)
All tools return { results, _metadata } (ToolResponse). get_judgment exposes
referenced_regulations[].articles_refs for cross-server linking.
Run
npm install
npm run build
npm start # stdio MCP server
Install
The server speaks MCP over stdio. Pick whichever setup matches your client.
Docker MCP Gateway
mcp-gateway-server.yaml already points at the published image, so no build is
needed:
docker mcp profile server add default --server file://"$PWD/mcp-gateway-server.yaml"
To run your own build instead, set image: in that file to a local tag and
build it first:
docker build -t polish-caselaw-mcp:local .
The gateway's --block-network flag cuts SAOS off; tools then return a clear
network error rather than hanging.
Standalone — Docker
Any MCP client that launches a stdio command can run the image directly.
--rm -i matters: the server talks over stdin/stdout and should not outlive
the client.
{
"mcpServers": {
"polish-caselaw": {
"command": "docker",
"args": ["run", "--rm", "-i", "ghcr.io/pawelharacz/polish-caselaw-mcp:latest"]
}
}
}
Pass configuration through with -e:
"args": ["run", "--rm", "-i", "-e", "SAOS_TIMEOUT_MS=60000",
"ghcr.io/pawelharacz/polish-caselaw-mcp:latest"]
Standalone — Node
Without Docker, point the client at the built entrypoint:
{
"mcpServers": {
"polish-caselaw": {
"command": "node",
"args": ["/absolute/path/to/polish-caselaw-mcp/dist/index.js"],
"env": { "SAOS_TIMEOUT_MS": "60000" }
}
}
}
Run npm install && npm run build first — dist/ is not committed.
Claude Code
claude mcp add polish-caselaw -- docker run --rm -i ghcr.io/pawelharacz/polish-caselaw-mcp:latest
Verify with /mcp, then call caselaw_about — it returns provenance without
touching SAOS, so it confirms the server is wired up even if the API is slow.
Configuration
| Variable | Default | Purpose |
|---|---|---|
SAOS_TIMEOUT_MS |
45000 |
HTTP timeout per SAOS request. /search/judgments regularly takes 20–35s under load, so short timeouts abort requests that would have succeeded. |
SAOS_RETRY_BACKOFF_MS |
500 |
Delay before the single retry, so a slow upstream is not hit again immediately. |
Legal
Court decisions are not statutes. See sources.yml for the legal basis.
Research tool, not legal advice — verify against official court portals.
License
Apache-2.0
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。