rcw-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rcw-mcp Show me RCW 9A.36.021"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
chaimp-mcp-rcw
A small Model Context Protocol (MCP) server for the Revised Code of Washington (RCW) — Washington State statutes. Built as a learning project: a stdio MCP server in TypeScript that Claude Code (or any MCP client) can call.
Tools
Tool | What it does | Source |
| Full text of an RCW section by cite (e.g. | scrapes |
| Find RCW citations matching a partial cite (e.g. |
|
| Bills in a biennium that amend/affect a cite |
|
Note on search
Washington exposes no public full-text RCW search API. search matches
citations, not keywords — "assault" returns nothing, "9A.36" returns the
sections in that chapter. Use it to discover cites, then pass them to get_section.
Related MCP server: cpl-mcp
Data sources (all public, read-only, no keys)
Section text:
https://app.leg.wa.gov/RCW/default.aspx?cite=<CITE>(HTML, parsed with cheerio)Cite lookup:
https://lawdoccitelookup.leg.wa.gov/v1/rcw/<query>/<limit>(JSON)Affecting bills:
https://wslwebservices.leg.wa.gov/rcwciteaffectedservice.asmxoperationGetLegislationAffectingRcwCite(SOAP 1.1)
Setup
git clone https://github.com/RetiredOnMyTerms/rcw-mcp.git
cd rcw-mcp
npm install
npm run typecheck # tsc --noEmit
npm run smoke # hit all three data sources, print resultsAdd to Claude Code
Run these from the repo root — $(pwd) / $(Get-Location) fills in the
absolute path, so nothing is machine-specific.
Run source directly with tsx (no build step):
# macOS / Linux / Git Bash
claude mcp add rcw --scope user -- npx tsx "$(pwd)/src/index.ts"# Windows PowerShell
claude mcp add rcw --scope user -- npx tsx "$(Get-Location)\src\index.ts"Or build and point at the compiled output:
npm run build
claude mcp add rcw --scope user -- node "$(pwd)/dist/index.js"See INSTALL.md for full details and other MCP clients.
Then in a Claude Code session:
"Get RCW 9A.36.021" →
get_section"What RCW sections are in chapter 42.56?" →
search"What bills in 2007-08 affected RCW 9A.36.021?" →
cite_affected
Inspect standalone
npm run inspector # opens the MCP Inspector against the serverLayout
src/
index.ts MCP bootstrap: registers the 3 tools, stdio transport
http.ts fetch wrapper (User-Agent, timeout, normalized errors, SOAP POST)
cache.ts in-memory TTL cache
tools/
getSection.ts scrape + parse a section page (cheerio)
search.ts cite-lookup JSON client
citeAffected.ts SOAP call + XML parse (fast-xml-parser)
scripts/
smoke.ts direct end-to-end test of all three toolsNotes / limitations
Scraper selectors track the current
app.leg.wa.govmarkup; if the site changes,get_sectionreturns an honest error rather than garbage.get_sectioncaches parsed sections in memory for 1 hour (process lifetime).All statute content is © the State of Washington; this tool only fetches and formats public pages.
License
MIT © James Whelan. Covers this tool's code only — RCW statutory text is a work of the State of Washington.
Available Tools
3 toolscite_affectedBills affecting an RCW citeA
List bills in a biennium that amend or affect a given RCW citation, via the Washington State Legislature SOAP web service. Biennium format is "2025-26" (defaults to the current biennium, 2025-26).
Inputs: cite (required), biennium.
get_sectionGet RCW sectionA
Return the full text of a Revised Code of Washington (RCW) section by its citation, e.g. 9A.36.021. Includes the caption, statutory text, and history/notes. Source: app.leg.wa.gov.
Inputs: cite (required).
searchSearch RCW citationsA
Find RCW citations matching a partial citation string (e.g. "9A.36" -> 9A.36.011, 9A.36.021, ...). NOTE: this matches CITATIONS, not keywords — free-text words like "assault" return no results, because there is no public full-text RCW search API. Feed results into get_section.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: get_section retrieves full text, search finds citations by partial citation string, and cite_affected lists bills affecting a citation. There is no overlap between these functions, and the descriptions explicitly warn about search's limitation to citations, reducing ambiguity.
The naming conventions are inconsistent: 'get_section' follows a verb_noun pattern, 'search' is a bare verb, and 'cite_affected' uses an awkward compound that doesn't clearly convey its purpose. This mixed style makes the tool set feel less predictable and cohesive.
With only 3 tools, the server is on the thin side, but for a niche domain like RCW legal references, this count is reasonable. The tools cover the core workflows of finding a section, retrieving its text, and checking related bills, so the count feels appropriate for the scope.
The set provides essential retrieval and citation lookup, but notable gaps exist: there is no keyword search, no browsing of titles or chapters, and legislative history is limited to bills affecting a specific citation. While the description notes an API constraint, the surface is still somewhat incomplete for broad legal research.
Maintenance
Related MCP Connectors
An MCP server that provides congressional transcripts
MCP server for US nursing facility search and ownership lookup (NursingHomeDatabase).
MCP server for Chinese law lookup: statutes, regulations and articles by keyword or law name.
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
Related MCP Servers
AlicenseAqualityBmaintenanceMCP server for Vaquill legal research API. Covers US federal + 50-state law (USC, CFR, state legislation, CourtListener case law)37168 PyPI9MIT- FlicenseAqualityDmaintenanceMCP server that wraps the NY Senate OpenLegislation API to look up and search the New York Criminal Procedure Law by citation or keyword.2-
- AlicenseAqualityBmaintenanceAn MCP server for accessing Turkish legislation (laws, regulations, decrees) via the Adalet Bakanligi API, providing search, full-text retrieval, and structured citations.562 PyPI2Apache 2.0
- AlicenseAqualityBmaintenanceMCP server for Australia's Federal Register of Legislation. Enables searching and fetching Commonwealth Acts with verifiable citations.391 PyPIApache 2.0