New Mexico Code

liveDeveloper

New Mexico Statutes Annotated 1978 (NMSA 1978) — section lookup, chapter list, and catchline search. Closes one of the four remaining 50-state gaps (fleet #2884, Bruce 2026-10-09; Arkansas, Mississippi and Tennessee are the other three).

3tools
0msauth
free tier50 calls/day

Tools

nm_statute

Get the FULL TEXT of a section of the New Mexico Statutes Annotated 1978 (NMSA 1978) by citation, e.g. "30-2-1" (Murder) or "40-4-1" (grounds for divorce). Accepts "30-2-1", "NMSA 1978, § 30-2-1", or

No parameters required.

▶Try it
nm_chapters

List all chapters of the New Mexico Statutes Annotated 1978 with their official names, e.g. Chapter 30 is Criminal Offenses, Chapter 40 is Domestic Affairs. Routing help for when you know the subject

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/new-mexico-code/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/new-mexico-code/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"nm_statute","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("nm_statute", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("new mexico statutes annotated 1978 (nmsa 1978) — section lookup, chapter list, and catchline search");