New Mexico Code logo

New Mexico Code

Look up New Mexico statutes by citation, search catchlines, and browse indexed NMSA 1978 chapters without an API key.

Install New Mexico Code

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "new-mexico-code": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-new-mexico-code"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

New Mexico Code provides MCP access to New Mexico Statutes Annotated 1978 through citation lookup, catchline search, and chapter listing tools. It retrieves official chapter PDFs from NMOneSource and uses a baked chapter index to locate sections efficiently. The hosted endpoint is keyless, while the npm bridge can run through stdio and optionally authenticate with a Pipeworx API key. Reach for it when an agent needs New Mexico statutory text or chapter-level routing, while accounting for the partial index coverage.

Use cases

  • Look up a New Mexico statute by citation
  • Search statutory catchlines for a legal topic
  • List indexed NMSA 1978 chapters
  • Route a subject to a likely statute chapter

Key features

  • NMSA 1978 section lookup
  • Catchline and chapter-name search
  • Chapter listing with indexed section counts
  • Citation normalization for common formats
  • Hosted HTTP and local stdio access
  • Keyless anonymous access

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

7/7 checks healthy over the last 25d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · @pipeworx/mcp-new-mexico-code (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.6kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How New Mexico Code works

What New Mexico Code does

New Mexico Code exposes selected New Mexico Statutes Annotated 1978 (NMSA 1978) data through MCP. Its three pack-specific tools support different stages of statutory research:

  • nm_statute retrieves a section by citation and returns its catchline, statutory text, chapter name, and history line.
  • nm_search searches official section catchlines and chapter names for topics or keywords, then returns matching citations and titles.
  • nm_chapters lists chapters, their official names, and the number of sections indexed for each chapter.

The search tool is intended for finding relevant citations rather than searching every word in the body of a statute. After finding a citation, pass it to nm_statute to retrieve the section text.

How it works

The source is NMOneSource, operated by the New Mexico Compilation Commission. The site publishes one PDF for each chapter rather than separate files for individual sections. New Mexico Code uses the PDF bookmark structure to associate section citations with page locations, then extracts only the nearby pages and isolates the requested section from the surrounding content.

A prebuilt chapter index supplies navigation data because NMOneSource item IDs are not calculated directly from chapter numbers. The service also searches its own indexed catchlines and chapter names instead of relying on NMOneSource's site search, whose indexed material includes case law and forms rather than the full NMSA statutory body text.

The hosted MCP endpoint is https://gateway.pipeworx.io/new-mexico-code/mcp. It can also be called through the Pipeworx HTTP tools API. A local npm package, @pipeworx/mcp-new-mexico-code, acts as a stdio bridge to the same hosted service and requires network access.

Setup and configuration

For an MCP client with hosted HTTP support, add the endpoint as new-mexico-code. Claude Desktop, Cursor, and Windsurf are shown as supported setup targets. The npm option uses npx -y @pipeworx/mcp-new-mexico-code as the command and needs no API key for anonymous use.

Anonymous npm calls are limited to 50 per day. Adding PIPEWORX_API_KEY raises the allowance to 200 calls per day through a free Pipeworx account. Set PIPEWORX_META_TOOLS=1 if the local bridge should also list shared gateway tools such as ask_pipeworx; otherwise it lists the pack's own tools. The bridge has no offline mode.

Tools and capabilities

Citation input accepts forms such as 30-2-1, NMSA 1978, § 30-2-1, and § 30-2-1. Chapter lookup can help route questions when the subject is known but the chapter number is not. The endpoint also exposes shared Pipeworx meta-tools, including cross-catalog routing through ask_pipeworx, although the local bridge hides those by default.

Limitations and notes

The committed baked index covers 47 of 84 chapters. Requests involving the other 37 chapters return chapter_not_baked rather than being treated as a successful no-match. The limitation comes from the indexing bake process, not from the normal extraction path; the included bake script can resume fetching and regenerate the index before redeployment.

The service is an unofficial integration and is not affiliated with, endorsed by, or published by the New Mexico Compilation Commission or NMOneSource. The package is MIT licensed.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about New Mexico Code

New Mexico Code is an MCP server that connects AI clients to New Mexico Statutes Annotated 1978 data from NMOneSource. Its main tools look up statute text by citation, search official catchlines and chapter names, and list indexed chapters with section counts. Hosted access is keyless, with an optional npm stdio bridge.

Install it either by adding the hosted MCP URL or by running the npm stdio bridge with npx. Use `https://gateway.pipeworx.io/new-mexico-code/mcp` for a hosted connection, or configure `npx -y @pipeworx/mcp-new-mexico-code` as the local command.

No, the hosted endpoint and npm bridge support anonymous use without an API key. Anonymous npm calls are capped at 50 per day; setting `PIPEWORX_API_KEY` with a free Pipeworx account raises that allowance to 200 calls per day.

Use `nm_search` with a topic or keyword, then pass a returned citation to `nm_statute` for the full section text. The search covers official section catchlines and chapter names, not the complete body text of every statute.

Yes, Cursor can connect to the hosted MCP endpoint, and its setup is shown using the `new-mexico-code` server name. The same service can also be accessed from a local npm stdio bridge.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNew Mexico Code AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/new-mexico-code?style=directory)](https://allmcps.com/mcp/new-mexico-code)
HTML Embed
<a href="https://allmcps.com/mcp/new-mexico-code"><img src="https://allmcps.com/api/badge/new-mexico-code?style=directory" alt="New Mexico Code on AllMCPs" /></a>