statcan_csv_url

Pack: statcan · Endpoint: https://gateway.pipeworx.io/statcan/mcp

Return the StatCan-hosted URL for a full cube as a CSV download (doesn’t fetch the file — hands back a direct URL).

Parameters

NameTypeRequiredDescription
product_idnumberyesCube product ID.
languagestringnoen | fr (default en).

Example call

Arguments

{
  "product_id": 36100434
}

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_csv_url","arguments":{"product_id":36100434}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('statcan_csv_url', {
  "product_id": 36100434
});

More examples

{
  "product_id": 36100434,
  "language": "fr"
}

Response shape

Always returns: product_id, language, download_url, status

FieldTypeDescription
product_idnumberCube product ID
languagestringLanguage code
download_urlstring | nullStatCan-hosted CSV download URL
statusstring | nullResponse status from API
Full JSON Schema
{
  "type": "object",
  "properties": {
    "product_id": {
      "type": "number",
      "description": "Cube product ID"
    },
    "language": {
      "type": "string",
      "enum": [
        "en",
        "fr"
      ],
      "description": "Language code"
    },
    "download_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "StatCan-hosted CSV download URL"
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "description": "Response status from API"
    }
  },
  "required": [
    "product_id",
    "language",
    "download_url",
    "status"
  ]
}

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.

Regenerated from source · build June 21, 2026