North Dakota Code logo

North Dakota Code

Searches North Dakota Code catchlines and retrieves live statutory text by citation through MCP.

Install North Dakota 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": {
    "north-dakota-code": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-north-dakota-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

North Dakota Code MCP server connects AI agents to the North Dakota Century Code through two tools: citation lookup and catchline-based topic search. `nd_statute` resolves a section to its chapter PDF, fetches that PDF live, and extracts the requested text. `nd_search` searches a baked index of official section and chapter catchlines rather than statutory prose. Use it for current North Dakota statute lookups and topic discovery when amendment history or historical versions are not required.

Use cases

  • Look up a North Dakota statute by citation
  • Find sections related to a legal topic
  • Retrieve current text from a chapter PDF
  • Discover citations across multiple Code titles

Key features

  • Citation-based statute retrieval
  • Catchline and keyword search
  • Live chapter PDF fetching
  • Baked whole-Code citation index
  • Keyless hosted MCP endpoint

Security & health

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

ActiveLast checked 2d ago

Recent health check succeeded.

6/6 checks healthy over the last 23d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · @pipeworx/mcp-north-dakota-code (npm)

Adoption & maintenance

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

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

How North Dakota Code works

What North Dakota Code does

North Dakota Code provides MCP access to the North Dakota Century Code, using the Legislature's official online index and chapter PDFs. It supports two primary operations:

  • nd_statute(citation) returns the text of a section identified by its North Dakota citation, such as 12.1-16-01 or 47-16-13.1.
  • nd_search(query, limit?) finds sections by matching a topic or keyword against official catchlines and returns matching citations.

The integration is keyless and unofficial. It is useful for locating and reading the current online edition of North Dakota statutes from an AI client.

How it works

The complete North Dakota Code index is processed into a bundled data file containing citations, official catchlines, and title and chapter context. Searches run against this in-memory index, so nd_search does not retrieve the large Legislature index page for every request. The index represents roughly 29,000 sections across 74 titles and 1,740 chapters.

For a citation lookup, the server uses the bundled citation list to identify the relevant chapter, then fetches that chapter's PDF from ndlegis.gov at request time. It extracts the requested section from the chapter rather than bundling or redistributing the statutory text. Section boundaries are determined using the verified citations for that chapter, which helps distinguish a section heading from a cross-reference in the body.

The extraction path handles North Dakota's PDF structure, including indirect PDF length and font references and simple TrueType fonts whose character mappings are supplied through a ToUnicode map.

Setup and configuration

The hosted MCP endpoint can be added to a compatible client with this configuration:

config.json
{
  "mcpServers": {
    "north-dakota-code": {
      "url": "https://gateway.pipeworx.io/north-dakota-code/mcp"
    }
  }
}

No API key or environment variable is required. The endpoint also exposes shared Pipeworx gateway tools in addition to the North Dakota Code tools. A full gateway connection is available at https://gateway.pipeworx.io/mcp when direct access to all gateway packs is preferred.

The tools can also be called over HTTP. For example:

Terminal
curl -X POST https://gateway.pipeworx.io/v1/tools/nd_statute \
  -H 'Content-Type: application/json' \
  -d '{"citation":"12.1-16-01"}'

If the Legislature changes the structure or contents of its Code index, the bundled index can be regenerated with the repository's bake-index.mjs script.

Tools and capabilities

nd_statute accepts a citation string and returns the corresponding section from the live chapter PDF. North Dakota citations use title-chapter-section notation, and title, chapter, or section components may contain decimal suffixes.

nd_search accepts a topic or keyword and an optional result limit. It searches official catchlines at section and chapter level. This can find related sections scattered across different titles, but it does not search the full wording of statutory sections.

Limitations and notes

The service exposes the current online Code edition only. It does not provide historical versions of modern sections or reconstruct amendment and enactment history. A repealed or redesignated section may include the disposition line present in the source text, but in-force sections do not receive a reconstructed history from the Session Laws archive.

Search results are catchline matches, not full-text matches. A term may therefore be useful for finding sections whose official topic names contain it, while missing sections that use the term only in their statutory prose. Statutory PDFs are fetched live for citation lookups, so availability depends on the Legislature's source endpoint.

Reviews

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

Frequently Asked Questions about North Dakota Code

North Dakota Code is an MCP server that connects AI agents to the North Dakota Century Code from the Legislature's official online sources. Its main tools are nd_statute for retrieving current section text by citation and nd_search for finding citations through official section and chapter catchlines.

Add the hosted MCP URL to your client's server configuration; no package installation or API key is required. Use `https://gateway.pipeworx.io/north-dakota-code/mcp` as the server URL under the `north-dakota-code` name.

Yes, Cursor is named as a compatible MCP client. Configure the North Dakota Code hosted endpoint in Cursor using the server URL supplied for the integration.

No, `nd_search` searches official section and chapter catchlines rather than full statutory prose. Use `nd_statute` after identifying a citation to retrieve the current text of that section from its live chapter PDF.

No, it provides the current online Code edition rather than historical versions or reconstructed amendment history. Repealed or redesignated sections may retain a disposition line when that line appears in the source text.

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 PreviewNorth Dakota Code AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/north-dakota-code?style=directory)](https://allmcps.com/mcp/north-dakota-code)
HTML Embed
<a href="https://allmcps.com/mcp/north-dakota-code"><img src="https://allmcps.com/api/badge/north-dakota-code?style=directory" alt="North Dakota Code on AllMCPs" /></a>