Skip to main content
Glama
ny-data-registry-mcp

ny-data-registry-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NY_DATA_INDEXNoWhere the harvested SQLite index lives.${HOME}/.cache/betanyc/ny-data-registry/ny-data-index.sqlite
NY_DATA_OFFLINENoSet to 1 to refuse every network call.off
NY_DATA_CACHE_DIRNoRegistry refresh cache and HTTP cache directory.${HOME}/.cache/betanyc/ny-data-registry
SOCRATA_APP_TOKENNoSocrata app token sent as X-App-Token to the Socrata Discovery API.
NY_DATA_MAX_LAYERSNoPer-portal cap on ArcGIS field requests per harvest.250
NY_DATA_MIN_INTERVAL_MSNoMinimum gap between requests to one host; cannot be set below 1000.1000
NY_DATA_REGISTRY_REFRESHNoSet to 0 to never fetch the published registry and use the bundled copy instead.on

Instructions

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

New York open data portals and their datasets, from BetaNYC's registry and a nightly index of the portals' catalogs. It describes datasets; it does not hold the data itself. Source rows (find_sources, list_sources_for_place, how_to_query, check_source) and dataset rows carry registry_id when the row has one: the id of the row's government body in BetaNYC/ny-gov-web-registry, for joining the two. Source rows also carry runs_it, the government body that runs the site (name, government_level, classification, website), looked up by registry_id in that list; null when the row has no id, found: false when the list lacks it. runs_it_source says which copy of the list answered. Every registry and index answer carries data_source: the source, its publisher, a link and how current it is, a cite line to quote, and its about_data_topic. Rows from several sources list each in data_sources. 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
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
find_sourcesA

Find New York open data portals and sources (state, county, city, agency, library, nonprofit) in BetaNYC's registry by topic, name or place. Returns each source's portal URL, platform family, API type, dataset count, status and last-verified date. Searches portal names and notes, not dataset titles (use search_datasets for datasets). Default status filter is 'live'.

list_sources_for_placeA

Everything the registry knows for one New York place (county, one of the 62 cities, an NYC borough, or a region): its own portal(s), sources for cities inside it, regional sources, and statewide sources that cover it. Says plainly whether the place has a portal, was checked and has none ('no-portal-exists'), or is not in the registry ('not-in-registry', which means unchecked, not absent).

how_to_queryA

How to get data from one registry source: its endpoint (copied verbatim, never guessed), API type, whether a key is needed and which env var holds it, an example request, and which MCP server to hand off to (the socrata MCP with the right domain, or the matching @betanyc MCP). Flags UNCONFIRMED, undocumented, gated, dead and no-portal rows.

check_sourceA

Live check of one source's portal URL: exactly one request (no retry), redirects reported (not followed), HTTP status, response time, and whether that matches the registry's status. A url is never fetched itself: it picks a registry row by host and path, and when no row clearly matches, the rows on that host are listed and nothing is fetched. Never calls key-required or account-gated sources, and reports a bot block rather than working around it.

registry_infoB

Registry row counts by status, tier and platform family, and how many rows carry a registry_id; which copy of the master list of government bodies (BetaNYC/ny-gov-web-registry) is loaded and which row ids it lacks; when the registry was generated and where this copy came from (bundled or refreshed from GitHub Pages); unmapped platform strings; and the harvested index's size and last harvest date. index_status says how old the index is, whether automatic updates are on (and if not, which setting turned them off), and what the last update check found.

search_datasetsA

Search dataset titles, descriptions, tags and column names across the harvested Socrata and ArcGIS portals in New York (needs the harvested index). Filter by topic, place, portal, platform family, download format (csv, geojson, shapefile, kml, api, xlsx) or last-updated date. topic is one of 24 shared topics (list_topics), assigned from each dataset's own categories, tags and department; a dataset can have several. Give a query, a topic, or both; a topic alone lists that topic, most-viewed first. Rows carry their topic ids. One call gives the whole answer. total_matches is the true number of matching datasets. When they all fit, the reply lists them. When they do not, the reply counts every match by portal (auto_grouped: true; top titles when room; groups_size_note says what was cut), lists the best-ranked rows that fit, and writes every match to a CSV (export.path, export.rows; also a resource_link). Use group_by to summarize by entity, county or platform_family instead. Rows are compact (id, name, portal, type, update date, link, formats); detail: 'full' adds description, API endpoint, views, column count and, for Socrata, the domain + 4x4 to hand to the socrata MCP. Replies aim for about 20 KB. Each reply also lists registry portals the index does not search, so no result is not proof that no data exists. When the index is more than 14 days old (NY_DATA_INDEX_STALE_DAYS), the reply carries index_note saying so and how to update it.

