
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