Skip to main content
Glama
nyc-checkbook-mcp

nyc-checkbook-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CHECKBOOK_ENABLE_SMART_SEARCHNoSet to 1 to enable the smart_search tool. Disabled by default; the /smart_search path is not a supported Checkbook NYC API endpoint and is almost always WAF-blocked.0

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

NYC spending, contracts, budget, payroll and revenue from Checkbook NYC, the NYC Comptroller's financial transparency site, by BetaNYC. Fiscal years: the NYC fiscal year runs July 1 to June 30 and is named for the year it ends (FY2025 is July 2024 to June 2025). Agency codes are 3 digits, for example '858' for OTI/DoITT, '056' for NYPD, '040' for Education, '841' for DOT, '846' for Parks, '057' for FDNY. To check a code, call search_budget with that agency_code and page_size 1 and read the agency field. Vendor names: the contracts API has no vendor-name filter, only vendor_code, and no name-to-code lookup. To find a vendor's contracts by name, call search_spending with payee_name, read the contract_id from those checks, then call get_contract or search_contracts with it. Many contracts are held by resellers, so a product or software name may not match the contract's own vendor. Contract field names follow the API's own domain and are not normalized: registered expense and all use prime_contract_* names (prime_contract_id, prime_contract_purpose, ...); registered revenue and every pending search use plain names (contract_id, purpose, agency, ...). When someone asks where an answer's data comes from, how current or accurate it is, whether it is official, or how to check, cite, or correct it, call about_data (with a topic for one kind of data or one tool) and answer from it, naming the source and its publisher. about_data gives each source one of three answers on whether it is official. "Publisher: … BetaNYC did not modify it." means it is the publisher's own record. "BetaNYC modified this data" means this copy is not the official record; say what BetaNYC did, name the official record and give its link. "BetaNYC produced this" means BetaNYC built or collected it, and it is not an official record either. Never call data official when BetaNYC modified or produced it. For who built this server, call about_betanyc; for recent fixes and corrections, call whats_changed.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
smart_searchA

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.

search_contractsA

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.

get_contractA

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

search_spendingA

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.

search_budgetB

Search NYC budget data by agency, department, fiscal year, or budget code.

search_payrollA

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.

search_revenueB

Search NYC revenue data by agency, revenue category/class/source, fund class, or fiscal year.

get_agency_spendingA

Get all spending for a specific NYC agency in a fiscal year. A convenience wrapper around search_spending for agency-level financial overview.

search_nycedc_contractsA

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.

search_nycha_contractsA

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.

whats_changedA

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

about_betanycA

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.

about_dataA

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.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 13 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count4/5

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.

Completeness4/5

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

ActivityMaintained
ResponsivenessNo recent community issues