Cz Eli Mcp

io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v0.2.3更新于 Oct 24, 2026

MCP server for Czech legislation (e-Sbirka SPARQL) with ELI and verifiable citations.

概览

AI 生成的概览

通过 SPARQL 检索捷克 e-Sbirka 法律数据库,返回法案元数据与完整合并文本,并附可核验的 ELI 引用。

可以做什么
  • 按年份和/或引用片段检索法案
  • 按年份和编号获取法案元数据及最新合并版本日期
  • 获取法案的完整合并文本,由有序 HTML 片段拼装而成
  • 说明该连接器覆盖哪些内容、各法系何时采集,以及明确不覆盖的部分及替代方案
  • 在每次响应中附带 ELI URI、可读引用和来源链接
适用场景
适合需要查询捷克法规、确认某法案当前合并文本,或生成可由人工在官方 e-Sbirka 网站核验的引用的场景。它是面向捷克语法律来源的只读检索工具,并非通用法律数据库。
运行要求
以本地进程运行,通常通过 PyPI 包 cz-eli-mcp 用 uvx 启动,因此需要 Python 与 uv;在启用 Smart App Control 的 Windows 上应改用 python -m pip 安装并以 python -m cz_eli_mcp 运行。无需 API 密钥。可选环境变量 CZ_ELI_ENDPOINT、CZ_ELI_CACHE_DIR 和 CZ_ELI_AUDIT_DIR 可修改端点与存储路径。需要能访问 e-Sbirka 的 SPARQL 端点。
安装前请注意
每次工具调用都会向审计目录下的日志追加一行 JSON,本地操作会被记录。查询发往 e-Sbirka 开放数据 SPARQL 端点;README 称不会有客户端数据离开本机,也不含遥测。内容为捷克语,ELI IRI 为国家层级,无法在 data.europa.eu 解析,引用应通过返回的来源链接核对。文本由片段重建,而非官方单一文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Cz Eli Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

cz-eli-mcp

An MCP server for the Czech e-Sbirka legal database (e-sbirka.gov.cz), the official Collection of Laws (Sbirka zakonu), via its open-data SPARQL endpoint. It searches acts and fetches their full consolidated text, with verifiable citations.

Part of the MateMatic eu-legal-mcp production line - after PL, DE, AT, ES, FI, IE, NL, SE, FR, LU and DK. Same citation contract, e-Sbirka source. This is the first connector in the line that talks SPARQL/RDF rather than a REST/XML API.

Scope. This MVP searches acts (by year and/or a citation substring), returns metadata, and assembles the full consolidated text of the latest version. ~92,000 acts, updated daily, licensed CC BY 4.0. Language: Czech. Every response carries a dataset_note.

ELI is national, not data.europa.eu. The act IRI follows the ELI URI template (eli/cz/sb/{year}/{number}) but is minted by the e-Sbirka open-data graph (opendata.eselpoint.gov.cz), not resolvable on data.europa.eu. The readable page is on e-sbirka.gov.cz. Every response carries an eli_note saying so.

Text is assembled, not a single file. e-Sbirka exposes the consolidated text as ordered HTML fragments over SPARQL; cz_get_text reconstructs the plain text from them. There is no single official XML/PDF manifestation.

The tools

ToolWhat it does
cz_searchFind acts by year and/or a citation substring (discovery).
cz_get_actMetadata for an act by year + number, plus the latest consolidated version date.
cz_get_textFull consolidated text of an act, assembled from the latest version's fragments.
cz_coverageDeclare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback.

Every response carries the contract: eli_uri (the national ELI IRI, e.g. https://opendata.eselpoint.gov.cz/esel-esb/eli/cz/sb/2019/110), human_readable_citation (e.g. 110/2019 Sb.), and source_url (the e-sbirka.gov.cz page).

Install

Run it with no install step (once published to PyPI):

bash
uvx cz-eli-mcp

Or from source:

bash
cd cz-eli-mcppip install -e .

Configure (Claude Code / any MCP client)

json
{  "mcpServers": {    "cz-eli-mcp": { "command": "cz-eli-mcp" }  }}

Windows 11 with Smart App Control

Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe and the cz-eli-mcp.exe launcher that pip writes at install time. The python.exe and py.exe from the python.org installer are signed by the Python Software Foundation, so running the module through the interpreter works:

bash
python -m pip install cz-eli-mcppython -m cz_eli_mcp

pip.exe is blocked for the same reason, so install with python -m pip, not pip install. If python is not on PATH, use the Windows launcher: py -3 -m cz_eli_mcp.

json
{ "mcpServers": { "cz-eli-mcp": { "command": "python", "args": ["-m", "cz_eli_mcp"] } } }

Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.

Environment:

  • CZ_ELI_ENDPOINT - default https://opendata.eselpoint.gov.cz/sparql
  • CZ_ELI_CACHE_DIR - default ~/.matematic/cache/cz-eli
  • CZ_ELI_AUDIT_DIR - default ~/.matematic/audit

No API key. The e-Sbirka open-data SPARQL endpoint is keyless.

Governance

  • Public data only - read-only SPARQL against e-Sbirka; no client data leaves the machine.
  • Audit log - every tool call appends one JSON line to ~/.matematic/audit/cz-eli-mcp.jsonl.
  • Vendor-neutral - talks only to opendata.eselpoint.gov.cz; no LLM provider, no telemetry.
  • Verifiable citations - every response is independently checkable via source_url.

See CONSTITUTION.md and DISCOVERY.md.

Tests

bash
pip install -e ".[dev]"pytest tests/test_instructions_drift.py tests/test_parse.py -v   # offlinepytest tests/test_smoke.py -v                                    # hits the live SPARQL endpoint

Licence

Apache-2.0. © Matematic Solutions / Wieslaw Mazur. e-Sbirka data is CC BY 4.0 (Czech Ministry of the Interior); relayed with attribution and a source_url.

来源:README.md,提交 2ef03c7

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分