MCP server for Spanish BOE consolidated legislation, grounded by id/ELI with verifiable citations.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Published on PyPI + MCP Registry (io.github.matematicsolutions/es-eli-mcp). Run without cloning:
Configure your MCP client (stdio):
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:
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.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").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.
| Tool | What it does |
|---|---|
es_browse_gazette | List documents published in the BOE on a date (YYYYMMDD) - discovery. |
es_get_act | Metadata for a BOE id (eli_uri, official titulo, source). |
es_get_index | The block index (articles, titles) of a consolidated law. |
es_get_text | Consolidated text (XML), whole or by block. |
es_get_constitutional_ruling | Tribunal Constitucional ruling by internal resolution id. |
es_search_constitutional | Resolve a citation (numero+anno, e.g. 31/2010) to the full TC ruling. |
es_search_tax_rulings | Full-text/date search over DGT consultas (vinculantes or generales). |
es_get_tax_ruling | Full DGT ruling (facts, question, normativa, answer) by NUM-CONSULTA. |
es_search_teac_doctrine | TEAC criterios by RG segments and/or resolution-date range. |
es_get_teac_criterio | Full TEAC criterio + resolution text by DYCTEA id. |
es_search_aepd_resolutions | Full-text/date search over AEPD resolutions. |
es_get_aepd_resolution | AEPD resolution + verified full-text PDF permalink by expediente. |
es_coverage | Declare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback. |
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.
Environment:
ES_ELI_BASE_URL - default https://www.boe.es/datosabiertos/apiES_ELI_TC_BASE_URL - default https://hj.tribunalconstitucional.esES_ELI_DGT_BASE_URL - default https://petete.tributos.hacienda.gob.esES_ELI_TEAC_BASE_URL - default https://serviciostelematicosext.hacienda.gob.es/TEAC/DYCTEAES_ELI_AEPD_BASE_URL - default https://www.aepd.esES_ELI_CACHE_DIR - default ~/.matematic/cache/es-eliES_ELI_AUDIT_DIR - default ~/.matematic/auditNo API key. All five sources are keyless.
~/.matematic/audit/es-eli-mcp.jsonl.*.boe.es / *.tribunalconstitucional.es / *.hacienda.gob.es / *.aepd.es hosts; no LLM provider, no telemetry.source_url.See CONSTITUTION.md and DISCOVERY.md.
Apache-2.0. Β© Matematic Solutions / Wieslaw Mazur.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/es-eli-mcp)<a href="https://allmcps.com/mcp/es-eli-mcp"><img src="https://allmcps.com/api/badge/es-eli-mcp?style=directory" alt="Es Eli MCP on AllMCPs" /></a>