
Colorado Code
io.github.pipeworx-iov0.1.0更新於 Oct 7, 2026
Colorado Revised Statutes — state statutes by citation, topic, and title.
概覽
讓助理依引文、主題或標題查詢科羅拉多州修訂法規文本,包括歷史版本與修訂沿革。
- 功能
- 提供檢索科羅拉多州法規的工具:co_statute 依引文回傳條文,可指定年份,並附上 Source 修訂沿革與交叉參照;co_search 透過總索引依主題檢索;co_titles 列出附主題提示的標題。僅回傳法條文本與公開法律沿革,不包含 Lexis 的判例編輯註釋。歷史版本涵蓋 2000-2024 年與現行版本,2025 年被拒絕。
- 適用情境
- 適合助理需要引用或核對科羅拉多州法條、解析 C.R.S. 引文、查找房東或隱蔽持槍等主題條文,或跨版本比較某條文時使用。它不是判例法或編輯評論的來源。主題檢索對 1 至 3 個詞的短主題效果較好,對較長的複合詞組雜訊較多。
- 執行需求
- 遠端 streamable HTTP 端點,使用閘道 URL;未宣告需要帳號、API 金鑰或環境變數,最初幾次呼叫無需帳號。也可透過 npx 以本機 stdio 方式執行,需要 Node.js。需要能連線至閘道或公開的法規檔案伺服器。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Colorado Code,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"colorado-code": {
"type": "http",
"url": "https://gateway.pipeworx.io/colorado-code/mcp"
}
}
}README
Colorado Code — Colorado Revised Statutes by citation, topic, and title
Keyless. "C.R.S. 18-3-102" returns murder in the first degree.
Part of Pipeworx — an MCP gateway connecting AI agents to 1704+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
The official site redirects into a wall; a second official route does not
leg.colorado.gov's "C.R.S. Online" link does not host the text itself — it
redirects into advance.lexis.com, a JS-rendered, cookie-session SPA whose
own next step is a login-capture redirect (CaptureReturnUrl). That is the
same class of wall this pack family declines (ASP.NET postback / anti-bot),
and it has no stable per-citation URL to probe anyway.
The Office of Legislative Legal Services separately publishes the whole C.R.S. as downloadable files, one per title, on its own plain file server — no login, no JS, keyless:
Files are per title, citations are per section — and titles are BIG
A title file holds the whole title plus case-law annotations after every
section (Title 18 alone is ~9.5MB), so the section is cut out of it bounded
by the next section heading OR the start of the annotations, whichever comes
first. Annotations are Lexis's editorial case-law commentary, not the
statute, and are never returned — only the statutory text, the Source:
amendment history, and Cross references: (all public law).
The cut runs on the raw HTML, not the tag-stripped text, on purpose: a real
section heading is the only place a citation is wrapped in
<b><span>NUM.</span></b>. The per-article mini table-of-contents that
precedes every article, and plain cross-references inside OTHER sections'
annotations (a citation that happens to land at the start of a text line
once tags are stripped), both repeat the same number unbolded — textually
indistinguishable from a heading after stripping, never bold in the source.
Three file formats across 27 years of archive
Checked against Title 18 (old enough to exist in every edition):
2025 is declined explicitly (edition_format_unsupported) rather than risk
a silently wrong parse for one edition out of twenty-seven — almost
certainly a one-year migration artifact between the other two generators.
If a future year changes format again, co_statute will start answering
section_not_found for a title that exists; the same risk every sibling
state pack already takes on the current year alone, just extended here
across 25 archived years too.
Topic search is a nearby-heading window, not full hierarchy awareness
co_search runs against the ~18MB General Index (crs2026-index.htm), which
is a nested tree — a topic heading followed by indented sub-entries that do
not repeat the heading word. Matching only a result line misses that
structure, so each query word is matched within a small window of the lines
immediately preceding a citation-bearing entry. This works well for short
topics (1-3 words: "landlord", "security deposit", "concealed handgun") and
gets noisier on long compound phrases, which is why the tool description
says so.
The four capabilities
- By citation —
co_statute. Yes. - By topic —
co_search(General Index) andco_titles(title list with subject hints). Yes, with the window caveat above. - Historical version —
co_statutewithyear, 2000-2024 and current; 2025 declined (see above). Yes, mostly. - Amendments/history — the
Source:line, surfaced ashistory. Yes for the current template and 2000-2024; for 2000-2024 editionscross_referencesis usuallynullbecause that era files "Cross references:" inside the annotations block this pack deliberately excludes.
Data sources
- https://olls.info/crs/ — current C.R.S. edition, by title.
- https://olls.info/crs-archive/ — archived editions back to 2000, by title
and year.
robots.txtdisallows crawling this path for SEO; that is not a redistribution question for data this public (CLAUDE.md's standing ruling). - https://olls.info/crs/crs2026-index.htm — the General Index, for
co_search.
Colorado Office of Legislative Legal Services. Colorado statutes are public record.
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
What this endpoint actually serves
tools/list at https://gateway.pipeworx.io/colorado-code/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
Both URLs reach the same gateway and the same 1704+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
No MCP client? Call it over HTTP
No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/co_statute. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
Standalone (no gateway account)
This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:
Or run it directly to confirm it starts:
It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call
for only this pack's tools — none of the shared meta-tools the gateway
connection above adds. Same source, same tools, no ask_pipeworx routing.
Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
來源:README.md,提交 eef9e95
工具
0版本歷史
1- v0.1.0最新Oct 7, 2026