nyc-checkbook-mcp
It's a read-only MCP server that lets an AI assistant query New York City's Checkbook NYC financial data — spending, contracts, budget, payroll, and revenue — with no API key required.
Search contracts (
search_contracts) by agency, vendor code, contract ID, dates, amounts, industry, M/WBE category, and PIN; supports registered/pending and expense/revenue/all, with optional sub-vendor columns.Look up one contract (
get_contract) by contract ID for full details.Search spending checks (
search_spending) by payee name, agency, contract, issue date, amount, expense/spending category, and M/WBE code — also the way to find a vendor by name.Search budget (
search_budget) allocations by agency, department, budget code, and fiscal year.Search payroll (
search_payroll) by agency, job title, pay frequency, pay date, and amount (no employee names exist in the data).Search revenue (
search_revenue) by agency, revenue category/class/source, fund class, and fiscal year.Agency overview (
get_agency_spending) for all spending by one agency in a fiscal year.NYCEDC / OGE contracts (
search_nycedc_contracts) and NYCHA contracts (search_nycha_contracts) at release/line-item granularity.Provenance and help tools:
about_data(source, publisher, currency, terms, where to report errors),about_betanyc(who built it, where to file bugs), andwhats_changed(recent changes and corrections).smart_searchis disabled by default (opt-in viaCHECKBOOK_ENABLE_SMART_SEARCH=1) because the endpoint is unsupported and usually WAF-blocked; it returns fallback guidance instead of data.Every tool is read-only, declares that via MCP annotations, names its source and fetch time, and reports pagination; the server enforces the API's 1 request/second limit.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nyc-checkbook-mcp How much has NYC paid Deloitte in fiscal year 2024?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nyc-checkbook-mcp
Bringing New York City's checkbook to AI assistants everywhere.
An MCP (Model Context Protocol) server for NYC Checkbook data — spending, contracts, budget, payroll, and revenue — powered by the Checkbook NYC public API.
Checkbook NYC is the NYC Comptroller's financial transparency platform. It tracks $129B+ in annual city spending across 52,000+ vendors and 188,000+ contracts.
Vibe coded with Claude by BetaNYC.
What's changed: new tools, changes to what the tools return, and corrections, newest first.
Where the data comes from: each kind of data, its publisher, how current it is, its terms, and where to report an error. Also published as a DCAT-US 3.0 catalog, data.json.
Contents
Related MCP server: mcp-treasury
Getting started
To use this server you will need:
Node 18 or later
An MCP client, such as Claude Desktop or Claude Code
No API key is required. Checkbook NYC is a public API, so this server works out of the box — no signup, no token, no environment variables to set.
Note that the API is rate-limited to one request per second. This server enforces that internally, so you do not need to manage it yourself. See API notes and limits.
What it does
Exposes 13 tools over MCP. One of them, smart_search, is off unless the server is started with the environment variable CHECKBOOK_ENABLE_SMART_SEARCH set to 1 or true. While it is off, it sends nothing and answers that it is disabled, pointing to the structured tools.
Tool | Description |
| Structured contract search with filters (agency, vendor, status, amount, dates, MWBE) |
| Look up a single contract by ID |
| Search spending (check) records by agency, payee, contract, date, amount |
| Search budget data by agency, department, fiscal year |
| Search payroll records by agency, title, pay frequency, pay date, amount range (no employee names) |
| Search revenue data by agency and fiscal year |
| All spending for a specific agency in a fiscal year |
| NYCEDC / Other Government Entities (OGE) contracts — separate from citywide |
| NYCHA (Housing Authority) contracts at release/line-item granularity |
| Off by default (see above and the note under Tools reference). When switched on, it reads the checkbooknyc.com search page, which usually answers that it is unavailable |
| What changed in this server, newest first, from WHATS-CHANGED.md (filter by date or tag) |
| Who built this server, where to report a bug in this server or ask for a new feature, and BetaNYC's links |
| Where each kind of data comes from, from DATA-SOURCES.json: the publisher, whether it is an official record, how current it is, terms and credit line, where to check a figure and where to report an error (filter by topic or tool name) |
Every answer names its source and publisher, links to the Checkbook NYC API page, and gives the time it was fetched (a source object and a line after the JSON). about_data says BetaNYC modified this data (it turns XML into JSON, asks for fewer fields and trims spaces from values), so that line says so too: "BetaNYC modified this data: … This copy should not be considered the official record. Fetched … Official record: …". Every list says which records it holds, of how many, and which page to ask for next (a showing sentence).
Every tool only reads data, and says so to your AI app: each declares MCP tool annotations (readOnlyHint: true; openWorldHint: true on the Checkbook tools, which call the live API).
Finding a vendor by name? The contracts API filters vendors only by
vendor_code(there is no name lookup). Usesearch_spending(payee_name="…")to find checks paid to a named vendor. Note that many NYC contracts are held by resellers, so a software/product name may not match the contract's own vendor.
Tools reference
smart_searchis disabled by default, so it has no parameter table here. The checkbooknyc.com/smart_searchpath is not a supported Checkbook NYC API endpoint — it is a WAF-fronted (Incapsula), JavaScript-rendered web page, confirmed with the NYC Comptroller's office. This server does not call it by default; the tool stays registered but returns opt-in guidance unlessCHECKBOOK_ENABLE_SMART_SEARCHis1ortrue(and even then it is almost always WAF-blocked server-side). For vendor-name lookups usesearch_spending(payee_name="…").
search_contracts
Search registered or pending NYC contracts with structured filters.
Parameter | Type | Required | Default | Description |
| string | no |
|
|
| string | no |
|
|
| string | no | — | e.g. |
| string | no | — | 3-digit code, e.g. |
| string | no | — | Not a supported contracts filter — the Checkbook API has no vendor-name parameter and no name→code lookup. Supplying it returns actionable guidance (use |
| string | no | — | Vendor ID code (the only vendor filter for contracts) |
| string | no | — | e.g. |
| number | no | — | Minimum current contract amount |
| number | no | — | Maximum current contract amount |
| string | no | — | YYYY-MM-DD |
| string | no | — | YYYY-MM-DD |
| string | no | — | YYYY-MM-DD |
| string | no | — | YYYY-MM-DD |
| string | no | — | Award method code |
| string | no | — | M/WBE category code |
| string | no | — | Industry code |
| string | no | — | Contract type code |
| boolean | no |
| Append sub-vendor / subcontractor detail columns ( |
| number | no |
| Pagination |
| number | no |
| Results per page (max 20000) |
Known API limitation: registered revenue searches with fiscal_year return no rows. Checkbook NYC reports a match count but sends no records, whatever columns are requested (live, 2026-10-16). The tool refuses that combination with an error and guidance, without sending a request. Search without fiscal_year and narrow by date range instead.
Registered expense and all responses include documented WBE/EBE flags (prime_woman_owned_business, prime_emerging_business) and lineage/registration columns (mocs_registered, contract_class, parent_contract_id, prime_contract_version) in addition to the core fields.
Record field names depend on status and category. The API resolves a different domain for each, and records are returned with the API's own field names, not normalized:
Shape | Field names | Example fields |
registered, |
|
|
registered, | plain |
|
| plain |
|
search_contracts(agency_code="858", fiscal_year="2024")
search_contracts(vendor_code="V0000012345", status="registered")
search_contracts(amount_min=100000, amount_max=500000, mwbe_category="3")
search_contracts(agency_code="858", fiscal_year="2024", include_sub_vendors=true)Finding contracts by vendor NAME: the contracts API filters vendors only by
vendor_code, not by name (there is no name→code lookup in the API). To search by name, usesearch_spending(payee_name="…")for checks paid to a vendor. Many contracts are held by resellers, so a product/software name may not match the contract's own vendor.
get_contract
Look up a single contract by ID.
Parameter | Type | Required | Default | Description |
| string | yes | — | e.g. |
| string | no |
|
|
| string | no |
|
|
get_contract("CT185820201424467")
get_contract("DO185820252009241")search_spending
Search NYC spending records (checks issued to vendors).
Parameter | Type | Required | Default | Description |
| string | no* | — | e.g. |
| string | no | — | 3-digit agency code |
| string | no | — | Payee/vendor name |
| string | no | — | Filter by contract |
| string | no* | — | YYYY-MM-DD |
| string | no | — | YYYY-MM-DD |
| number | no | — | Minimum check amount |
| number | no | — | Maximum check amount |
| string | no | — | Expense category code |
| string | no | — |
|
| string | no | — | M/WBE category code |
| number | no |
| Pagination |
| number | no |
| Results per page (max 20000) |
*Either fiscal_year or issue_date_from is required (enforced).
search_spending(agency_code="858", fiscal_year="2024")
search_spending(payee_name="SHI International", fiscal_year="2025")search_budget
Search NYC budget allocations.
Parameter | Type | Required | Default | Description |
| string | no | — | e.g. |
| string | no | — | 3-digit agency code |
| string | no | — | Department code |
| string | no | — | Budget code |
| number | no |
| Pagination |
| number | no |
| Results per page |
search_payroll
Search NYC payroll records. Requires fiscal_year or calendar_year.
The Checkbook NYC API does not expose employee names — payroll records are keyed by agency, title, pay frequency, and pay date. There is no employee-name search.
Parameter | Type | Required | Default | Description |
| string | no* | — | e.g. |
| string | no* | — | e.g. |
| string | no | — | 3-digit agency code |
| string | no | — | Job title (partial match) |
| string | no | — | e.g. |
| string | no | — | YYYY-MM-DD |
| string | no | — | YYYY-MM-DD |
| number | no | — | Minimum payment amount |
| number | no | — | Maximum payment amount |
| number | no |
| Pagination |
| number | no |
| Results per page |
*Either fiscal_year or calendar_year is required (enforced).
search_revenue
Search NYC revenue data.
Parameter | Type | Required | Default | Description |
| string | no | — | e.g. |
| string | no | — | e.g. |
| string | no | — | 3-digit agency code |
| string | no | — | 2-character revenue category code |
| string | no | — | Revenue class code |
| string | no | — | Revenue source code |
| string | no | — | Fund class code |
| string | no | — | Funding class code |
| number | no |
| Pagination |
| number | no |
| Results per page |
get_agency_spending
All spending for a specific agency in a fiscal year.
Parameter | Type | Required | Default | Description |
| string | yes | — | 3-digit agency code, e.g. |
| string | yes | — | e.g. |
| number | no |
| Pagination |
| number | no |
| Results per page |
get_agency_spending("858", "2025") // OTI/DoITT
get_agency_spending("056", "2025") // NYPDsearch_nycedc_contracts
Search NYCEDC / Other Government Entities (OGE) contracts (Checkbook domain Contracts_OGE), which are separate from citywide contracts. Registered expense contracts only.
Results carry apt_pin only when you do not filter by fiscal_year. The API lists that response column as valid without fiscal_year and rejected it on a fiscal_year search (#40), so it is requested only then.
Parameter | Type | Required | Default | Description |
| string | no | — | e.g. |
| string | no | — | Prime vendor name (first 3 chars matched) |
| string | no | — | Contract number |
| string | no | — | OGE entity contract number |
| string | no | — | OGE agency code |
| string | no | — | Award method code |
| string | no | — | Expense category code |
| string | no | — | Budget name (first 3 chars matched) |
| string | no | — | Commodity line code |
| string | no | — | Contract PIN / tracking number |
| number | no | — | Current contract amount range |
| string | no | — | YYYY-MM-DD |
| string | no | — | YYYY-MM-DD |
| number | no |
| Pagination |
| number | no |
| Results per page (max 20000) |
search_nycha_contracts
Search NYCHA (New York City Housing Authority) contracts (Checkbook domain Contracts_NYCHA), reported at release / line-item granularity (funding source, program/project, responsibility center).
Results carry a year field only when you filter by fiscal_year. The API lists the year response column as valid with fiscal_year and rejected it on a search without (#40), so it is requested only then. Without fiscal_year, results carry no year or fiscal-year field. When the year matters, filter by fiscal_year, one call per year. Each record still has its own start_date, end_date, and approved_date.
Parameter | Type | Required | Default | Description |
| string | no | — | e.g. |
| string | no | — | Vendor name (contains match) |
| string | no | — | Vendor number / code |
| string | no | — | Contract ID |
| string | no | — | Purchase order type code |
| string | no | — | Responsibility center code |
| string | no | — | Contract type code |
| string | no | — | Award method code |
| string | no | — | Industry type code |
| string | no | — | NYCHA agency code |
| string | no | — | Contract purpose (contains match) |
| string | no | — | PO header ID / PIN |
| number | no | — | Contract amount range |
| string | no | — | YYYY-MM-DD |
| string | no | — | YYYY-MM-DD |
| string | no | — | Release approved date range (YYYY-MM-DD) |
| number | no |
| Pagination |
| number | no |
| Results per page (max 20000) |
Example queries
Natural-language questions this MCP can answer today, by persona:
Watchdog/journalist: "How much did the city actually pay a given vendor in FY2024, and through which agencies?" —
search_spendingfilters payment records by payee name, agency, fiscal year, date range, and amount.Accountability researcher: "Which registered expense contracts over $500,000 did the Department of Transportation hold in FY2025?" —
search_contractsfilters by agency, fiscal year, amount range, status, industry, and M/WBE category (useget_contractfor full detail on one contract by ID).Budget analyst: "What was the NYPD's adopted budget for FY2026, broken down by budget code?" —
search_budgetreturns budget lines by agency, department, budget code, and fiscal year (get_agency_spendinggives the companion "what did they actually spend" view).Labor/compensation reporter: "What did FDNY paramedics earn in FY2026, and which pay frequencies show the most supplemental pay?" —
search_payrollfilters by agency, job title, pay frequency, pay date, and amount range.Fiscal-policy researcher: "How much revenue did the Department of Finance collect in FY2025, grouped by revenue category?" —
search_revenuefilters by agency, revenue category/class/source, fund class, and fiscal year.
Common agency codes
Each code below was checked against Checkbook NYC: one search_budget call per code (2026-10-12 and 13, #37), and Checkbook NYC's agency list (2026-11-18). 836 (Department of Finance) is checked on that list only. The names are the ones on that list, except 858: Checkbook NYC still calls it the Department of Information Technology and Telecommunications (DoITT), the agency now named the Office of Technology and Innovation (OTI). Check a code you do not see here the same way: search_budget(agency_code="…", page_size=1) and read the agency field, or look it up on the list.
Code | Agency |
| Mayoralty |
| Department of Education |
| Police Department |
| Fire Department |
| Department of Homeless Services |
| Department of Correction |
| Financial Information Services Agency |
| Department of Small Business Services |
| Department of Environmental Protection |
| Department of Transportation |
| Department of Parks and Recreation |
| Department of Finance |
| Department of Citywide Administrative Services |
| Office of Technology and Innovation (OTI / DoITT) |
Installation
npx (recommended — no install required)
npx @betanyc/nyc-checkbook-mcpFrom 1.6.4, each release is also published to the official MCP Registry as io.github.BetaNYC/nyc-checkbook-mcp.
Global install
npm install -g @betanyc/nyc-checkbook-mcp
nyc-checkbook-mcpNo API key required — Checkbook NYC is a public API.
Claude Desktop configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"nyc-checkbook": {
"command": "npx",
"args": ["-y", "@betanyc/nyc-checkbook-mcp"]
}
}
}Or if installed globally:
{
"mcpServers": {
"nyc-checkbook": {
"command": "nyc-checkbook-mcp"
}
}
}API notes and limits
Limits
The NYC Comptroller's office set these limits for the Checkbook NYC API. Both were confirmed directly with their team on 2026-07-28 and in writing on 2026-07-31. This server follows them by default.
Limit | Value | How this server handles it |
Request rate | 1 request per second, per IP address, for POST requests to | Enforced internally. One request at a time, process-wide, retries included. Each starts at least 1.1 seconds after the previous one finished (its reply arrived, or it failed or timed out), timed on the monotonic clock. For a 2xx or 3xx reply, "arrived" means the whole reply, because the server reads it for the bot-check page first. Two copies of this server on one network share the limit, and this server cannot see the other (#28). |
Records per call | 20,000 | Accepted as the ceiling for |
Exceeding the rate limit has consequences beyond a throttle. The API sits behind an Imperva edge that will place a client into a blocked state that persists well past the burst that caused it, and presents as an HTTP 403 on every subsequent request, including from an ordinary browser on the same network. If you fork this server or write your own client, pace your requests.
Each request times out after 60 seconds. The timeout is longer than usual on purpose: a timed-out request is retried, re-sending a slow query to an edge that blocks bursts.
Reply | Retried? |
2xx | No: it is the answer. |
3xx redirect | No: never followed, returned as an error. |
403 or 429 | Never, not even once, not even with |
The bot-check page (a 2xx or 3xx the server recognizes as it) | Never. The same as a 403 or 429: the server stops until it is restarted (see below). |
Other 4xx | No: it is an answer. |
5xx | Yes, up to 2 retries, waiting as long as |
Network error or timeout | Yes, up to 2 retries, with a growing backoff. |
Every attempt, first or retry, waits its turn in the same pacer, so a retry is never sent within 1.1 seconds of the end of the request before it. No retry starts more than 120 seconds after the call began, time spent waiting in the pacer's queue included, so a timed-out request is retried at most once.
After a 403 or 429, or the bot-check page, the server stops until someone restarts it. Checkbook NYC answers 403 or 429 when it has blocked or rate-limited your network. Sometimes it answers with its bot-check page instead, with a status of 200 or a redirect. That is the same block in another form, so it stops the server the same way. The server counts a reply as the bot-check page only when it already recognized it as one: a page with the Incapsula markers (on either path), or, from /api, a web page where the API's XML was expected. A plain redirect without those markers is an error, but does not stop the server. The bot-check rule was decided on 2026-11-18 and waits for the owner to confirm it (BOT_CHECK_LOCKS in src/checkbook.ts). From that moment the server process sends nothing more to Checkbook NYC: not the call that got the reply, not the calls already waiting their turn, and not any later call, from any tool. There is no timer and it never unlocks by itself. Each of those calls answers with an error that says when the block happened, that asking again will not help and could make the block last longer, and to report it to whoever runs the server, with the incident ID if Checkbook gave one. about_data, about_betanyc and whats_changed keep working, because they never use the network. To start again, a person checks first (has the block cleared? did something send too many requests?), then restarts the server. Decided in #51.
This server also declines to follow HTTP redirects. A redirect chain is followed inside a single fetch() call, where rate pacing cannot reach it, so one logical API call can arrive at the origin as dozens of requests.
Other notes
Endpoint:
POST https://www.checkbooknyc.com/apiFormat: XML (handled internally — tools accept and return JSON)
Authentication: none. Requests identify themselves only by User-Agent:
betanyc-checkbook-mcp/<version> (github.com/BetaNYC/nyc-checkbook-mcp), never a browser's.Coverage: Citywide agencies + NYCEDC and NYCHA as other government entities (OGE)
Fiscal year: NYC fiscal year runs July 1 – June 30 (FY2025 = July 2024 – June 2025)
Known gap: one list of records per reply. The server reads only the first list of records under
result_records. Every reply seen so far has one. Whether a real reply can have more cannot be checked without live calls; if one did, the records in the other lists would be left out.smart_searchis disabled by default: the/smart_searchweb path is not a supported API endpoint (WAF-fronted, JS-rendered), so the server does not call it unlessCHECKBOOK_ENABLE_SMART_SEARCH=1is set. Use the structured XML-API tools; see the note under Tools reference.
Getting help and the upstream project
Questions about this MCP server belong in our issue tracker.
Questions about Checkbook NYC itself, the data, the API, or the platform, belong upstream with the Comptroller's office. Checkbook NYC is open source, and the office runs a public technical discussion forum:
Source code | |
Discussion forum | |
Forum by email |
|
API documentation |
You can post to the forum by web or by email, and you do not need to be subscribed to post.
Please take questions about data accuracy, field definitions, coverage gaps, and API behavior to the forum rather than to our tracker. They are better answered by the people who maintain the platform, and asking in the open helps everyone else building against the same API.
Contributing
Contributions are welcome. See CONTRIBUTING.md for how to report an issue, propose a change, and what we ask of code contributions.
One request specific to this project: do not add code that queries undocumented endpoints or that would exceed the published rate limit. This server talks to a public service run by a city agency on a fixed budget, and our access depends on being a well-behaved client.
Development
git clone https://github.com/BetaNYC/nyc-checkbook-mcp.git
cd nyc-checkbook-mcp
npm install
npm run buildCommand | What it does |
| Compile TypeScript to |
| Compile in watch mode |
| Build, then run the test suite |
| Build, then check every default response-column list, per call shape, against |
| Build, then ask the evaluation set's questions offline and write |
| Run the built server |
Testing
Tests use the Node built-in test runner and live in test/. They run against recorded fixtures in test/fixtures/ rather than the live API, so the suite needs no network access and cannot trip the rate limit. npm test loads test/helpers/no-network.mjs into every test file: the real fetch throws, so a test must install a fake one, and a test that reaches the real one fails even if the code under test swallows the error. Run the suite with npm test, not bare node --test, so the guard is on.
Three areas carry tests worth knowing about before you change them:
test/pace.test.mjsandtest/upstream-lock.test.mjsguard the rate limiter and the lock after a 403 or 429, including several tool calls in flight at once. They run on a virtual clock with no timing slack. If you change how requests are dispatched, these are the tests that catch a regression into bursting.test/strict-schema.test.mjsasserts that unknown tool parameters are rejected rather than silently dropped.test/check-default-columns.test.mjstests the default-column checker against a recorded probe snapshot. It proves the checker works, not that the columns are valid today. Only a fresh probe run can show that (see Releases).
Live tests, if any are ever added, go in test/live/. npm test and CI run test/*.test.mjs only, so they never run by default.
Evaluation set
eval/questions.json holds 14 questions people ask of Checkbook data (Parks' budget lines, a vendor's contracts by name, NYPD's spending, subcontractors on DOT contracts, …), each with a known right answer, written before scoring. Each runs offline against a recorded reply: the answer is what the server must send and say, for example that a vendor-name search is refused with guidance and sends no request, or that a database timeout is not "no records". npm run eval scores them and saves the result in eval/runs/; test/eval.test.mjs runs the same questions in npm test. A failing question is a bug or a wrong expectation, never a skip: eval/runs/2026-11-18-first-run.txt records the one expectation corrected after the first run.
Server instructions
Text several tools share (agency code examples, the fiscal year, vendor names, contract field names) is in the server instructions once (CHECKBOOK_GUIDE in src/betanyc.ts), not in each tool description. test/instructions.test.mjs fails if it is repeated in a tool, and test/tool-size.test.mjs caps the size of the tool list plus the instructions. test/stdout.test.mjs checks that the server writes nothing but protocol to stdout.
Source layout
src/index.tsstarts the server and registers toolssrc/checkbook.tsholds the API client, request pacing, XML construction, and response parsingsrc/tools.tsholds tool definitions, schemas, and criteria mappingsrc/betanyc.tsaddswhats_changed,about_betanycandabout_data, the three tools BetaNYC adds to each of its MCP servers, fromsrc/betanyc-tools.ts. That file,scripts/whats_changed.py,scripts/tests/catalog_validate.pyandscripts/mcp_shared/are copies of shared files in BetaNYC's workspace: never edit them hereDATA-SOURCES.jsonsays where each kind of data comes from;about_dataanswers from it.data.jsonis generated from it withpython3 scripts/whats_changed.py about-data catalog DATA-SOURCES.json: never edit it by hand
About BetaNYC
This project is built and maintained by BetaNYC, New York's civic technology and open-data community. We work to improve lives in New York through civic design, technology, data, and public-interest technology.
Come do civic tech with us. We run public events, meetups, and hands-on data classes — including NYC School of Data and CityCamp NYC, and we host frequent civic-tech gatherings. See what's coming up on our events calendar.
Sustain this work. These MCP servers are free and open source. To help keep this work going and find BetaNYC's tools, please consider donating and becoming a Beta Builder.
Building on this? Tell us!
If you build something with this project, we'd love to hear about it. We can help other New Yorkers find it. BetaNYC publishes a weekly newsletter, This Week in NYC's Civic Technology and Open Data.
Subscribe to the newsletter to keep up with NYC civic tech, open data, and public-interest technology.
Built something, or found a story worth sharing? Submit a link for the newsletter and we'll consider it for an upcoming issue.
Related BetaNYC MCP servers
BetaNYC maintains a suite of open-source MCP servers for NYC and NYS civic data. See the full directory, with install details for each, at beta.nyc/ai-tools.
This server pairs directly with:
nyc-budget-mcp: trace agency spending and contracts back to the Council discretionary awards (Schedule C) that funded them.
nyc-record-mcp: connect a registered contract to the procurement solicitation and award notice that preceded it.
Releases
Before tagging, check the default response columns against the live API. A single rejected response column fails the whole request, so it can disable a tool outright, and default columns have been wrong four times (#16, v1.6.1, #40, #42). With no MCP client running:
bash scripts/probe-api-spec.sh # 43 paced requests, ~65s; run it once, alone
npm run check:columns # must exit 0Then make one paced live call per contract shape and confirm each returns at least one row: search_contracts for registered expense, registered revenue (without fiscal_year; with it, the API is known to return no rows, see below), registered all, and pending; get_contract for one revenue contract; plus search_nycha_contracts and search_nycedc_contracts with and without fiscal_year. Space the calls out, and run them alone. The checker cannot catch this: a column the API accepts can still make it return no rows (contract_class on revenue contracts, #42). The server now reports that case as an error ("matched N records but returned none"), not as an empty page, so an isError here is the signal to bisect the column list. If even contract_id alone returns no rows, the defect is upstream, not in a column: registered revenue with fiscal_year is one such case (live, 2026-10-16; 399 matched, no rows for any column set).
If the probe aborts with a 403, that is a rate-limit block: stop, and do not re-run it to check. If the checker reports UNVERIFIED, follow scripts/README.md. probe-results.txt is git-ignored.
Publishing is automated. Pushing a tag of the form v<version> (matching package.json) runs .github/workflows/release.yml, which tests, publishes to npm with provenance, and creates a GitHub Release with generated notes. Requires the NPM_TOKEN repository secret. Changes are tracked in CHANGELOG.md for developers and in WHATS-CHANGED.md for everyone else.
Release day. A version bump merges with its WHATS-CHANGED.md entry headed ## Unreleased: Title and its CHANGELOG.md heading undated (## [X.Y.Z] - Unreleased), the entry's MCP version linking to CHANGELOG.md with no anchor. On the day the tag goes on, make one commit that:
changes
## Unreleased: Titleto## YYYY-MM-DD: Title(same title, today's date in New York;checkrejects a future date);gives the
CHANGELOG.mdheading the same date (## [X.Y.Z] - YYYY-MM-DD);adds the dated anchor to the MCP version link, computed with the script, never by hand:
python3 -c "import sys; sys.path.insert(0,'scripts'); import whats_changed as w; print(w.github_slug('[X.Y.Z] - YYYY-MM-DD'))";runs
python3 scripts/whats_changed.py check WHATS-CHANGED.md --release.
That commit may also reword the entry's body, since an entry counts as published only once it has a date, so no Whats-changed-edit: trailer is needed. Its title may never change, while Unreleased or when dated: CI checks it. Then tag that commit vX.Y.Z and push the tag. The Release workflow runs the same check --release before npm publish and stops while an Unreleased entry is left. A release that changes nothing a reader would notice (metadata only) gets no entry; its commit carries a No-whats-changed: <reason> trailer instead.
Acknowledgments
Thank you to the NYC Office of the Comptroller for building and maintaining Checkbook NYC as a public resource, and for open-sourcing the platform at github.com/NYCComptroller/Checkbook. Financial transparency infrastructure like this makes civic research and accountability work possible.
Support our work
Freedom isn't free. Support BetaNYC.
License
MIT © BetaNYC
Available Tools
13 toolsabout_betanycAbout BetaNYC and this serverARead-only
Who built this server and how to reach them: BetaNYC, a project of the Fund for the City of New York. Returns what BetaNYC is, links to its events, newsletter and donation page, where to report a bug in this server or ask for a new feature (this server's GitHub issues), and this server's name and version.
Inputs: no named parameters.
about_dataWhere this server's data comes fromARead-only
Where this server's data comes from and how far to trust it. For each kind of data: who publishes it and a link, whether it is an official record (only data its publisher published and BetaNYC did not modify is; data BetaNYC modified or produced is not), how it was gathered, what BetaNYC did to it (for example cleaned it, matched it to addresses, joined it with other data, or counted it), how current it is on this server, what it covers and what is missing, the terms of use and the credit line to print, where to check a figure at the official record, where to report an error (to BetaNYC when BetaNYC modified or produced the data, to the publisher for the original records, and to this server's issues for a bug), which tools use it, and corrections that touched it. Call it whenever someone asks where an answer comes from, how current or accurate it is, or how to check or cite it. topic narrows it to one kind of data, or to the data behind one tool (give the tool's name). For who built this server, use about_betanyc. Topics on this server: spending, contracts, budget, payroll, revenue, nycedc-contracts, nycha-contracts, smart-search.
Inputs: topic.
get_agency_spendingARead-only
Get all spending for a specific NYC agency in a fiscal year. A convenience wrapper around search_spending for agency-level financial overview.
Inputs: agency_code (required), fiscal_year (required), page, page_size.
get_contractARead-only
Look up a single NYC contract by its contract ID. Returns full contract details. Use this after finding a contract ID via search_contracts or search_spending. Fields: registered expense/all use prime_contract_*; registered revenue and pending use plain names (contract_id, purpose).
Inputs: contract_id (required), status, category.
search_budgetBRead-only
Search NYC budget data by agency, department, fiscal year, or budget code.
Inputs: page, page_size, agency_code, budget_code, +2 more.
search_contractsARead-only
Search NYC registered and pending contracts with structured filters. Filter by agency, vendor_code, contract ID, date range, amount range, industry, MWBE category, and more. No vendor-name filter (vendor_code only). To find contracts by vendor name: search_spending payee_name, then its contract_id. KNOWN API LIMITATION: registered revenue contracts (category 'revenue') with fiscal_year return no rows from Checkbook NYC (a match count, no records), so the tool refuses that combination without sending a request; omit fiscal_year and filter by dates instead.
Inputs: pin, page, status, purpose, +23 more.
search_nycedc_contractsARead-only
Search NYCEDC / Other Government Entities (OGE) contracts (Checkbook domain Contracts_OGE). These are separate from citywide contracts and cover economic-development-corporation and other-government-entity agreements. Registered expense contracts only. Filter by fiscal year, vendor, entity contract number, OGE agency code, award method, expense category, budget name, commodity line, amount, and date ranges.
Inputs: pin, page, page_size, amount_max, +14 more.
search_nycha_contractsARead-only
Search NYCHA (New York City Housing Authority) contracts (Checkbook domain Contracts_NYCHA). These are separate from citywide contracts and are reported at release / line-item granularity (purchase-order releases, funding source, program/project). Filter by fiscal year, vendor, purchase-order type, responsibility center, contract type, industry, amount, and date ranges (including approved date). Results carry a year field only when you filter by fiscal_year; without fiscal_year they carry no year or fiscal-year field. When the year matters, filter by fiscal_year (one call per year). start_date, end_date, and approved_date are per record.
Inputs: pin, page, purpose, industry, +18 more.
search_payrollARead-only
Search NYC payroll records by agency, job title, pay frequency, pay date, or amount range. Requires fiscal_year or calendar_year. NOTE: the Checkbook NYC API does not expose employee names — payroll data is aggregated by agency/title/pay date. There is no employee-name search.
Inputs: page, title, page_size, amount_max, +7 more.
search_revenueBRead-only
Search NYC revenue data by agency, revenue category/class/source, fund class, or fiscal year.
Inputs: page, page_size, fund_class, agency_code, +6 more.
search_spendingARead-only
Search NYC spending (check) records. Filter by agency, payee, contract, date range, amount, or expense category. Either fiscal_year or issue_date_from is required.
Inputs: page, page_size, amount_max, amount_min, +9 more.
smart_searchARead-only
DISABLED BY DEFAULT (opt in with CHECKBOOK_ENABLE_SMART_SEARCH=1). The checkbooknyc.com /smart_search endpoint is not a supported Checkbook NYC API endpoint — it is a WAF-fronted, JavaScript-rendered web page — so this server does not call it by default. Prefer the structured tools: search_spending(payee_name=…) to find checks paid to a named vendor, search_contracts for contract filters. When disabled (or when opted-in but WAF-blocked) this returns structured fallback guidance rather than data.
Inputs: query (required), limit.
whats_changedWhat's changedARead-only
What has changed in this server, its data and its website, newest first, from the project's WHATS-CHANGED.md: new tools and pages, new data, data fixes, and corrections when BetaNYC published something wrong. Each correction says what to re-check if you used the old numbers. Call this before relying on a figure you got from this server earlier, or when a user asks whether something was fixed. Filter with since (YYYY-MM-DD; also keeps older entries that have an update on or after that date) and tag (Site, Data, MCP or Correction).
Inputs: tag, limit, since.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
The search_* family is cleanly partitioned by dataset (contracts, spending, budget, payroll, revenue, nycedc, nycha), and get_contract is clearly a single-record lookup after search_contracts. The main soft spots are get_agency_spending, which is explicitly a wrapper around search_spending, and the three meta tools (about_data, about_betanyc, whats_changed) whose boundaries take reading to separate. smart_search is also a vague name whose description mostly says to use other tools instead.
Consistent snake_case with a predictable verb_noun pattern for the core surface (search_*, get_*) and dataset qualifiers used consistently (search_nycedc_contracts, search_nycha_contracts). The deviations are the noun-first meta tools (about_betanyc, about_data, whats_changed) and the uninformative 'smart_search', which break the pattern but remain readable.
13 tools is a good fit for a municipal open-data portal spanning seven datasets plus metadata and provenance tools. Two entries do not fully earn their place: smart_search is disabled by default and mostly redirects elsewhere, and get_agency_spending duplicates search_spending with a fixed filter.
The surface covers the major Checkbook NYC domains (spending, contracts, budget, payroll, revenue) plus the OGE and NYCHA contract variants, with a detail lookup and strong provenance/changelog tooling. Gaps are minor but real: only contracts has a get-by-ID tool, there is no vendor/entity lookup despite vendor_code-only contract filtering, and no aggregation or export helpers for large result sets.
Maintenance
Related MCP Connectors
Access US federal award, recipient, agency, and spending analytics data from USAspending.gov.
Search US grants + federal contracts (Grants.gov + SAM.gov) from any LLM.
US government data as clean JSON for AI agents: SAM.gov contract opportunities, USAspending awards, Grants.gov grants, House STOCK Act trades, and SEC EDGAR filings (Form 4 insider trades, 8-K events, 13F holdings, 13D/G stakes, XBRL fundamentals, 10-K/10-Q sections). 19 read-only tools. Data is as fresh as each source publishes; congressional trades lag up to 45 days and report dollar ranges (House only). Free tier, no card.
Search and call 422 official public-data APIs: elections, courts, permits, SEC filings.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables querying NYC Open Data datasets using natural language, with tools to search datasets, run SoQL queries, and retrieve metadata, all without an API key.64 npmMIT
- AlicenseNot gradedqualityFmaintenanceProvides access to US Treasury Fiscal Data via a free, no-auth public API. Enables querying government financial data through natural language.MIT

Akil MCPofficial
AlicenseNot gradedqualityDmaintenanceEnables AI agents to query NYC public records through a hosted MCP server, supporting civic workflows such as property research, business evaluation, public money tracking, and influence mapping.10 npmMIT- AlicenseAqualityCmaintenanceEnables AI clients to search and read over 2,400 New York City public datasets through the Socrata SODA API, with ready-made tools for restaurant health inspections and 311 service requests plus general dataset discovery and querying.4MIT