@pipeworx/new-york-code
Connect: https://gateway.pipeworx.io/new-york-code/mcp · Install: one-click buttons
Tools: 2
The New York Consolidated Laws. Give it PEN and 125.25, get back murder in
the second degree.
Auth
Needs a key, unlike the other state packs. NY Senate’s Open Legislation
requires one — free from https://legislation.nysenate.gov/. Pipeworx fronts
one; pass _apiKey to use your own.
The one state source that tells the truth about a miss
Every other state statute site returns HTTP 200 with an empty page when a
section does not exist, so each pack has to detect emptiness structurally. New
York returns success: false. That is worth knowing when comparing behaviour
across the state packs — here the not-found is the upstream’s own verdict, not
our inference.
Tools
| Tool | Returns |
|---|---|
ny_law_section | Full statutory text, heading, and the date that version took effect |
ny_laws | The 137 NY law corpora, filterable (“labor” → LAB) |
Caveats
- The API returns literal
\nsequences, not newlines. This pack unescapes them; raw callers of the API will see them. effective_datematters. New York versions its statutes, so the text you get is as of a date — check it before relying on wording.- Section numbers are not contiguous; repealed sections are normal.
Data source
NY Senate Open Legislation API. New York statutes are public record.
Tools
- ny_law_section — Get the FULL TEXT of a section of the New York Consolidated Laws — New York state statutes — by citation. “Penal Law 125.25” is law “PEN”, section “125.25”. Returns the statutory text, its heading and
- ny_laws — List the New York law corpora — Penal Law is PEN, Labor Law is LAB, Vehicle and Traffic is VAT, and so on — optionally filtered by subject. Use when you know the subject but not the law id, before cal
Tools
-
ny_law_section— Get the FULL TEXT of a section of the New York Consolidated Laws — New York state statutes — by citation. Penal Law 125.25 is law PEN , section 125.25 . Returns the statutory text, its heading and the -
ny_laws— List the New York law corpora — Penal Law is PEN, Labor Law is LAB, Vehicle and Traffic is VAT, and so on — optionally filtered by subject. Use when you know the subject but not the law id, before cal