@pipeworx/california-code

Connect: https://gateway.pipeworx.io/california-code/mcp · Install: one-click buttons

Tools: 2

The text of California’s 29 codes. Give it PEN and 187, get back the murder statute.

Auth

None. Both tools are keyless.

Why this isn’t a mirror

The probe that led to this pack (docs/state-law-probe.md) found California publishing a ~1.0 GB bulk drop daily and sized the work as a CourtListener-style mirror. It doesn’t need to be one — leginfo serves any section directly:

?lawCode=PEN&sectionNum=187  →  "187. (a) Murder is the unlawful killing…"

So this is the us-code shape, not the CourtListener shape: no storage, no recurring cost, no quarterly refresh obligation. That matters well beyond California — it means the other 49 states are 49 small packs rather than 49 mirrors, which changes whether the long tail is worth building at all.

Tools

ToolReturns
ca_code_sectionFull statutory text, where it sits in the code, and when it was last amended
ca_codesThe 29 codes and their subjects, filterable (“divorce” → FAM)
ca_code_section({code: "PEN", section: "187"})
  → located_in: PART 1 → TITLE 8 → CHAPTER 1. Homicide
    last_affected: Amended by Stats. 2023, Ch. 260, Sec. 14. (SB 345)

Caveats worth passing on

  • The upstream fails silently, and this pack does not. A nonexistent section returns HTTP 200 with a kilobyte of page furniture and no statute — no error, no 404. We detect the missing content container and return an explicit section_not_found. Treating that page as an answer would report “no such law” as though it were the law.
  • Subdivisions are not separate documents. 187(a) renders the same empty shell upstream, so it’s stripped to 187 and the response says so.
  • Section numbers are not contiguous. Repealed and reserved numbers are normal; a miss is usually a real gap rather than a bad request.
  • last_affected is per section, which is better currency than the federal code can offer — us-code can only tell you which annual edition the text came from.
  • us-code — federal statutes, the same citation-resolver shape
  • court-listener — California cases interpreting these sections, with full text
  • recap — federal filings

Data source

https://leginfo.legislature.ca.gov/ — California Legislative Information. California statutes are public record.

Tools

  • ca_code_section — Get the FULL TEXT of a section of the California Codes — California state statutes — by citation. “Penal Code 187” is code “PEN”, section “187”. Returns the statutory text, where it sits in the code,
  • ca_codes — List the 29 California codes with their subjects — Penal Code is PEN, Vehicle Code is VEH, Labor Code is LAB, and so on. Keyless. Use when you know the subject area but not which code governs it, befo

Tools

  • ca_code_section — Get the FULL TEXT of a section of the California Codes — California state statutes — by citation. Penal Code 187 is code PEN , section 187 . Returns the statutory text, where it sits in the code, and
  • ca_codes — List the 29 California codes with their subjects — Penal Code is PEN, Vehicle Code is VEH, Labor Code is LAB, and so on. Keyless. Use when you know the subject area but not which code governs it, befo

Regenerated from source · build August 12, 2026