# Statistics Canada MCP Server

Gives your agent structured access to Canadian statistics through the Web Data Service and SDMX REST API. Useful when you need real tables instead of made-up numbers.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 7
- Author: Aryan-Jhaveri
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Aryan-Jhaveri/mcp-statcan
- Updated: 2026-09-19
- HTML: https://affpapa.org/en/nevibecode/mcp/statistics-canada-mcp-server

## What it does

This server wraps Statistics Canada's Web Data Service (WDS) and SDMX REST API, handing the data to any MCP client in a structured form. A standalone `statcan` CLI ships alongside it, so you can pull tables from a terminal without a model in the loop.

The fastest route is the public server on Render. In Claude that is `claude mcp add statcan --transport http https://mcp-statcan.onrender.com/mcp --scope global`. Running it locally needs `uv`: `uvx statcan-mcp-server --transport http` starts the server at `http://localhost:8000`. SQLite tools are left out of the shared instance on purpose — they only come with the full local setup over stdio.

The README warns that models tend to invent figures, so check anything important against official Statistics Canada sources. With the CLI you go in two steps: run `statcan metadata <pid>` first to find the real dimension IDs, then `statcan download` with your key.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-statcan -- uvx statcan-mcp-server
```
uvx runs the command named after the package; if the README names another one, use uvx --from statcan-mcp-server <command>

### Codex

**Platform CLI**
```bash
codex mcp add statistics-canada-mcp-server -- uvx statcan-mcp-server
```
uvx runs the command named after the package; if the README names another one, use uvx --from statcan-mcp-server <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "statistics-canada-mcp-server": {
            "command": "uvx",
            "args": [
                "statcan-mcp-server"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from statcan-mcp-server <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "statistics-canada-mcp-server": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "statcan-mcp-server"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from statcan-mcp-server <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add statistics-canada-mcp-server uvx statcan-mcp-server
```
uvx runs the command named after the package; if the README names another one, use uvx --from statcan-mcp-server <command>

## When to use it
- pull a StatCan table by PID into a CSV file
- chart Canadian statistics for a chosen period
- look up dimension IDs before downloading a dataset
- build a dashboard from official unemployment or inflation figures
- load statistics into SQLite and query them with SQL

## Example prompts
- Find a StatCan table on the labour force and show the last 12 months
- Download table `14-10-0287-01` with statcan and plot it
- Build a dashboard for Canada's consumer price index

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16717
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40409
- [dbx](https://affpapa.org/en/nevibecode/mcp/dbx.md) — MCP server · ★ 27669
- [Metabase](https://affpapa.org/en/nevibecode/mcp/metabase.md) — MCP server · ★ 49845

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
