Statistics Canada MCP Server

Access Statistics Canada data via the Web Data Services API

Remote serverstreamable-httpPython

What is the Statistics Canada MCP Server?

Access Statistics Canada data via the Web Data Services API

What the server does

Pick the option that fits you. You don't need to install anything for Option 1.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_sdmx_structureDimension codelists + key syntax for a table. Call before get_sdmx_data.
get_sdmx_dataFiltered observations by productId + key. Returns a CSV download URL on the hosted server — data stays out of context.
get_sdmx_vector_dataObservations for a single vectorId via SDMX.
get_sdmx_key_for_dimensionAll leaf member IDs for a large dimension as a ready-to-paste OR key. Use when a dimension has >30 codes (e.g. NOC, CMAs).
fetch_vectors_to_databaseFetch vectors by reference period range and store to SQLite.
store_cube_metadataFetch full cube metadata into SQLite — browse all members and vectorIds with SQL.
query_databaseRead-only SQL against the local SQLite database.

How to install the Statistics Canada MCP Server

{
  "mcpServers": {
    "statcan": {
      "command": "uvx",
      "args": ["statcan-mcp-server", "--db-path", "/Users/<you>/.statcan-mcp/statcan_data.db"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
BASE_URLEndpoint or connection string the server talks to.Yes
SDMX_BASE_URLEndpoint or connection string the server talks to.Yes
RENDER_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Statistics Canada to get sdmx structure.”
  • “Use Statistics Canada to get sdmx data.”
  • “Use Statistics Canada to get sdmx vector data.”

Frequently asked questions

Access Statistics Canada data via the Web Data Services API Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.