
Es Eli Mcp
io.github.matematicsolutionsPublished by GitHub account matematicsolutionsv0.5.3Updated Oct 24, 2026
Spanish law MCP: BOE legislation, Constitutional Court, DGT and TEAC tax, AEPD resolutions.
Overview
A local MCP server that gives an assistant read-only access to Spanish official legal and tax sources: BOE legislation, Constitutional Court rulings, DGT and TE
- What you can do
- Browse and retrieve BOE legislation: list documents published on a date, fetch metadata, block index and consolidated text by BOE id or ELI identifier, with citations and source links. Look up Constitutional Court case law by internal resolution id or by citation number and year, returning the full ruling with ECLI. Search and read DGT binding and general tax rulings by free text, date or NUM-CONSULTA. Search TEAC doctrine by claim-number segments or date range and read the full criterio text. Search AEPD data-protection resolutions and get the resolution with a verified PDF permalink. Report what the connector covers and does not cover, with a fallback for each gap.
- When to use it
- Useful when answering questions about Spanish law, constitutional case law, tax doctrine or data-protection decisions and you need the official text plus a verifiable citation. Best suited to research and drafting where the assistant should quote primary sources rather than rely on memory.
- Requirements
- Runs locally over stdio, typically via uvx from PyPI or as a Claude plugin; needs uv or Python. No API key or account: all five sources are keyless. Network access to the official boe.es, tribunalconstitucional.es, hacienda.gob.es and aepd.es hosts. Optional environment variables override base URLs, cache and audit directories. On Windows 11 with Smart App Control, run it through the signed Python interpreter instead of the blocked launchers.
Installation
In SourceWeft
- Open Es Eli Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: README.md at commit dc61db6
Tools
0Version history
1- v0.5.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts