statcan_codeset
Pack: statcan · Endpoint: https://gateway.pipeworx.io/statcan/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/statcan_codeset for the schema, then POST the same URL with its arguments for the data.
StatCan’s reference code sets (WDS getCodeSets) — the lookup tables every cube’s metadata refers to by numeric/short code: frequency (monthly/annual/…), scalar factor (units/thousands/millions), status (footnote codes like ‘not available for a specific period’), unit of measure (uom, ~465 units), subject (StatCan’s ~622-entry subject-matter classification), survey (the ~900 StatCan surveys that produce the data), classification type, security level, symbol, and terminated-series flags. Use this to decode a frequencyCode/scalarFactorCode/statusCode/uomCode/subjectCode seen elsewhere in this pack’s output, or to browse the subject/survey taxonomy. Returns the full set (English by default); pass codeset to fetch just one.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
codeset | string | no | Which code set to return. Omit for all ten. |
language | string | no | en | fr (default en) — which name/description fields to keep. |
Example call
Arguments
{
"codeset": "frequency"
}
curl
curl -X POST https://gateway.pipeworx.io/statcan/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"statcan_codeset","arguments":{"codeset":"frequency"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('statcan_codeset', {
"codeset": "frequency"
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"statcan": {
"url": "https://gateway.pipeworx.io/statcan/mcp"
}
}
}
See Getting Started for client-specific install steps.