Statistics Canada MCP Server

● Active

io.github.Aryan-Jhaveri/mcp-statcan

Access Statistics Canada data via the Web Data Services API

Connect this server

One click to install, or copy the config below. Suits: Claude Desktop · Cursor.

Add to Cursor Add to VS CodeClaude Desktop / Claude Code: paste the config below.

Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):

{
  "mcpServers": {
    "mcp-statcan": {
      "command": "uvx",
      "args": [
        "statcan-mcp-server"
      ]
    }
  }
}
One line, from the terminal
Claude Code
claude mcp add mcp-statcan -- uvx statcan-mcp-server
OpenAI Codex CLI
codex mcp add mcp-statcan -- uvx statcan-mcp-server
VS Code
code --add-mcp '{"name":"mcp-statcan","type":"stdio","command":"uvx","args":["statcan-mcp-server"]}'

Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Data & Analytics
Version
0.19.0
Registry
active
Published
11/6/2026

Live check

checked Nov 19, 2026, 09:07 UTC
● Working186 msprotocol 2025-06-18v0.19.0promptstools

The endpoint answered the MCP handshake as "StatCanAPI_Server" and listed 5 tools. Answering since Nov 18, 2026.

Context cost ≈ 1.1k tokens of tool definitions a client loads per conversation (estimate: characters ÷ 4) across 5 tools.

Tools (5)

tool list changed Nov 19, 2026, 09:07 UTC
  • search_cubes_by_title3 params

    Find StatCan tables by title keywords. Returns productId, title, dates and frequency; each includes key_template, the dimension order of the SDMX key.

    Show parameters
    • search_termstringrequiredKeywords, all must appear in the title (English or French).
    • max_resultsinteger
    • offsetintegernext_offset from the previous page.
  • get_sdmx_structure3 params

    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.

    Show parameters
    • productIdintegerrequired8-digit table id (table 18-10-0004-01 → 18100004).
    • searchstringReturn only codes whose name contains this text (case-insensitive), across all dimensions, e.g. 'Ontario'. Separate several terms with ';'.
    • dimensionintegerKey position: return every code of that dimension (default: first 10 per dimension), plus leaf_key, its lowest-level codes as a '+' OR.
  • get_sdmx_data9 params

    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.

    Show parameters
    • productIdinteger
    • keystringWith productId: one code per dimension in position order, joined by '.'; '+' for OR ('1+2.2'); empty for all members ('.2', includes totals).
    • vectorIdintegerInstead of productId + key: one series.
    • lastNObservationsintegerLast N periods per series.
    • startPeriodstring'2020', '2020-01' or '2020-Q1'. Not with lastNObservations.
    • endPeriodstring
    • sqlstringOne SELECT over all fetched rows as table 'data', returning only its result. Use it for growth, averages, rankings. Columns: one per dimension (non-alphanumeric
    • fullbooleanEvery observation (max 500) instead of a summary when over 100.
    • formatstringcsv: 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.
  • get_series_info3 params

    Series metadata for productId + coordinates, or vectorIds: vectorId, key, title, frequency, unit of measure and scalar (decoded), decimals.

    Show parameters
    • productIdinteger
    • coordinatesarrayWith productId: dot-separated member ids, e.g. ['14.2'].
    • vectorIdsarray
  • get_changes6 params

    What StatCan released: tables updated on a date (default today), or today's new data points for one series (vectorId, or productId + coordinate).

    Show parameters
    • datestringYYYY-MM-DD: tables released that day (default today).
    • productIdintegerWith coordinate: one series.
    • coordinatestring
    • vectorIdintegerToday's changed data points for this series.
    • offsetinteger
    • limitinteger

Checked by Serverdex with a plain initialize + tools/list call to mcp-statcan.com/mcp, no credentials, about once a day. A failed check is never a removal.

On GitHub

read Nov 17, 2026
Stars
8
Forks
3
Last push
Nov 6, 2026
License
MIT

Pythoncanadadata-analysisllmmcpmcp-serveropen-datapythonsdmxstatisticswds

From the README

Statistics Canada MCP Server MCP server and CLI for Statistics Canada's Web Data Service (WDS) and SDMX REST API. Gives any MCP client — Claude, Cursor, VS Code Copilot, Gemini — structured access to Canadian statistical data. Includes a standalone statcan CLI for direct downloads without an LLM. Hosted on Render — no install required for most users. See Quick Start. ⚠️ LLMs may fabricate data. Always verify important figures against official Statistics Canada sources. The statcan CLI searching, inspecting and downloading a table. See statcan CLI. Table of Contents • Quick Start • Examples • Setup by Client • How Claude.ai Uses This Server • MCP Prompts • statcan CLI • Features & Tools • Project Structure • Known Issues • Contributors Quick Start Pick the option that fits you. You don't need to install anything for Option 1. Option 1 — Use the hosted server (recommended) Connect directly to the public server on Render. No uv, no terminal, no local setup. Claude Desktop / Claude.ai 1. Open Settings → Connectors → Add Custom Connector 2. Name: mcp-statcan 3. URL: https://mcp-statcan.com/mcp 4. Save and restart Claude Code The hosted server provides all WDS + SDMX tools.…

Read the full README on GitHub →

Remotes

  • streamable-httphttps://mcp-statcan.com/mcp

Alternatives to Statistics Canada MCP Server

Best Data & Analytics servers →

The most-starred Data & Analytics servers in the index, with their live-check result.

ServerStarsLast pushLive check
Metabase50,336Nov 2026Not an MCP endpoint
PostHog MCP Server40,870Nov 2026Needs sign-in
OpenMetadata15,781Nov 2026Not an MCP endpoint
Agent-Native Analytics7,707Nov 2026Needs sign-in
TradingMCP5,284Nov 2026Needs sign-in

Statistics Canada MCP Server: questions people ask

Is Statistics Canada MCP Server a remote or a local MCP server?
According to its entry in the official MCP registry, Statistics Canada MCP Server ships as a hosted endpoint (streamable-http) that your client connects to by URL and as a local package (PyPI) that your client starts on your machine. Use the hosted endpoint when your client supports Streamable HTTP; use the package when you want it to run locally.
Does Statistics Canada MCP Server need an API key?
Its hosted endpoint completed the Serverdex live check — an MCP initialize + tools/list call — with no credentials on Nov 19, 2026. Individual tools may still ask for a key when called.
Is Statistics Canada MCP Server still maintained?
Active: the repository's last commit 13 days ago. Last push Nov 6, 2026, 8 GitHub stars, MIT licence. Read from GitHub on Nov 17, 2026.
What tools does Statistics Canada MCP Server expose?
5 tools as listed by the server itself during the live check, including search_cubes_by_title, get_sdmx_structure, get_sdmx_data, get_series_info, get_changes. The full list with parameters is in the Live check section above.
How do I add Statistics Canada MCP Server to Claude, Cursor or VS Code?
Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
Browse all Data & Analytics →

Add the badge to your site

Show visitors that Statistics Canada MCP Server is listed here — it’s also the link we check for a free listing.

Statistics Canada MCP Server — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-aryan-jhaveri-mcp-statcan?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Statistics Canada MCP Server — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Statistics Canada MCP Server — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-aryan-jhaveri-mcp-statcan?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.