District of Columbia Code — DC statutes by citation, and topic/chapter search. Fleet #2887 (one of…
MCPpedia last refreshed this data
io.github.pipeworx-io/dc-code is an MCP server that district of Columbia Code — DC statutes by citation, and topic/chapter search. Fleet #2887 (one of…. Its tool list has not been published yet over http, requires no API key, and scores 85/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"dc-code": {
"url": "https://gateway.pipeworx.io/dc-code/mcp"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
District of Columbia Code — DC statutes by citation, and topic/chapter search. Fleet #2887 (one of…
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @pipeworx/mcp-dc-code against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in legal
Korean law: statutes, precedents, ordinances, treaties and citation verification (법제처 API).
Amazon, Walmart, TikTok Shop, Meta Ads, 1688, Shopee, Temu & social data API (200+ MCP tools).
Search Swedish parliamentary documents, speeches, votes, members, and statutes.
1M+ Swiss court decisions, statutes & doctrine with citation graph (DE/FR/IT). CC0, free, 45 tools.
MCP Security Weekly
Get CVE alerts and security updates for io.github.pipeworx-io/dc-code and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
District of Columbia Code (D.C. Code — DC statutes) — full section text by citation, and topic/chapter search over official headings.
Part of Pipeworx — an MCP gateway connecting AI agents to 1863+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
dc_statute(citation) — full current text of one D.C. Code section (e.g.
"22-2101", murder in the first degree), with the official heading,
disposition (in force / repealed / transferred / reserved), legislative
History annotations, Prior Codifications, and Cross References.dc_search(query?, title?, limit?) — topic/keyword search over every
section's official heading (e.g. "eviction notice", "concealed carry permit"), optionally scoped to one title. Pass title alone (no
query) to list every section under that title — a chapter-list/browse
mode. Not full-text search — the DC Council does not publish one.Keyless.
https://raw.githubusercontent.com/DCCouncil/law-xml-codified/{branch}/us/dc/council/code/titles/{title}/sections/{citation}.xml
— one section's current XML (its heading, body text, and annotations).
dc_statute calls this live, per request, pinned to the branch baked
below.us/dc/council/code/index.xml and
titles/{title}/index.xml — structure only (title/chapter/subchapter
headings + section citation lists, no catchlines). Used only by
scripts/bake-index.mjs.https://api.github.com/repos/DCCouncil/law-xml-codified/branches — used
only by scripts/bake-index.mjs to resolve the current publication
branch (see below).code.dccouncil.gov's own footer: "The codes and laws on this website are in
the public domain." The same footer: "Please do not scrape. Instead, bulk
download the HTML or XML" from the Council's GitHub organization. This pack
follows that instruction literally — it never touches code.dccouncil.gov,
only raw.githubusercontent.com content from DCCouncil/law-xml-codified.
Public-domain content plus the publisher's own explicit redistribution
channel means baking a catchline index from this repo needs no separate
grant (root CLAUDE.md, "mirror-needs-grant-proxy-does-not" — the
licence-permits-it branch, not the silent/forbidden one). Statutory text
itself is also never baked — dc_statute always fetches it live, per call.
GET /repos/DCCouncil/law-xml-codified reports default_branch: "publication/2021-10-18" — real git metadata, frozen at a 2021
codification, five years stale, even though the repo is actively published:
406 branches existed at bake time, the newest a
publication/{base-date}.{amendment-date} pair updated within days.
GitHub's "default branch" setting is unrelated to which branch is current.
scripts/bake-index.mjs lists every branch (paginated, ~5 unauthenticated
requests) and picks the lexicographically-latest name — safe because every
name is an ISO-8601 date or a dotted pair of them, so string order is
chronological order. The resolved name is baked as DC_CODE_BRANCH and is
what dc_statute's live fetch pins to.
A short section is one flat <text> element; a section with
lettered/numbered subsections nests <para> elements, each with its own
<num> ("(a)") and <text>, repeatedly — sometimes nested one level
deeper. A reason element reading "Repealed" (or Reserved/Transferred)
marks a non-substantive stub whose body text is literally "Repealed." —
surfaced as disposition rather than left for the caller to infer. A
trailing annotations block (History, Prior Codifications, Cross
References, Editor's Notes) is excluded from the body-text walk and returned
as its own grouped fields.
One parsing trap worth knowing: a num or heading element can car