
NYC Charter, Laws and Rules
Search and read the NYC Charter, Administrative Code and Rules of the City of New York
- GitHub stars
- 10
- tools
- 5
- transport
- STDIO
- env vars
- 2
- last updated
- Nov 9, 2026
Tools
5 toolsPublic tool metadata for what this MCP can expose to an agent.
searchKeyword search across the NYC Charter, Administrative Code, and Rules.
Keyword search across the NYC Charter, Administrative Code, and Rules.
No parameter schema in public metadata yet.
get_sectionRetrieve a specific section by citation or heading fragment.
Retrieve a specific section by citation or heading fragment.
No parameter schema in public metadata yet.
list_titlesList the top-level chapters or titles of a document.
List the top-level chapters or titles of a document.
No parameter schema in public metadata yet.
get_titleRetrieve chapter/title records matching an identifier.
Retrieve chapter/title records matching an identifier.
No parameter schema in public metadata yet.
get_versionReturn the currency date for each document.
Return the currency date for each document.
No parameter schema in public metadata yet.
Sponsors
Configuration
NYC_LAWS_INDEX_DIROptional. Serve the index in this directory (laid out like data/index/json/) instead of the bundled one
NYC_CLR_FOOTERdefault: full-then-compactOptional. How much legal disclaimer each response carries: full-then-compact (default) or full
Readme
nyc-charter-laws-rules
The single place to access, process, and query New York City's three primary legal documents:
- The New York City Charter
- The New York City Administrative Code
- The Rules of the City of New York
This repo includes:
- A MCP (Model Context Protocol) server so AI assistants can query the documents directly
- Scripts to fetch and parse the latest bulk XML from American Legal Publishing
- A committed JSON index (
data/index/json/) for machine use - A committed Markdown index (
data/index/markdown/) for human browsing — readable directly on GitHub
Clone the repo and everything is ready to use. No setup required to browse or query the current index. Run npm run fetch-data && npm run build-index only when you want to refresh from AML.
Vibe coded with Claude by BetaNYC.
What's changed: new tools, corrections and other changes a reader would notice, newest first. Daily law text updates are in CHANGELOG.md.
API key
Details
- Repository
- github.com/betanyc/nyc-charter-laws-rules
- Category
- Search & Web Crawling
- Package
@betanyc/nyc-charter-laws-rules- Transport
- STDIO
- Registry
- MCP registry, active