Mexico Law
liveGovernmentLegalDeveloperMexico law -- federal laws and codes as published by the Chamber of Deputies (the in-force "Leyes Federales Vigentes" list, the list of abrogated federal laws, and each law's official text and reform record).
Tools
mx_law_searchSearch Mexican federal laws and codes by Spanish words in their name (e.g. "protección de datos personales", "amparo", "código penal federal"). Searches both the list of laws in force (vigentes) and t
No parameters required.
Try it
mx_law_getFetch one Mexican federal law or code by law_id (from mx_law_search, e.g. "lfpdppp", "cpeum" for the Constitution) or by exact name. Returns the name, which list it is on (vigente or abrogada, as the
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.
curl -X POST https://gateway.pipeworx.io/mexico-law/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/mexico-law/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"mx_law_search","arguments":{}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("mx_law_search", {});// Or ask in plain English:
const answer = await px.ask("mexico law -- federal laws and codes as published by the chamber of deputies (the in-force "leyes federales vigentes" list, the list of abrogated federal laws, and each law's official text and reform record)");