
Es Eli Mcp
io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v0.5.3更新于 Oct 24, 2026
Spanish law MCP: BOE legislation, Constitutional Court, DGT and TEAC tax, AEPD resolutions.
概览
一个本地 MCP 服务器,让助手以只读方式访问西班牙官方法律与税务资料:BOE 立法、宪法法院判决、DGT 与 TEAC 税务裁定以及 AEPD 决议。
- 可以做什么
- 浏览和获取 BOE 立法:按日期列出公报文件,按 BOE 编号或 ELI 标识获取元数据、条文索引和合并文本,并附引用与来源链接。按内部决议编号或案号加年份查询宪法法院判例,返回带 ECLI 的完整判决。按全文、日期或 NUM-CONSULTA 检索并阅读 DGT 的约束性及一般税务裁定。按申诉编号片段或日期范围检索 TEAC 学说并读取完整裁定文本。检索 AEPD 数据保护决议,并获取带已验证 PDF 永久链接的决议。说明该连接器覆盖与不覆盖的范围,并为每处缺口给出替代途径。
- 适用场景
- 适合回答有关西班牙法律、宪法判例、税务学说或数据保护裁定的问题,并需要官方原文和可核验引用时使用。最适用于需要引用一手资料而非依赖记忆的研究与起草工作。
- 运行要求
- 以 stdio 在本地运行,通常通过 PyPI 的 uvx 或作为 Claude 插件安装;需要 uv 或 Python。无需 API 密钥或账户,五个数据源均无需密钥。需要访问 boe.es、tribunalconstitucional.es、hacienda.gob.es 和 aepd.es 官方主机的网络。可选环境变量可覆盖基础地址、缓存与审计目录。在启用 Smart App Control 的 Windows 11 上,应通过已签名的 Python 解释器运行,而非被阻止的启动器。
安装
在 SourceWeft 中
- 打开 控制台中的 Es Eli Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
es-eli-mcp
Install (one command)
As a Claude plugin (Claude Code or the desktop app, needs uv); see plugin/README.md for what it sends and stores:
Published on PyPI + MCP Registry (io.github.matematicsolutions/es-eli-mcp). Run without cloning:
Configure your MCP client (stdio):
Windows 11 with Smart App Control
Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe
and the es-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:
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 es_eli_mcp.
Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.
Building from source: see Install.
An MCP server for five Spanish open-data sources:
- BOE (Boletin Oficial del Estado) open-data API - consolidated legislation. Given a BOE id or a date in the official gazette, returns metadata, structure and full consolidated text, with verifiable ELI identifiers and Spanish citations.
- Tribunal Constitucional (Sistema HJ /
hj.tribunalconstitucional.es) - Spain's Constitutional Court case law (Sentencias / Autos / Declaraciones). Given an internal resolution id, or a citation number+year (e.g. "STC 31/2010"), returns the full ruling with ECLI and a Spanish doctrinal citation. - DGT (Direccion General de Tributos,
petete.tributos.hacienda.gob.es) - binding tax rulings: ~69,500 consultas vinculantes + ~19,700 consultas generales (live-counted 2026-07-08). Full-text/date search plus the full ruling text by NUM-CONSULTA (e.g. "V0001-25"). - TEAC (Tribunales Economico-Administrativos, DYCTEA) - ~6,500 doctrine criterios with the full resolution text inline, searched by RG claim-number segments and/or date range.
- AEPD (Agencia Espanola de Proteccion de Datos) - ~46,800 data-protection resolutions with Solr full-text search and a verified PDF permalink per expediente (e.g. "PS-00615-2025").
Part of the MateMatic eu-legal-mcp production line - after PL, DE and AT. Same citation
contract pattern, five Spanish sources.
Free-text search exists on DGT and AEPD only. The BOE open-data keyword-search endpoint (
/legislacion-consolidada) currently returns a server-side error; the Tribunal Constitucional site only supports structured search (citation number+year, ECLI, magistrado, materia); DYCTEA accepts text-looking parameters but silently ignores them (verified live). Discover BOE documents viaes_browse_gazette(by date) or a known BOE id / ELI; TC rulings viaes_search_constitutional; TEAC criterios via RG segments or dates. Every response carries adataset_note.Licence. Both sources are official public information published as Spanish PSI (public-sector information) open data; reuse presumes acceptance of the respective reuse conditions. This connector relays that public content with attribution and a
source_url.
The tools
Every BOE response carries the contract: eli_uri (a full ELI URL, e.g.
https://www.boe.es/eli/es/lo/2018/12/05/3), human_readable_citation (the official
titulo), and source_url.
Every Tribunal Constitucional response carries: ecli (e.g. ECLI:ES:TC:2010:31 - TC case law
has no ELI, ELI covers legislation only), human_readable_citation (Spanish doctrinal
convention, e.g. "STC 31/2010, de 28 de junio"), and source_url.
Install
Configure (Claude Code / any MCP client)
Environment:
ES_ELI_BASE_URL- defaulthttps://www.boe.es/datosabiertos/apiES_ELI_TC_BASE_URL- defaulthttps://hj.tribunalconstitucional.esES_ELI_DGT_BASE_URL- defaulthttps://petete.tributos.hacienda.gob.esES_ELI_TEAC_BASE_URL- defaulthttps://serviciostelematicosext.hacienda.gob.es/TEAC/DYCTEAES_ELI_AEPD_BASE_URL- defaulthttps://www.aepd.esES_ELI_CACHE_DIR- default~/.matematic/cache/es-eliES_ELI_AUDIT_DIR- default~/.matematic/audit
No API key. All five sources are keyless.
Governance
- Public data only - read-only against the five official sources; no client data leaves the machine.
- Audit log - every tool call appends one JSON line to
~/.matematic/audit/es-eli-mcp.jsonl. - Network - the server talks to the official
*.boe.es/*.tribunalconstitucional.es/*.hacienda.gob.es/*.aepd.eshosts and the local filesystem. Once, on first use, it also fetches a small configuration file (es-runtime.json.gz, updated source addresses) from this repository's GitHub Releases. That request carries no query content; GitHub's download counter for the file is the only usage signal we see.ES_ELI_RUNTIME_URL=""turns it off; the Claude plugin ships with it off. No LLM provider, no other telemetry. - Verifiable citations - every response is independently checkable via
source_url.
See CONSTITUTION.md and DISCOVERY.md.
Tests
Licence
Apache-2.0. © Matematic Solutions / Wieslaw Mazur.
来源:README.md,提交 dc61db6
工具
0版本历史
1- v0.5.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分