What it does
This MCP server gives AI assistants access to New York City's three primary legal documents: the City Charter, the Administrative Code and the Rules of the City of New York. It exposes seven tools for keyword search across the documents, retrieval of a section by citation, listing and retrieving chapters or titles, reporting the currency date of each document, and returning change notes and publisher contact details. The repository also includes scripts that fetch and parse bulk XML from American Legal Publishing, plus committed JSON and Markdown indexes.
It suits cases where an assistant needs to look up or quote specific city legal text, such as a section by citation like § 259 or Chapter 11, or find sections by keyword. Search is keyword matching rather than question answering, so short queries such as "sidewalk shed" work best. The Markdown index can be browsed directly on GitHub without running anything.
No API key, signup or environment variables are needed, because the text is served from an offline corpus bundled with the package. Cloning the repository gives a ready-to-use index; refreshing from American Legal Publishing is only needed when updated data is wanted. The get_version tool reports the dates the served text reflects.
Limitations and requirements
The bundled law text reflects the date of the release, so an npm install may lag the main branch by up to about a day. Automatic releases pause while a hand-bumped version is waiting to be published or a release run has failed. Search has no term weighting, so a long definitions section containing every query word can rank above the section sought. The get_title tool returns chapter and title-level records only, not the full contents of a title.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
NYC Charter, Laws and Rules
Search and read the NYC Charter, Administrative Code and Rules of the City of New York
v0.4.4As shown on registry.modelcontextprotocol.io when we last read it