MCP server exposing 2 tools for puerto-rico-code.
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/puerto-rico-code/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
pr_statute — Get the text of a Puerto Rico "ley" (act) by citation — accepts an LPRA citation like "33 LPRA 5001" (33 L.P.R.A. § 5001, the Penal Code's murder-related provisions title) or "31 LPRA 5311" (the Civil Code), OR a direct act number like "146-2012" (optionally with an article, e.g. "146-2012 Art. 92"). LPRA citations resolve ONLY for the LPRA títulos this pack has verified map to one specific act by reading that act's own text (currently Título 31, Código Civil de Puerto Rico de 2020; and Título 33, Código Penal de Puerto Rico de 2012) — most of LPRA's ~35 títulos aggregate many acts and are NOT yet mapped; for those, look up the specific "ley" by its own number instead. Returns the article/section heading and FULL SPANISH TEXT AS PUBLISHED by the Oficina de Gerencia y Presupuesto (OGP) — never machine-translated — plus the source PDF URL and data_as_of. Spanish statute citations and vocabulary: artículo, ley, código, estatuto, derecho puertorriqueño, Leyes de Puerto Rico Anotadas.pr_search — Search Puerto Rico statutes by topic or keyword in Spanish (e.g. "homicidio", "arrendamiento", "violencia doméstica", "contratos"). Searches two tiers: REAL full-text search over the article bodies of the two LPRA-mapped consolidated codes (Código Penal / Código Civil — real body-text matches, not just catchlines), plus a title/catchline search over OGP's full catalog of ~15,500 published "leyes" (acts) for topics outside those two codes. Each result is labelled result_type "lpra_section" (a real statute section, with its LPRA citation) or "act" (an act title match — call pr_statute with its act number for the text). Keyless, Spanish text as published.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/puerto-rico-code/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io