MCP server exposing 2 tools for mexico-law.
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/mexico-law/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
mx_law_search — Search 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 the list of abrogated laws (abrogadas), and says which list each one is on. Returns law_id (e.g. "lfpdppp", or "abro:LAmp_abro" for an abrogated law), name, status as the publisher lists it, the DOF date of the original publication and of the last reform (or of the abrogation). Pair with mx_law_get for the text.mx_law_get — Fetch 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 publisher lists it), original DOF publication date, last reform or abrogation date, any note the list carries, the reform decrees with their DOF dates, and the text. Pass article (e.g. "7" or "7 Bis") for one article, with any Se deroga marker the text carries; otherwise text is capped at max_chars. The text is read from the publisher's PDF, so tables are flattened.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/mexico-law/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io