Statistics Canada MCP Server is an MCP server published by io.github.Aryan-Jhaveri, hosted at mcp-statcan.com. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 5 tools, including search_cubes_by_title, get_sdmx_structure, get_sdmx_data, get_series_info, get_changes.
Access Statistics Canada data via the Web Data Services API
Nothing else in the archive shares these values.
Find StatCan tables by title keywords. Returns productId, title, dates and frequency; each includes key_template, the dimension order of the SDMX key.
| Parameter | Type | Description |
|---|---|---|
| offset | integer | next_offset from the previous page. |
| max_results | integer | |
| search_term * | string | Keywords, all must appear in the title (English or French). |
{
"name": "search_cubes_by_title",
"description": "Find StatCan tables by title keywords. Returns productId, title, dates and\nfrequency; each includes key_template, the dimension order of the SDMX key.",
"inputSchema": {
"type": "object",
"required": [
"search_term"
],
"properties": {
"offset": {
"type": "integer",
"default": 0,
"description": "next_offset from the previous page."
},
"max_results": {
"type": "integer",
"default": 10
},
"search_term": {
"type": "string",
"description": "Keywords, all must appear in the title (English or French)."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
A table's dimensions in key order with their codes (id, name, parent). Use search to find the codes for labels like 'Ontario' instead of guessing.
| Parameter | Type | Description |
|---|---|---|
| search | string | Return only codes whose name contains this text (case-insensitive), across all dimensions, e.g. 'Ontario'. Separate several terms with ';'. |
| dimension | integer | Key position: return every code of that dimension (default: first 10 per dimension), plus leaf_key, its lowest-level codes as a '+' OR. |
| productId * | integer | 8-digit table id (table 18-10-0004-01 → 18100004). |
{
"name": "get_sdmx_structure",
"description": "A table's dimensions in key order with their codes (id, name, parent).\nUse search to find the codes for labels like 'Ontario' instead of guessing.",
"inputSchema": {
"type": "object",
"required": [
"productId"
],
"properties": {
"search": {
"type": "string",
"description": "Return only codes whose name contains this text (case-insensitive), across all dimensions, e.g. 'Ontario'. Separate several terms with ';'."
},
"dimension": {
"type": "integer",
"description": "Key position: return every code of that dimension (default: first 10 per dimension), plus leaf_key, its lowest-level codes as a '+' OR."
},
"productId": {
"type": "integer",
"description": "8-digit table id (table 18-10-0004-01 → 18100004)."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"productId",
"dimensions",
"_sdmx_url"
],
"properties": {
"_sdmx_url": {
"type": "string"
},
"productId": {
"type": "integer"
},
"dimensions": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Observations for productId + key, or one vectorId. Over 100 observations you get a per-series summary. Pass sql to compute over every row (growth, averages, ranking) server-side. Cite _sdmx_url.
| Parameter | Type | Description |
|---|---|---|
| key | string | With productId: one code per dimension in position order, joined by '.'; '+' for OR ('1+2.2'); empty for all members ('.2', includes totals). |
| sql | string | One SELECT over all fetched rows as table 'data', returning only its result. Use it for growth, averages, rankings. Columns: one per dimension (non-alphanumerics → '_', double-quote them), period (TEXT), value (REAL), VECTOR_ID, UOM, STATUS. |
| full | boolean | Every observation (max 500) instead of a summary when over 100. |
| format | string | csv: to save rows to a file, copy it verbatim. All observations (max 500), a row per series, a column per period; shared fields as '# name: value' lines. |
| vectorId | integer | Instead of productId + key: one series. |
| endPeriod | string | |
| productId | integer | |
| startPeriod | string | '2020', '2020-01' or '2020-Q1'. Not with lastNObservations. |
| lastNObservations | integer | Last N periods per series. |
{
"name": "get_sdmx_data",
"description": "Observations for productId + key, or one vectorId. Over 100 observations you get a\nper-series summary. Pass sql to compute over every row (growth, averages, ranking)\nserver-side. Cite _sdmx_url.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"key": {
"type": "string",
"description": "With productId: one code per dimension in position order, joined by '.'; '+' for OR ('1+2.2'); empty for all members ('.2', includes totals)."
},
"sql": {
"type": "string",
"description": "One SELECT over all fetched rows as table 'data', returning only its result. Use it for growth, averages, rankings. Columns: one per dimension (non-alphanumerics → '_', double-quote them), period (TEXT), value (REAL), VECTOR_ID, UOM, STATUS."
},
"full": {
"type": "boolean",
"default": false,
"description": "Every observation (max 500) instead of a summary when over 100."
},
"format": {
"enum": [
"json",
"csv"
],
"type": "string",
"default": "json",
"description": "csv: to save rows to a file, copy it verbatim. All observations (max 500), a row per series, a column per period; shared fields as '# name: value' lines."
},
"vectorId": {
"type": "integer",
"description": "Instead of productId + key: one series."
},
"endPeriod": {
"type": "string"
},
"productId": {
"type": "integer"
},
"startPeriod": {
"type": "string",
"description": "'2020', '2020-01' or '2020-Q1'. Not with lastNObservations."
},
"lastNObservations": {
"type": "integer",
"description": "Last N periods per series."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"_sdmx_url"
],
"properties": {
"_sdmx_url": {
"type": "string"
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Series metadata for productId + coordinates, or vectorIds: vectorId, key, title, frequency, unit of measure and scalar (decoded), decimals.
| Parameter | Type | Description |
|---|---|---|
| productId | integer | |
| vectorIds | array | |
| coordinates | array | With productId: dot-separated member ids, e.g. ['14.2']. |
{
"name": "get_series_info",
"description": "Series metadata for productId + coordinates, or vectorIds: vectorId, key, title,\nfrequency, unit of measure and scalar (decoded), decimals.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"productId": {
"type": "integer"
},
"vectorIds": {
"type": "array",
"items": {
"type": "integer"
}
},
"coordinates": {
"type": "array",
"items": {
"type": "string"
},
"description": "With productId: dot-separated member ids, e.g. ['14.2']."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}What StatCan released: tables updated on a date (default today), or today's new data points for one series (vectorId, or productId + coordinate).
| Parameter | Type | Description |
|---|---|---|
| date | string | YYYY-MM-DD: tables released that day (default today). |
| limit | integer | |
| offset | integer | |
| vectorId | integer | Today's changed data points for this series. |
| productId | integer | With coordinate: one series. |
| coordinate | string |
{
"name": "get_changes",
"description": "What StatCan released: tables updated on a date (default today), or today's new\ndata points for one series (vectorId, or productId + coordinate).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"date": {
"type": "string",
"description": "YYYY-MM-DD: tables released that day (default today)."
},
"limit": {
"type": "integer",
"default": 50
},
"offset": {
"type": "integer",
"default": 0
},
"vectorId": {
"type": "integer",
"description": "Today's changed data points for this series."
},
"productId": {
"type": "integer",
"description": "With coordinate: one series."
},
"coordinate": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}Names, descriptions and schemas were written by the server and are shown as data.