@pipeworx/montana-code
Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/montana-code’s. Install: one-click buttons
Connect to just the @pipeworx/montana-code pack
https://gateway.pipeworx.io/montana-code/mcp — only @pipeworx/montana-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
Montana state statutes by citation, plus topic search across the whole code. Keyless.
Tools
mt_code_section— the full text of one section by citation, e.g.1-1-307(postponement of a day appointed for an action when it falls on a holiday or Saturday) or45-5-102(deliberate homicide).mt_code_search— full-text search by topic or keyword, e.g. “computing time period days holiday”. Returns ranked sections with their citation, heading and an opening excerpt; callmt_code_sectionwith a result for the full text. A query with no hits returnsfound: false, never an empty list.
Coverage
All 54 titles of the Montana Code Annotated (2025 edition), about 44,000 sections. That includes Title 25, chapter 20, the Montana Rules of Civil Procedure (Rule 6, computing and extending time, is MCA 25-20-206), and the other court rule sets published in Title 25.
Search is a full-text match, not semantic search: it ranks sections containing all the query’s words, and falls back to any-word matching when no section contains them all.
How search works
mt_code_search uses the shared statute search store: an FTS5 index in the
SEARCH_SHARD Durable Object (shard name mt-statutes) and the section text
in the shared datasets R2 bucket (statutes/mt/<title>.json, one bundle per
title, plus _index.json). No new Cloudflare binding. The index is loaded by
scripts/ingest-montana-statutes.mjs; re-run it after the Legislature
publishes a new edition. Every response carries data_as_of.
Data source
Montana Legislature, Montana Code Annotated. Montana statutes are public record. Citation lookups call the Legislature live on each request; topic search reads a pre-fetched copy of the current code.
Stored copy and data_as_of (fleet #3754)
mt_code_section answers from the Montana Code Annotated already held in the shared statute store (R2,
statutes/mt/, one object per title, loaded by scripts/ingest-montana-statutes.mjs for topic search). The
legislature’s archive site refuses requests that leave from some data centres (70 “upstream down” against 171
successes from external callers over 14 days). A section the stored title lists is answered with no upstream
request: served_from: "stored-copy", data_as_of (when the title was last read from the source) and the
section’s history line. A title that cannot be read, or a section it does not list, falls back to the live read.
Refreshing the store refreshes both search and lookup.
Tools
- mt_code_section — Get the FULL TEXT of a section of the Montana Code Annotated — Montana state law — by citation. “MCA 45-5-102” is deliberate homicide. Returns the statutory text. Keyless. Use for “what does MCA 45-5-
- mt_code_search — Search the Montana Code Annotated BY TOPIC or keyword rather than citation — “computing time deadline holiday”, “landlord security deposit”, “deliberate homicide”. Covers all 54 MCA titles, including
Tools
mt_code_search— Search the Montana Code Annotated BY TOPIC or keyword rather than citation -- computing time deadline holiday , landlord security deposit , deliberate homicide . Covers all 54 MCA titles, including Timt_code_section— Get the FULL TEXT of a section of the Montana Code Annotated — Montana state law — by citation. MCA 45-5-102 is deliberate homicide. Returns the statutory text. Keyless. Use for what does MCA 45-5-102