@pipeworx/northern-mariana-code
Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/northern-mariana-code’s. Install: one-click buttons
Connect to just the @pipeworx/northern-mariana-code pack
https://gateway.pipeworx.io/northern-mariana-code/mcp — only @pipeworx/northern-mariana-code’s own tools, nothing else in the catalog.
No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.
Tools: 2
Commonwealth Code of the Northern Mariana Islands (CNMI statutes) — section
text by citation (e.g. "6 CMC § 1101"), and topic/keyword search over
official catchlines. Fleet #2892, one of six jurisdictions (DC + five
territories) with no code pack as of 2026-10-09.
Tools
nmi_statute(citation)— text of one Commonwealth Code section by citation (e.g."6 CMC 1101", murder;"1 CMC 101", defines “Northern Mariana Islands”), with the official catchline and title context. Tries the official site live first, falls back to an Internet Archive Wayback Machine capture of the SAME official PDF when the live site is unreachable (it has been, since around 2026-10 — see “The current outage” below). Every response carriesroute("live"or"wayback"),data_as_of, and astaleness_warningon the fallback route.nmi_search(query, limit?)— topic/keyword search over official section catchlines across all 10 titles (e.g."murder","tax"). Not full-text search — see “Known gaps”.
Auth
Keyless.
Data sources
https://cnmilaw.org/pdf/cmc_section/T{title}/{section}.pdf— the CNMI Law Revision Commission’s own per-section PDF (e.g. Title 6 § 1101 is.../T6/1101.pdf).nmi_statutefetches this live, per request, with an 8s timeout, and extracts the matching section’s text.https://web.archive.org/web/{timestamp}if_/{that same PDF URL}— the Wayback Machine’s own crawl of that identical official PDF, used only when the live fetch above fails. One request resolves to the nearest actual capture via Wayback’s own redirect (/web/{today}if_/{url}302s to the closest real snapshot) — no separate CDX lookup per call; the CDX API rate-limits aggressively under repeated querying (measured directly while building this pack: the same query that succeeds once starts 503ing within a handful of calls).mcps/northern-mariana-code/scripts/bake-index.mjsfetches the title listing page (cnmilaw.org/cmc.php, or its most recent readable Wayback capture) once, offline, and bakes a citation+catchline index intosrc/nmi-index-data.tsfornmi_searchand fornmi_statute’s “citation exists but is unreachable” vs. “no such citation” distinction — the full set of ~7,100 sections is too large to scan per search query.
The current outage — read this before assuming the live route is dead
cnmilaw.org is unreachable right now (verified live 2026-10-09), but this looks temporary, not a shutdown. Checked three ways:
- A plain residential HTTPS request times out / gets no response.
- A
wrangler dev --remoteWorker edge probe — i.e. not a geo-block — gets a Cloudflare522(“origin unreachable”) on bothcnmilaw.org/andcnmilaw.org/pdf/cmc_section/T6/1101.pdf. - The bare-HTTP vhost (no TLS) resolves to a different backend entirely: a Network Solutions registrar page reading “This domain has been temporarily disabled. If you own this domain, please log in to your account manager to re-enable the domain.” — a registrar-level suspension (lapsed renewal, most likely), not a bot wall or a CAPTCHA.
The Wayback Machine’s own crawler was still getting live 200 PDFs from
this exact path as recently as 2026-02-17 (confirmed via its CDX index),
so this is a recent lapse, not a long-dead site. nmi_statute tries
cnmilaw.org live first on every call (8s timeout) — if the registration
is restored, calls start routing "route": "live" again with no code
change needed. There was no need to build a baked copy of the statutory
text itself (unlike arkansas-code’s 2012 PRO scan): the Wayback Machine
already holds its own crawl of the identical official PDFs, so falling back
to a live per-request fetch of that memento is still “calling”, not
“copying”, under root CLAUDE.md’s proxy-vs-mirror rule.
Capabilities
- Citation lookup —
nmi_statute, live-first with a Wayback fallback. - Topic/keyword search —
nmi_search, over catchlines only. - Amendments/enactment history — embedded in the statutory text itself
(a
Source: PL ...line at the end of most sections) but not parsed into a separate field — CNMI PDFs do not carry a structured history node the way Arkansas’s XML scan does. - Historical version (text as it read before a given amendment) — NOT AVAILABLE from any free source found.
Parsing note
Section PDFs are extracted with the shared extractPdfText() helper
(shared/src/pdf-text.ts) — the same one kentucky-code and
north-dakota-code use. The catchline index parses cmc.php’s own anchor
text (an anchor tag linking to .../T6/1101.pdf with text ”§ 1101. Murder.”), stripping the
leading section number the href already carries.
Refresh path: node scripts/bake-index.mjs > src/nmi-index-data.ts —
tries cnmilaw.org live first, falls back to the most recent readable
Wayback capture of cmc.php automatically. Re-run occasionally to pick up
newly-enacted sections; nmi_statute itself never depends on this file
being current, since it always fetches statutory text live or from Wayback
per call.
Known gaps
nmi_searchmatches official catchlines only, not full statutory text — a topic discussed inside a section’s body but absent from its catchline will not be found.- While cnmilaw.org is down, every
nmi_statutecall that succeeds does so via Wayback and carries whatever date that section happened to be last crawled — individual sections’ snapshot dates vary (seen during testing: 2024-08-13 for one section, 2026-02-17 for another), not a single fixed cutoff the wayarkansas-code’s 2012 scan is. Always checkdata_as_ofper response rather than assuming a pack-wide date. - A citation whose title/section both parse but that is in neither the live
site nor Wayback AND not in the baked index is reported as
citation_not_found; one that IS in the baked index but unreachable on both routes is reported as a loudupstream_downerror, never a falsefound: false.
Tools
- nmi_statute — Get the TEXT of a section of the Commonwealth Code of the Northern Mariana Islands (CNMI statutes) by citation, e.g.
- nmi_search — Search the Commonwealth Code of the Northern Mariana Islands BY TOPIC or keyword over official section catchlines
Tools
nmi_search— Search the Commonwealth Code of the Northern Mariana Islands BY TOPIC or keyword over official section catchlinesnmi_statute— Get the TEXT of a section of the Commonwealth Code of the Northern Mariana Islands (CNMI statutes) by citation, e.g.