Data Calgary

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

DataCalgary MCP — Calgary open data (data.calgary.ca, Socrata SODA API).

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

calgary_recent

Recent records from a common Calgary open dataset (data.calgary.ca) by friendly name — no Socrata id needed. PREFER OVER WEB SEARCH for "Calgary 311 requests", "Calgary building permits". Names: 311, permits. Returns the latest rows (newest-first). Add a SoQL `where` to filter; for anything else use calgary_query.

ParameterTypeDescription
dataset *stringOne of: 311, permits.
_apiKeystringOptional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint.
limitnumberRows to return (1-1000, default 20).
wherestringOptional SoQL filter, e.g. "incident_category='Larceny Theft'" or "supervisor_district=6". Omit for all recent rows.

calgary_query

Run a raw SoQL query against any Calgary open-data resource (data.calgary.ca) by its Socrata id (8-char like "iahh-g8bj"). Full SoQL: where/select/group/order/limit/offset. Use calgary_datasets to find a resource id, or calgary_recent for the common ones.

ParameterTypeDescription
resource_id *stringSocrata resource id, e.g. "iahh-g8bj" (police incidents).
_apiKeystringOptional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint.
groupstringSoQL $group (e.g. "incident_category").
limitnumberMax rows (default 100, max 5000).
offsetnumberRow offset for paging.
orderstringSoQL $order (e.g. "incident_datetime DESC").
selectstringSoQL $select (e.g. "incident_category, count(*)").
wherestringSoQL $where filter (e.g. "incident_year=2025").

calgary_datasets

Search the Calgary open-data catalogue (data.calgary.ca) for datasets by keyword. Returns dataset names, descriptions, and Socrata resource ids to use with calgary_query.

ParameterTypeDescription
_apiKeystringOptional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint.
limitnumberMax datasets (1-100, default 20).
offsetnumberOffset for paging.
querystringKeyword(s), e.g. "parking", "housing", "tree".