Statcan logo

Statcan

Accesses Statistics Canada time series, indicators, cube metadata, observations, change feeds, and CSV download URLs over MCP.

Install Statcan

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "statcan": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-statcan"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The Statcan MCP server connects AI agents to Statistics Canada's keyless Web Data Service for Canadian statistical data. It provides shortcut tools for CPI, unemployment, GDP, and population, along with catalogue, cube, vector, series, and download operations. Use it when an agent needs official Canadian time series or structured table data instead of web search. It can run through the Pipeworx gateway or locally as a stdio MCP server.

Use cases

  • Retrieve Canada's latest CPI or unemployment rate
  • Compare provincial GDP or population series
  • Discover vectors and dimensions in a Statistics Canada table
  • Detect series updated on a release date
  • Generate a direct CSV download URL for a cube

Key features

  • Headline Canadian economic and population indicators
  • Statistics Canada vector and cube queries
  • Cube metadata and dimension discovery
  • Curated whole-table lookups with pagination
  • Daily changed-series detection
  • Direct full-cube CSV URLs

Tools7

What Statcan lets your agent do. Expand a tool for its parameters.

Self-reported~391 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

8/8 checks healthy over the last 49d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13h ago via OSV.dev · @pipeworx/mcp-statcan (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.1kPackage downloads in the last 30 days.
Last commit18d agoMost recent push to the default branch.
Tools exposed7Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Statcan works

What Statcan MCP server does

The Statcan MCP server exposes Statistics Canada's official statistical data through MCP. Its coverage includes headline Canadian indicators such as consumer price inflation, unemployment, GDP, and quarterly population estimates for Canada and its provinces and territories. It also provides access to the broader Statistics Canada cube catalogue, including areas such as trade, agriculture, and other published series.

Two access patterns are available. Indicator and vector tools offer a direct route to common measures or a known numeric series ID. Cube tools support discovery: list tables, inspect dimensions and members, identify vectors, then request observations for a selected coordinate. A CSV tool returns a Statistics Canada download URL without downloading the file itself.

How it works

The Statcan MCP server uses Statistics Canada's free, keyless Web Data Service. No API key or authentication header is required. The hosted MCP endpoint is available at https://gateway.pipeworx.io/statcan/mcp; the full Pipeworx endpoint is also supported. A local package can communicate over stdin and stdout with npx -y @pipeworx/mcp-statcan.

For cube queries, statcan_cube_metadata describes the dimensions and members of a product. statcan_cube_vectors can then enumerate vector IDs, coordinates, and member labels, with optional filters. Use the resulting coordinate with statcan_cube_data for the latest requested number of observations. Coordinates are dot-separated positions, and unused trailing dimensions require zeros.

The product ID may be supplied as an eight-digit WDS identifier or as a public table number such as 32-10-0121-01. Large cubes should be filtered before enumeration because unfiltered dimensions can produce a large combination set.

Setup and configuration

For a hosted connection, add the endpoint to an MCP client configuration:

config.json
{
  "mcpServers": {
    "statcan": {
      "url": "https://gateway.pipeworx.io/statcan/mcp"
    }
  }
}

For a standalone local connection, use:

config.json
{
  "mcpServers": {
    "statcan": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-statcan"]
    }
  }
}

The gateway endpoint includes shared Pipeworx meta-tools in addition to the StatCan tools. The standalone process exposes only this package's tools. The data service itself is keyless, and no environment variables are required by the supplied setup examples.

Tools and capabilities

  • statcan_indicator: Retrieves common Canadian indicators by name and geography.
  • statcan_series: Fetches observations for a numeric Statistics Canada vector ID.
  • statcan_list_cubes: Lists available cubes with product IDs, titles, CANSIM IDs, dimensions, and release dates.
  • statcan_cube_metadata: Returns cube dimensions, members, frequency, geography, and release information.
  • statcan_cube_vectors: Maps filtered cube members to vector IDs and coordinates.
  • statcan_cube_data: Returns recent observations for one cube coordinate.
  • statcan_table: Returns rows from a curated set of cached high-demand tables, with paging and filters such as geography and reference date.
  • statcan_changed_series: Finds series changed on a specified date, defaulting to the current date.
  • statcan_csv_url: Produces a direct full-cube CSV URL.

Limitations and notes

The Statcan MCP server is an independent, unofficial integration and is not affiliated with Statistics Canada. statcan_table covers only a curated, refreshed set of tables; use live cube queries or the CSV URL tool for tables outside that set. statcan_cube_data handles one coordinate per call, so broad comparisons may require vector enumeration and pagination. Series marked terminated have stopped publishing, and a cube's overall date range does not necessarily describe every series. Statistics Canada data is covered by its Open Licence and requires appropriate source acknowledgment.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Statcan

Statcan is an MCP server that connects AI clients to Statistics Canada's keyless Web Data Service. Its main tools retrieve headline indicators, fetch series by vector ID, inspect cubes and dimensions, query cube observations, list changed series, and return CSV download URLs for official Canadian statistics.

Install it as a local stdio server with `npx -y @pipeworx/mcp-statcan`. Add that command and argument to your MCP client's server configuration, or connect to the hosted `https://gateway.pipeworx.io/statcan/mcp` endpoint instead.

Yes, Statcan works with Cursor. The README provides a hosted MCP configuration using the gateway URL, and the server can also be run locally through its stdio package.

No, it does not require an API key. Statistics Canada's Web Data Service is accessed without authentication or a rate-limit key, and the supplied hosted and local configurations define no environment variables.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewStatcan AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/statcan?style=directory)](https://allmcps.com/mcp/statcan)
HTML Embed
<a href="https://allmcps.com/mcp/statcan"><img src="https://allmcps.com/api/badge/statcan?style=directory" alt="Statcan on AllMCPs" /></a>