NYC Charter, Laws and Rules
v0.8.0Search and read the NYC Charter, Administrative Code and Rules of the City of New York
Values you need
| Variable | What it is | |
|---|---|---|
NYC_LAWS_INDEX_DIR | optional | Optional. Serve the index in this directory (laid out like data/index/json/) instead of the bundled one |
NYC_CLR_FOOTER | optional | Optional. How much legal disclaimer each response carries: full-then-compact (default) or full Default: full-then-compact |
npm (npx) verified
Requires Node.js 18+
Run in a terminal
claude mcp add nyc-charter-laws-rules -- npx -y @betanyc/nyc-charter-laws-rules@0.8.0Add to
claude_desktop_config.json{
"mcpServers": {
"nyc-charter-laws-rules": {
"args": [
"-y",
"@betanyc/nyc-charter-laws-rules@0.8.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"nyc-charter-laws-rules": {
"args": [
"-y",
"@betanyc/nyc-charter-laws-rules@0.8.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"nyc-charter-laws-rules": {
"args": [
"-y",
"@betanyc/nyc-charter-laws-rules@0.8.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.nyc-charter-laws-rules]
command = "npx"
args = ["-y", "@betanyc/nyc-charter-laws-rules@0.8.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: search, get_section, list_titles, get_title, get_version, whats_changed, about_betanyc, about_data.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json