@pipeworx/boe-legislacion

Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/boe-legislacion’s. Install: one-click buttons

Connect to just the @pipeworx/boe-legislacion pack

https://gateway.pipeworx.io/boe-legislacion/mcp — only @pipeworx/boe-legislacion’s own tools, nothing else in the catalog.

No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.

Tools: 3

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).

Tools

  • 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.

Auth

Keyless. The upstream open-data API requires no registration, key, or click-through terms — it is served to anyone with Accept: application/json.

Data sources

  • Agencia Estatal Boletín Oficial del Estado (BOE), Legislación Consolidada — the consolidated-text database of Spanish state and regional legislation, kept current with every amendment.
  • Agencia Estatal Boletín Oficial del Estado (BOE), Sumario — the daily table of contents of the state gazette.

Notes

  • The Accept header is honoured on 200 only. On any error (400/404/500) the upstream ignores 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().
  • The empty-result shape is not uniform. A zero-match search answers 200 with "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.
  • Article/section text has no JSON form at all. Only the table of contents (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.
  • Large codes are enormous. The Código Civil’s table of contents alone is 2,444 blocks. 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.
  • The upstream does not report a total match count for search — limit / offset paginate, and shown tells you how many came back this call.

Tools

  • boe_search_law — Search Spain’s consolidated legislation (Legislación Consolidada) by words in the title — e.g. “Código Civil”, “ley de propiedad horizontal”. Returns matching laws/decrees with their BOE id, rank (ley
  • boe_law — Get one Spanish consolidated law by its BOE id (from boe_search_law, e.g. “BOE-A-1889-4763” = Código Civil). Without “article”: returns metadata (rank, department, dates, consolidation status), subjec
  • boe_daily_summary — Table of contents of one day’s Boletín Oficial del Estado (BOE) issue — every disposition and announcement published that day, grouped by section and issuing department, with each item’s BOE id and ti

Tools

  • boe_daily_summary — Table of contents of one day's Boletín Oficial del Estado (BOE) issue — every disposition and announcement published that day, grouped by section and issuing department, with each item's BOE id and ti
  • boe_law — Get one Spanish consolidated law by its BOE id (from boe_search_law, e.g. BOE-A-1889-4763 = Código Civil). Without article : returns metadata (rank, department, dates, consolidation status), subject t
  • boe_search_law — Search Spain's consolidated legislation (Legislación Consolidada) by words in the title — e.g. Código Civil , ley de propiedad horizontal . Returns matching laws/decrees with their BOE id, rank (ley/r

Regenerated from source · build October 14, 2026