MCP.so

๐Ÿ“Š Statistics Canada API MCP Server

@Aryan-Jhaveri

๐Ÿ“Š Statistics Canada API MCP Server ใซใคใ„ใฆ

MCP server + CLI for Statistics Canada (StatCan) โ€” access 7,000+ Canadian statistical tables via WDS and SDMX REST APIs

ๅŸบๆœฌๆƒ…ๅ ฑ

ใ‚ซใƒ†ใ‚ดใƒช

้–‹็™บ่€…ใƒ„ใƒผใƒซ

ใƒฉใ‚คใ‚ปใƒณใ‚น

MIT

ใƒฉใƒณใ‚ฟใ‚คใƒ 

python

ใƒˆใƒฉใƒณใ‚นใƒใƒผใƒˆ

stdio

ๅ…ฌ้–‹่€…

Aryan-Jhaveri

่จญๅฎš

ไปฅไธ‹ใฎ่จญๅฎšใ‚’ไฝฟใฃใฆใ€ใ“ใฎใ‚ตใƒผใƒใƒผใ‚’ MCP ๅฏพๅฟœใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆใซ่ฟฝๅŠ ใ—ใฆใใ ใ•ใ„ใ€‚

{
  "mcpServers": {
    "mcp-statcan": {
      "command": "uv",
      "args": [
        "pip",
        "install",
        "fastmcp",
        "httpx",
        "pydantic"
      ]
    }
  }
}

ใƒ„ใƒผใƒซ

ใƒ„ใƒผใƒซใฏๆคœๅ‡บใ•ใ‚Œใพใ›ใ‚“ใงใ—ใŸ

ใƒ„ใƒผใƒซใฏ README ใ‹ใ‚‰่‡ชๅ‹•็š„ใซๆŠฝๅ‡บใ•ใ‚Œใพใ™ใ€‚ใƒกใƒณใƒ†ใƒŠใƒผใฏ ## Tools ใจใ„ใ†่ฆ‹ๅ‡บใ—ใฎไธ‹ใซ่จ˜่ผ‰ใ™ใ‚‹ใ“ใจใงใ€ใ“ใฎใ‚ฟใƒ–ใซๅๆ˜ ใงใใพใ™ใ€‚

ๆฆ‚่ฆ

What is ๐Ÿ“Š Statistics Canada API MCP Server?

This MCP server and CLI provides structured access to Statistics Canadaโ€™s Web Data Service (WDS) and SDMX REST API. It enables any MCP client โ€” Claude, Cursor, VS Code Copilot, Gemini โ€” to search, retrieve, and analyze Canadian statistical data. The included statcan CLI allows direct downloads without an LLM.

How to use ๐Ÿ“Š Statistics Canada API MCP Server?

Choose one of four options: Hosted (connect to https://mcp-statcan.onrender.com/mcp with no install), Self-host HTTP (run uvx statcan-mcp-server --transport http locally), Full local (stdio with optional SQLite storage), or the statcan CLI (run commands like statcan search "labour force"). Configuration snippets for Claude Desktop, Claude Code, Cursor, and VS Code are provided.

Key features of ๐Ÿ“Š Statistics Canada API MCP Server

  • Access Statistics Canada WDS and SDMX APIs via MCP
  • Search, metadata, and download tools for statistical tables
  • Standalone statcan CLI for terminalโ€‘based data downloads
  • Five builtโ€‘in MCP prompts for guided data lookup
  • SQLite database support for local data storage (Option 3)
  • Hosted public server available with no local setup

Use cases of ๐Ÿ“Š Statistics Canada API MCP Server

  • Retrieve Canadian economic indicators (CPI, unemployment, trade) for analysis
  • Create interactive dashboards and visualizations from StatCan data
  • Explore and compare multiple statistical series using vector pipelines
  • Automate data extraction via CLI for scripting and reporting

FAQ from ๐Ÿ“Š Statistics Canada API MCP Server

What data sources does this server use?

It uses Statistics Canadaโ€™s public Web Data Service (WDS) and SDMX REST API. No API key or authentication is required.

Do I need to install anything to use the hosted version?

No. The hosted server on Render works immediately; just point your MCP client to https://mcp-statcan.onrender.com/mcp.

Can I use the server without an LLM?

Yes. The statcan CLI lets you search, download, and inspect tables directly from a terminal. Install via pip install statcan-mcp-server or run with uvx.

What clients are supported?

Any MCPโ€‘compatible client: Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), and Gemini.

How does the server handle large datasets?

On the hosted server, data is returned as a download URL rather than inline payload, keeping context windows small. The CLI outputs CSV/JSON to stdout.

ใ‚ณใƒกใƒณใƒˆ

ใ€Œ้–‹็™บ่€…ใƒ„ใƒผใƒซใ€ใฎไป–ใฎใ‚ณใƒณใƒ†ใƒณใƒ„