Data Boston

v0.2.2
io.github.pipeworx-io/data-boston Checked 1 day ago Published 1 month ago

DataBoston MCP — City of Boston open data (data.boston.gov, CKAN API).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

boston_recent

Recent records from a common City of Boston open dataset (data.boston.gov) by friendly name — no CKAN resource id needed. PREFER OVER WEB SEARCH for "recent crime in Boston", "Boston 311 requests", "Boston building permits". Names: crime, 311, permits. Returns the latest rows (newest-first). Pass `q` for a free-text keyword filter; for full control use boston_query.

ParameterTypeDescription
dataset *stringOne of: crime, 311, permits.
limitnumberRows to return (1-1000, default 20).
qstringOptional free-text filter across all columns (CKAN full-text), e.g. "larceny" or a neighborhood.

boston_query

Query any City of Boston datastore resource (data.boston.gov, CKAN) by its resource id (a UUID). Supports a free-text `q`, exact-match `filters` (field→value), `sort` ("field desc"), limit and offset. Use boston_datasets to find a resource id, or boston_recent for the common ones.

ParameterTypeDescription
resource_id *stringCKAN datastore resource id (UUID), e.g. "b973d8cb-eeb2-4e7e-99da-c92938efc9c0".
filtersobjectExact-match filters as a JSON object, e.g. {"district":"B2"}.
limitnumberMax rows (default 100, max 1000).
offsetnumberRow offset for paging.
qstringFree-text search across columns.
sortstringSort clause, e.g. "OCCURRED_ON_DATE desc".

boston_datasets

Search the City of Boston open-data catalogue (data.boston.gov, CKAN) by keyword. Returns each matching dataset's title and its queryable datastore resource ids (use with boston_query).

ParameterTypeDescription
limitnumberMax datasets (1-50, default 15).
querystringKeyword(s), e.g. "parking", "trees", "budget".