Data Calgary
v0.2.1DataCalgary 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.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | One of: 311, permits. |
_apiKey | string | Optional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint. |
limit | number | Rows to return (1-1000, default 20). |
where | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
resource_id * | string | Socrata resource id, e.g. "iahh-g8bj" (police incidents). |
_apiKey | string | Optional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint. |
group | string | SoQL $group (e.g. "incident_category"). |
limit | number | Max rows (default 100, max 5000). |
offset | number | Row offset for paging. |
order | string | SoQL $order (e.g. "incident_datetime DESC"). |
select | string | SoQL $select (e.g. "incident_category, count(*)"). |
where | string | SoQL $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.
| Parameter | Type | Description |
|---|---|---|
_apiKey | string | Optional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint. |
limit | number | Max datasets (1-100, default 20). |
offset | number | Offset for paging. |
query | string | Keyword(s), e.g. "parking", "housing", "tree". |