# Statistics Canada MCP Server

> Statistics Canada MCP Server is an open-source MCP server for analytics and data. MCP server for searching and querying Statistics Canada tables, hosted or local. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, self-hosted
- **Website:** https://mcp-statcan.com
- **Repository:** https://github.com/aryan-jhaveri/mcp-statcan
- **MCP Registry name:** io.github.Aryan-Jhaveri/mcp-statcan
- **Categories:** analytics and data
- **Listing updated:** 2026-11-15

## About

The hosted server exposes a deliberately small toolset of five tools, which the site says costs about 939 tokens in tools/list compared with about 8,044 for the older 17-tool set. It reads Statistics Canada's Web Data Service and SDMX REST APIs and needs no API key since the data is public.

For calculations, get_sdmx_data accepts an optional sql argument: one read-only SELECT runs server-side against SQLite in memory, with a 2 second limit, up to 50,000 fetched rows and 500 result rows, and only the answer goes back to the model. SDMX calls return at most 500 rows. Table structures and the cube list are cached for an hour.

A local install over stdio adds SQLite database tools and a statcan command-line tool with JSON output and stable exit codes for agents. The README warns that language models may fabricate figures and says to check important numbers against official sources.

## Features

- **Five hosted tools:** Search, structure, data, series info and change detection over the hosted endpoint.
- **Server-side SQL:** Run one read-only SELECT on SDMX data and return only the result.
- **Bilingual search:** Finds tables by title keywords in English or French.
- **statcan CLI:** Search, inspect and download tables from a terminal without an LLM.
- **No key required:** Statistics Canada data is public, so connecting needs no credentials.

## Good for

- Chart greenhouse gas emissions or trade figures with an AI assistant
- Find the right Statistics Canada table by keyword
- Check which tables were released on a given date
- Download a table to CSV from the command line

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http mcp-statcan https://mcp-statcan.com/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp-statcan.com/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-statcan": {
      "url": "https://mcp-statcan.com/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-statcan": {
      "type": "http",
      "url": "https://mcp-statcan.com/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-statcan": {
      "serverUrl": "https://mcp-statcan.com/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-statcan": {
      "type": "http",
      "url": "https://mcp-statcan.com/mcp"
    }
  }
}
```

## Tools

- `search_cubes_by_title`: Finds tables by title keywords in English or French, paged, with the SDMX key template.
- `get_sdmx_structure`: Lists dimensions in key order with their codes.
- `get_sdmx_data`: Returns observations by productId and key or a vectorId; optional server-side SQL.
- `get_series_info`: Decodes frequency, unit, scalar, titles and SDMX key for a series.
- `get_changes`: Lists tables released on a date or new data points for a series.

## FAQ

### Do I need an API key?

No. The data is public and the hosted server needs no key.

### Why are database tools missing on the hosted server?

They are omitted there; run it locally over stdio to get them.

### What is the row limit?

500 rows per get_sdmx_data call.

### How do I install it locally?

Run pip install statcan-mcp-server.

### Is Statistics Canada MCP Server free?

Yes. Statistics Canada MCP Server is open source, so you can use and self-host it for free.

### How do I add Statistics Canada MCP Server to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp-statcan https://mcp-statcan.com/mcp

### What are the best alternatives to Statistics Canada MCP Server?

The closest alternatives to Statistics Canada MCP Server are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.
- [Provyan](https://ai-powered.com/mcp/provyan): Provyan is a free MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/statistics-canada-mcp-server