list_topicsB

The 24 shared topics for New York open data, with how many datasets and portals each has in the harvested index, and the share of datasets with at least one topic. Topics are built from the categories, tags and departments the portals already use; a dataset can have several. Use a topic id with search_datasets. Also links the crosswalk (each portal label and its topics), published with every index.

get_dataset_columnsA

Column names, field names, types and descriptions for one dataset from the index, plus every distribution (format + URL), license, publisher, extent and per-field provenance (from the portal vs derived here). With standard 'croissant' (read by AI and ML tools) or 'dcat-us' (DCAT-US 3.0, read by government catalogs and data.gov), returns the dataset's description in that standard instead, with which required fields the portal did not give. A license is never inferred: where the portal gives none, a terms page may be linked, labeled 'terms page, not a license'.

find_joinableA

Datasets that share a join key with this one, grouped by key: BBL, BIN, borough, community district, council district, census tract, SWIS, FIPS, ZIP. Uses a curated key-column map, not raw column-name equality.

whats_newA

Datasets added, changed or removed in the index since a date, and datasets whose portal says they were updated since then. Optional portal filter. For changes to this server itself (new tools, fixes, corrections), use whats_changed instead.

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: portal-registry, portal-check, government-bodies, places, portal-catalogs, catalog-health-data-ny, catalog-nys-gis-clearinghouse, catalog-open-ny, catalog-adirondack-park-agency, catalog-dec-gis-services, catalog-environmental-bond-act, catalog-nysdec-arcgis-online, catalog-ny-geographic-information-gateway, catalog-nysdot-gis, catalog-nys-elevation-data, catalog-nys-geohub, catalog-nys-its-gis-services, catalog-nys-orthoimagery, catalog-nys-parks-arcgis-online, catalog-albany-county, catalog-columbia-county, catalog-greene-county, catalog-warren-county, catalog-washington-county, catalog-cayuga-county, catalog-city-of-syracuse, catalog-city-of-utica, catalog-cortland-county, catalog-oswego-county, catalog-dutchess-county, catalog-orange-county, catalog-sullivan-county, catalog-ulster-county, catalog-city-of-mount-vernon, catalog-nassau-county, catalog-nyc-open-data, catalog-nyc-dcp-mapping, catalog-nycmaphub, catalog-putnam-county, catalog-suffolk-county, catalog-westchester-county, catalog-city-of-watertown, catalog-essex-county, catalog-broome-county, catalog-city-of-ithaca, catalog-otsego-county, catalog-steuben-county, catalog-tioga-county, catalog-tompkins-county, catalog-cattaraugus-county, catalog-chautauqua-county, catalog-city-of-buffalo, catalog-city-of-rochester, catalog-genesee-county, catalog-livingston-county, catalog-monroe-county, catalog-ontario-county, catalog-wayne-county, catalog-wyoming-county, catalog-yates-county, catalog-suny-cortland, catalog-syracuse-university, catalog-lehman-bronx-information-portal, catalog-cornell-cugir, catalog-university-of-rochester, hand-kept, topics, coverage, join-keys, standard-descriptions.

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

Most tools have clearly distinct scopes (dataset search vs. source search vs. place lookup vs. live health check vs. provenance), and descriptions actively cross-reference neighbors, e.g. whats_new says to use whats_changed for server changes, and find_sources points to search_datasets for datasets. Residual ambiguity exists between whats_new/whats_changed, registry_info/about_data, and find_sources/list_sources_for_place, which an agent must read carefully to separate.

Naming Consistency3/5

About half the names follow a clean verb_noun pattern (find_sources, list_topics, search_datasets, get_dataset_columns, check_source, list_sources_for_place). The rest are bare noun phrases (about_data, about_betanyc, registry_info, whats_new, whats_changed) plus a phrase-like how_to_query, so the convention is mixed though still readable.

Tool Count5/5

13 tools is squarely in the well-scoped range for a registry covering portals, datasets, topics, provenance, health checks and change logs. Each tool maps to a distinct capability (discover, inspect, verify, explain, hand off) with no obvious filler.

Completeness4/5

The surface covers discovery (search_datasets, find_sources, list_sources_for_place, list_topics), metadata (get_dataset_columns, about_data, registry_info), querying (how_to_query), health (check_source), joins (find_joinable) and change tracking (whats_new, whats_changed) — a coherent lifecycle for a registry. Minor gaps: no direct single-dataset lookup by id, and no data retrieval by design, so agents must rely on handoffs for actual records.

Maintenance

ActivityMaintained
ResponsivenessLimited data