Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

NYC Council

by BetaNYCversion 2.9.0i★ 7iRuns on your computerRepository ↗
Registry nameio.github.BetaNYC/nyc-council-mcp

How to install

What it does

NYC Council legislation: bills, hearings, votes and members, from a local index or live Legistar

  • Connects Runs on your computer
  • Account or key Needs LEGISTAR_TOKEN
  • Category Law & government data

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity11/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score23/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install NYC Council. Follow https://mcp.popnx.com/i/betanyc-nyc-council-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a NYC Council key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server NYC Council for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "nyc-council": { "command": "npx", "args": [ "-y", "@betanyc/nyc-council-mcp", "serve" ], "env": { "LEGISTAR_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For LEGISTAR_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the NYC Council tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a NYC Council key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "nyc-council": {
          "command": "npx",
          "args": [
            "-y",
            "@betanyc/nyc-council-mcp",
            "serve"
          ],
          "env": {
            "LEGISTAR_TOKEN": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use NYC Council and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using NYC Council or shows a NYC Council tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • LEGISTAR_DB_PATH Path to a legistar.db built with the index subcommand, for the fast local tools

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect NYC Council yet

NYC Council runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect NYC Council

  • You need a NYC Council key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a NYC Council key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a NYC Council key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a NYC Council key (create it on the maker’s site) · Install Node.js on your computer first (one time)

B · Others in Law & government data that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a NYC Council key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server NYC Council for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user nyc-council --env LEGISTAR_TOKEN=your-value -- npx -y @betanyc/nyc-council-mcp serve 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For LEGISTAR_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the NYC Council tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a NYC Council key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user nyc-council --env LEGISTAR_TOKEN=your-value -- npx -y @betanyc/nyc-council-mcp serve

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see NYC Council listed as connected

  6. Try it

    Use NYC Council and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using NYC Council or shows a NYC Council tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • LEGISTAR_DB_PATH Path to a legistar.db built with the index subcommand, for the fast local tools

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a NYC Council key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server NYC Council for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "nyc-council": { "command": "npx", "args": [ "-y", "@betanyc/nyc-council-mcp", "serve" ], "env": { "LEGISTAR_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For LEGISTAR_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the NYC Council tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a NYC Council key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the NYC Council settings, LEGISTAR_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use NYC Council and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using NYC Council or shows a NYC Council tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • LEGISTAR_DB_PATH Path to a legistar.db built with the index subcommand, for the fast local tools

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a NYC Council key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server NYC Council for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "nyc-council": { "type": "stdio", "command": "npx", "args": [ "-y", "@betanyc/nyc-council-mcp", "serve" ], "env": { "LEGISTAR_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For LEGISTAR_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the NYC Council tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a NYC Council key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the NYC Council settings, LEGISTAR_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use NYC Council and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using NYC Council or shows a NYC Council tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • LEGISTAR_DB_PATH Path to a legistar.db built with the index subcommand, for the fast local tools

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use NYC Council💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user nyc-council --env LEGISTAR_TOKEN=your-value -- npx -y @betanyc/nyc-council-mcp serve

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "nyc-council": {
      "command": "npx",
      "args": [
        "-y",
        "@betanyc/nyc-council-mcp",
        "serve"
      ],
      "env": {
        "LEGISTAR_TOKEN": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "nyc-council": {
      "command": "npx",
      "args": [
        "-y",
        "@betanyc/nyc-council-mcp",
        "serve"
      ],
      "env": {
        "LEGISTAR_TOKEN": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "nyc-council": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@betanyc/nyc-council-mcp",
        "serve"
      ],
      "env": {
        "LEGISTAR_TOKEN": "your-value"
      }
    }
  }
}

Values you fill in

  • LEGISTAR_TOKEN secret required env
    Free Legistar API token for the live tools. Set this, LEGISTAR_DB_PATH, or both
  • LEGISTAR_DB_PATH env
    Path to a legistar.db built with the index subcommand, for the fast local tools

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
79/wk
Connection
Runs on your computer
Latest versioni
2.9.0
Published to registryi
Nov 14, 2026
Code last changedi
Nov 19, 2026
Maker
BetaNYC
Packages
npm: @betanyc/nyc-council-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account BetaNYC, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed today

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for @betanyc/nyc-council-mcp@2.9.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/betanyc-nyc-council-mcp.svg)](https://mcp.popnx.com/en/servers/betanyc-nyc-council-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Law & government datai

  • More stars than 97% of the other 1957 servers in this category
  • Published to the registry more recently than 88% of the other 1957 servers in this category
  • Basic checks equal to or better than 99% of the other 1957 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is NYC Council safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: LEGISTAR_TOKEN

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed today, and the latest version (2.9.0) reached the registry 5 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Global law, Open Legal Data (Germany), LibreJustice, InfraNode, Fedlex Connector

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Global law

The law of nearly every country on earth, any date: read it, see what changed it, check citations.

by lexifinaWidely used★ 2.1KUpdated 9 days ago

Runs in the cloud✓ lexifina.com

LibreJustice

Search French-language and European case law and French legal texts (codes, statutes, treaties).

by librejusticeEarly★ 36Updated 2 months ago

Runs in the cloud✓ service owner · librejustice.fr

InfraNode

Keyless open data for 84 German cities: 12 lean read-only MCP tools covering 67 data types.

by street1983nkEarly★ 18Updated 5 months ago

Runs in the cloud✓ service owner · infranode.dev

Fedlex Connector

Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.

by JayTheSkierEarly★ 8Updated 7 months ago

Runs in the cloud✓ service owner · fedlex-connector.ch
Compared with similar ones
This one
NYC Council
Global lawOpen Legal Data (Germany)LibreJusticeInfraNodeFedlex Connector
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyYesNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/44/44/4
LicenseMITNOASSERTIONMITApache-2.0Apache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

@betanyc/nyc-council-mcp

An MCP (Model Context Protocol) server for NYC Council legislative data. Version 2 adds a hybrid mode: a local SQLite index for sub-second search and exploration, plus the live NYC Legistar API for authoritative real-time data.

Built by BetaNYC with Claude.

What's changed: WHATS-CHANGED.md lists every change a reader would notice, newest first, including every correction and what to re-check. Your AI assistant can read it too, with the whats_changed tool.


What it does

Ask an AI assistant about New York City Council legislation and get answers grounded in the Council's own records: bills, resolutions and land use items, their full text and summaries, sponsors, hearings, votes, committee memberships and attachments.

The local index holds every matter in the jehiah/nyc_legislation archive: on 2026-11-11 that was 21,803 matters (13,059 Introductions, 6,198 Resolutions, 2,545 Land Use items), 17,532 meetings, 517,562 individual recorded votes and 254 people. The live tools read the Council's Legistar API directly.


What's new in 2.9.0

  • "What changed?" and "Who built this?" Two new tools work in every mode, with no token or index. whats_changed answers from WHATS-CHANGED.md, the plain-language history of this server back to 1.0.0, including every correction and what to re-check. about_betanyc says who built the server, how to report a bug or ask for a feature, and which version of BetaNYC's shared code it runs.
  • BetaNYC's shared module 1.3.7. about_data answers now give BetaNYC's contact for questions and error reports about the data (lab@beta.nyc), say who fixes an error in the data, the publisher or BetaNYC, and list any source the server cannot show.
  • With both data sources set up, the server now lists 28 tools.

What's new in 2.8.0

  • Who holds a district. New tool district_member says who held Council District 1 to 51 on any date. It reads the City's list of every Council term since 1999 (NYC Open Data uvw5-9znb), which ships with the package. When the City's file is behind, the answer names the missing member. On 2026-11-12 that was Carl Wilson, District 3. See Known traps.
  • Committees, chairs and caucuses. New tools get_member_roles and committee_roster say who chairs what and who sits where, today or on a past date, from Legistar's own membership records. Party is never inferred from a caucus.
  • Member facts curated by BetaNYC, labeled as such. get_council_member and get_member_roles add a curated block with Wikidata and Wikipedia links, party as every ballot line the member won on (NYC has fusion voting), and office social accounts. Each fact carries its source and check date, and the block says it is not an official record. Rules: data/README.md.
  • "Where does this data come from?" New tool about_data works in every mode. It gives each source, its publisher, whether it is official or BetaNYC's curation, how current it is on this server, its terms, a credit line and where to report an error. The same facts are in DATA-SOURCES.json and a DCAT-US 3.0 catalog, data.json, with lab@beta.nyc as BetaNYC's contact. See Where the data comes from.
  • Search the full text. Local search now reads summaries and full text, not only titles. New tool get_matter finds one matter by file number or Local Law number, with its attachments. New live tool get_bill_attachments lists a matter's files with download links.
  • Links for every matter type. legistar_url now opens Resolutions, Land Use, M and T items, not only Introductions. See legistar_url.
  • Answers you can date and check. Every local answer names when the index was built and from which archive commit. With a token, upcoming_events checks each meeting's status live. Vote times are New York local time, and voting records are ordered by vote date and name the member who voted.
  • Upgrading: the first index run after upgrading rebuilds the index in full, once (about 25 seconds on the 2026-11-11 archive).

The full list is in CHANGELOG.md.


Quick start

The recommended setup, for Claude Code:

Register at user scope so the server is available from any project:

claude mcp add nyc-council-mcp \

--scope user \ npx -- -y @betanyc/nyc-council-mcp serve

Then add your environment variables to ~/.claude.json under the mcpServers entry:

{

"mcpServers": { "nyc-council-mcp": { "command": "npx", "args": ["-y", "@betanyc/nyc-council-mcp", "serve"], "env": { "LEGISTAR_TOKEN": "your_token_here", "LEGISTAR_DB_PATH": "/Users/you/legistar/legistar.db" } } } }

Set only LEGISTAR_TOKEN for live-only mode, or only LEGISTAR_DB_PATH for local-only mode.


Prerequisites

  • Node.js 18 or later
  • For live tools: a free Legistar API key — register here
  • For local tools: the jehiah/nyc_legislation archive (~920 MB, one-time clone)

Installation

Recommended: hybrid mode (both data sources)

Step 1 — Get a Legistar API key

Register at council.nyc.gov/legislation/api. You'll receive a token by email.

Step 2 — Clone the legislation archive

git clone --depth 1 https://github.com/jehiah/nyc_legislation.git ~/legistar/nyc_legislation

This is about 920 MB and takes a few minutes. It only needs to be done once.

Step 3 — Build the local index

npx @betanyc/nyc-council-mcp index \

--archive ~/legistar/nyc_legislation \ --db ~/legistar/legistar.db \ --verbose

This takes roughly 25 seconds and produces a legistar.db file of about 1 GB. On the 2026-11-11 archive it indexed 21,803 matters, 17,532 events and 517,562 roll-call vote rows. It also loads the Council terms list that ships with the package, with no network call.

Step 4 — Configure your MCP client

Add both environment variables to your MCP config. See Configuration below.


Live-only mode (no local index)

If you only want the live Legistar API tools and don't need local search, just set LEGISTAR_TOKEN and skip the archive clone.


Local-only mode (no API key)

If you only want fast local search (no real-time data), set LEGISTAR_DB_PATH and skip the API key. Note: get_upcoming_hearings, get_bill (current status), and similar live tools will be unavailable. about_data, district_member and the other local tools work without a token.

Build from source
git clone https://github.com/BetaNYC/nyc-council-mcp.git

cd nyc-council-mcp npm install && npm run build LEGISTAR_TOKEN=your_token LEGISTAR_DB_PATH=./legistar.db node dist/index.js serve

Keeping your index fresh

The archive is updated most weekdays. Run these two commands to pull the latest data and update your index:

# Pull the latest archive files

cd ~/legistar/nyc_legislation && git pull

Rebuild incrementally (only processes new/changed files — takes seconds after the first build)

npx @betanyc/nyc-council-mcp index \ --archive ~/legistar/nyc_legislation \ --db ~/legistar/legistar.db

You never need to wait for a BetaNYC-hosted snapshot. Incremental mode (the default) is fast enough to run manually whenever you want fresh data.

Automated daily updates (cron):

# Add to your crontab: daily at 6am

0 6 * * * cd ~/legistar/nyc_legislation && git pull && npx @betanyc/nyc-council-mcp index --archive ~/legistar/nyc_legislation --db ~/legistar/legistar.db

Force a full rebuild:

npx @betanyc/nyc-council-mcp index \

--archive ~/legistar/nyc_legislation \ --db ~/legistar/legistar.db \ --full

Note: The local index is only as current as your last index run — run the daily cron above and it stays about a day behind live Legistar; leave it for a month and it is a month stale. The upstream archive itself updates most weekdays. For current status and upcoming hearings, use the live API tools (get_bill, get_upcoming_hearings).

Every local answer ends with a source line: when the index was built and which jehiah/nyc_legislation commit it came from, e.g. Source: local index built 2026-11-12T11:30:07Z from jehiah/nyc_legislation@9e52935 (archive commit 2026-11-11T23:38:10Z). It is a second text item, after the JSON. With no LEGISTAR_TOKEN, the line also says the answer was not checked live, and that an empty answer means "not in this index", not "does not exist".

Why upcoming meeting status is checked live: Legistar can change a meeting's status without updating its last-modified time. Event 22725 went from Final to Deferred with its timestamp still 2026-09-10, so the archive never fetched it again. On 2026-11-12, 10 of 658 meetings in 2026 differed this way, all Final → Deferred.


API key

A free API key is optional — it unlocks the live Legistar API tools, but the server also runs in local-only mode without one.

  • Live tools (get_bill current status, get_upcoming_hearings, confirmation queries) require a free Legistar API key. Register at council.nyc.gov/legislation/api — you'll receive a token by email — and set it as the LEGISTAR_TOKEN environment variable.
  • Local fast-path tools (search, browse, voting history, aggregation) need no key — they read the local SQLite index at LEGISTAR_DB_PATH.

You must set at least one of LEGISTAR_TOKEN or LEGISTAR_DB_PATH; set both for full hybrid mode. Example (live tools):

export LEGISTAR_TOKEN="your-legistar-token"

See Setup and Environment variables for full details.


Configuration

Environment variables
VariableRequired forNotes
LEGISTAR_TOKENLive API toolsRegister at council.nyc.gov/legislation/api
LEGISTAR_DB_PATHLocal SQLite toolsPath to your built legistar.db

Do not commit tokens to version control.

Claude Desktop

Add to claude_desktop_config.json:

{

"mcpServers": { "nyc-council": { "command": "npx", "args": ["-y", "@betanyc/nyc-council-mcp", "serve"], "env": { "LEGISTAR_TOKEN": "your_token_here", "LEGISTAR_DB_PATH": "/Users/you/legistar/legistar.db" } } } }


Tools reference

Fast-path tools (local SQLite index)

These require LEGISTAR_DB_PATH and a built index (see Setup).

ToolDescription
search_legislationFull-text search across all legislation: Introductions, Resolutions, Land Use and every other matter type. Searches titles, sponsors, summaries and the full text; a title hit ranks above a body hit. Rows carry version and local_law
get_matterOne matter by file number (Int 1122-2024) or Local Law number (2025/153): summary, version, Local Law number, attachments with download links, legistar_url, and the full text on request (include_text)

| get_member_roles | A member's committ

Only the beginning is shown; read the rest in the repo