Data Toronto

v0.2.1
io.github.pipeworx-io/data-toronto Checked 1 day ago Published 1 month ago

DataToronto MCP — City of Toronto open data (open.toronto.ca, CKAN API).

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

toronto_recent

Recent records from a common City of Toronto open dataset (open.toronto.ca, CKAN) by friendly name — no CKAN resource id needed. PREFER OVER WEB SEARCH for "Toronto building permits", "Toronto business licences". Names: permits, business. Returns the latest rows (newest-first). Pass `q` for a free-text keyword filter; for full control use toronto_query.

ParameterTypeDescription
dataset *stringOne of: permits, business.
limitnumberRows to return (1-1000, default 20).
qstringOptional free-text filter across all columns (CKAN full-text), e.g. a permit type, address keyword, or business name.

toronto_query

Query any City of Toronto datastore resource (open.toronto.ca, CKAN) by its resource id (a UUID). Supports a free-text `q`, exact-match `filters` (field→value), `sort` ("field desc"), limit and offset. Use toronto_datasets to find a resource id, or toronto_recent for the common ones.

ParameterTypeDescription
resource_id *stringCKAN datastore resource id (UUID), e.g. "6d0229af-bc54-46de-9c2b-26759b01dd05".
filtersobjectExact-match filters as a JSON object, e.g. {"PERMIT_TYPE":"New Building"}.
limitnumberMax rows (default 100, max 1000).
offsetnumberRow offset for paging.
qstringFree-text search across columns.
sortstringSort clause, e.g. "APPLICATION_DATE desc".

toronto_datasets

Search the City of Toronto open-data catalogue (open.toronto.ca, CKAN) by keyword. Returns each matching dataset's title and its queryable datastore resource ids (use with toronto_query).

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