Spain consolidated legislation — Agencia Estatal Boletín Oficial del Estado (BOE), open-data API.
MCPpedia last refreshed this data
io.github.pipeworx-io/boe-legislacion is an MCP server that spain consolidated legislation — Agencia Estatal Boletín Oficial del Estado (BOE), open-data API. Its tool list has not been published yet over http, requires no API key, and scores 56/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"boe-legislacion": {
"url": "https://gateway.pipeworx.io/boe-legislacion/mcp"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Spain consolidated legislation — Agencia Estatal Boletín Oficial del Estado (BOE), open-data API.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @pipeworx/mcp-boe-legislacion against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in legal
Amazon, Walmart, TikTok Shop, Meta Ads, 1688, Shopee, Temu & social data API (200+ MCP tools).
Search Swedish parliamentary documents, speeches, votes, members, and statutes.
1M+ Swiss court decisions, statutes & doctrine with citation graph (DE/FR/IT). CC0, free, 45 tools.
Proof primitive for AI agents on MultiversX. Anchor file hashes on-chain as verifiable proofs.
MCP Security Weekly
Get CVE alerts and security updates for io.github.pipeworx-io/boe-legislacion and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Spain's consolidated legislation — every Spanish statute and royal decree kept up to date with every amendment folded in, plus the daily table of contents of the state gazette, from the Agencia Estatal Boletín Oficial del Estado (BOE).
Part of Pipeworx — an MCP gateway connecting AI agents to 1863+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
boe_search_law(query, ambito?, limit?, offset?) — search consolidated
legislation by words in the title (e.g. "Código Civil", "ley de propiedad
horizontal"). Returns matching laws with their BOE id, legal rank, issuing
department, scope (national/regional), key dates, and the official BOE page
URL for each. Pass the returned id to boe_law.boe_law(id, article?) — one consolidated law by its BOE id. Without
article: metadata (rank, department, consolidation status, dates), subject
tags, notes, and a table of contents of its articles/sections ("bloques") —
capped at 200 entries and marked truncated for large codes. With
article (a block id from that table of contents, e.g. "a1" for Artículo
1): the actual text of that one article across every historical version it
has had, each dated, with the current one flagged.boe_daily_summary(date) — table of contents of one day's BOE issue: every
disposition and announcement published that day, grouped by section and
issuing department, with each item's BOE id and title. BOE does not publish
every day (no Sunday issue, some holidays); those dates come back
found: false, never an empty list.Keyless. The upstream open-data API requires no registration, key, or
click-through terms — it is served to anyone with Accept: application/json.
Accept: application/json entirely and always answers
a fixed small XML envelope (status code + text, empty data) regardless of
what was requested. Every call here reads the body as text first and only
parses it as JSON when it looks like JSON, so an error message is never
lost to a failed res.json()."data": "" — an empty string, not [] or {} — while a populated
list and a single-record lookup are both array-wrapped ("data": [...],
even for exactly one record). boe_search_law and boe_law normalise this
and report found: false with plain wording on a genuine miss, never an
empty array dressed as success.texto/indice) is available as JSON; the actual block text is
XML-only. There is no XML parser in the Workers runtime, so boe_law with
article extracts paragraphs with targeted regex over BOE's fixed
one-block, one-or-more-versions, paragraph-per-version XML shape — reliable
for real statute text, not a general-purpose XML parser.boe_law without article caps what it inlines and reports
articles.total / articles.truncated rather than ever returning the whole
thing — use article to read one block at a time.limit /
offset paginate, and shown tells you how many came back this call.Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
... [View full README on GitHub](https://github.com/pipeworx-io/mcp-boe-legislacion#readme)