Skip to main content
MCP server CX Codex

NYC Charter, Laws and Rules — Claude Code MCP server: what it does

NYC Charter, Laws and Rules is an MCP server for Claude Code that gives an AI assistant access to New York City legal documents.

MIT ★ 10 updated 2026-11-16

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env NYC_LAWS_INDEX_DIR=<NYC_LAWS_INDEX_DIR> --env NYC_CLR_FOOTER=<NYC_CLR_FOOTER> --transport stdio nyc-charter-laws-and-rules -- npx -y @betanyc/nyc-charter-laws-rules
Open on GitHub

What NYC Charter, Laws and Rules does

The server connects the official legal corpus of New York City, including the city charter, administrative code, and rules, directly to your AI assistant. Eight built-in tools let the model search keywords, retrieve sections by citation, and check document versions. The package runs without external API keys or accounts since the entire legal corpus is bundled locally.

All documents are packaged with the distribution, so no setup or environment variables are required to start querying. Regular updates are delivered through automated package releases whenever the underlying legal text changes.

What it helps with

  • search keywords across the city charter, administrative code, and rules
  • retrieve a specific legal section by citation or chapter identifier
  • check the currency date and version of the bundled legal corpus
  • list top-level chapters and titles within each document

Example prompts for the agent

  • Search the NYC laws for open data rules
  • Retrieve section § 259 using get_section
  • Call get_version to check the currency of the legal texts

How to install NYC Charter, Laws and Rules

Platform CLI

claude mcp add --env NYC_LAWS_INDEX_DIR=<NYC_LAWS_INDEX_DIR> --env NYC_CLR_FOOTER=<NYC_CLR_FOOTER> --transport stdio nyc-charter-laws-and-rules -- npx -y @betanyc/nyc-charter-laws-rules

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about NYC Charter, Laws and Rules

How to install NYC Charter, Laws and Rules in Claude Code?

Run claude mcp add nyc-charter-laws-rules -- npx -y @betanyc/nyc-charter-laws-rules in your terminal.

What does NYC Charter, Laws and Rules do?

It is an MCP server that exposes tools for AI assistants to query and read New York City's primary legal documents directly.

What is needed to run NYC Charter, Laws and Rules?

No API key, signup, or environment variables are required because the legal corpus is bundled with the package.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open