MCP server exposing 3 tools for boe-legislacion.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/boe-legislacion/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
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/real decreto/...), issuing department, dates, and the official BOE page URL for each. Source: Agencia Estatal Boletín Oficial del Estado (BOE), Legislación Consolidada open-data API. Pass the returned id to boe_law for the full record or one article's text.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 tags, notes, and a table of contents of its articles/sections ("bloques"), capped and marked truncated for large codes. With "article" (a block id from that table of contents, e.g. "a1" for Artículo 1): returns the actual text of that one article across every historical version, each dated, with the current one flagged. Unknown id or article is refused with found:false, never an empty success. Source: Agencia Estatal Boletín Oficial del Estado (BOE), Legislación Consolidada open-data API.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 title. Source: Agencia Estatal Boletín Oficial del Estado (BOE), daily Sumario open-data API. BOE does not publish every day (no Sunday issue, some holidays), those dates come back found:false, not an empty success.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/boe-legislacion/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io