Boe Legislacion

liveLegislature

Spain consolidated legislation — Agencia Estatal Boletín Oficial del Estado (BOE), open-data API.

3tools
0msauth
free tier50 calls/day

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

No parameters required.

▶Try it
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

No parameters required.

▶Try it
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

No parameters required.

▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/boe-legislacion/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/boe-legislacion/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"boe_search_law","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("boe_search_law", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("spain consolidated legislation — agencia estatal boletín oficial del estado (boe), open-data api");