betanyc avatar

NYC Charter, Laws and Rules

betanyc/nyc-charter-laws-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 tools

Public 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_DIR

Optional. Serve the index in this directory (laid out like data/index/json/) instead of the bundled one

NYC_CLR_FOOTERdefault: full-then-compact

Optional. 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


View the full README on GitHub

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

More from betanyc

Related Search & Web Crawling MCP servers

View all
1hasdata avatarHasData Google Scholarhasdata/google-scholar-mcpGoogle Scholar search results, citation counts and citation export formats, as structured JSON.10stars
2hasdata avatarHasData TikTokhasdata/tiktok-mcpPublic TikTok profiles, videos, comments and keyword search as JSON. No developer account.10stars
3idealo avataridealo MCP Serveridealo/mcp-server-guideSearch products, compare prices and discover deals across 6 European markets with your AI assistant.0stars
4cyanheads avatarGdelt Mcp Servercyanheads/gdelt-mcp-serverSearch and analyze global news coverage and US TV transcripts via the GDELT Project APIs.10stars
5seatable avatarSeatableseatable/seatable-mcpMCP server for SeaTable — read, write, search, link, and query data in your bases10stars
6paulbreuler avatarLimpspaulbreuler/limpsMCP planning server for AI agents — plan management, full-text search, and task lifecycle10stars