MCP server
Statistics Canada MCP Server
io.github.Aryan-Jhaveri/mcp-statcan
Checked 26 Oct 2026, 08:29 UTC · Connected to it and listed its tools
Access Statistics Canada data via the Web Data Services API
Working at last checkAbout 6,691 tokens per request once connected17 tools
https://mcp-statcan.com/mcp
At a glance
- Type
- MCP server
- Publisher
- Not verified
- Status
- Working at last check
- Tools
- 17
- Token cost
- About 6,691 tokens per request
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 26 Oct 2026, 08:29 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http mcp-statcan https://mcp-statcan.com/mcp
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.mcp-statcan] url = "https://mcp-statcan.com/mcp"
Gemini CLI
{"mcpServers":{"mcp-statcan":{"httpUrl":"https://mcp-statcan.com/mcp"}}}
Cursor
{"mcpServers":{"mcp-statcan":{"url":"https://mcp-statcan.com/mcp"}}}
VS Code
{"servers":{"mcp-statcan":{"type":"http","url":"https://mcp-statcan.com/mcp"}}}
Antigravity
agy mcp add mcp-statcan https://mcp-statcan.com/mcp
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"mcp-statcan","server_url":"https://mcp-statcan.com/mcp","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"mcp-statcan","server_url":"https://mcp-statcan.com/mcp"}
Tools
get_all_cubes_list~236 tokens
Provides a complete inventory of data tables available via the API, including dimension-level details. Disables SSL Verification. Corresponds to: GET /getAllCubesList Results are paginated. Default returns first 100 cubes. Use offset/limit to page through. Prefer search_cubes_by_title if you know wget_all_cubes_list_lite~247 tokens
Provides a complete inventory of data tables available via the API, excluding dimension or footnote information (lighter version). Disables SSL Verification. Corresponds to: GET /getAllCubesListLite Results are paginated. Default returns first 100 cubes. Use offset/limit to page through. Prefer seaget_bulk_vector_data_by_range~682 tokens
Fetches bulk data for multiple vectors filtered by *release date* range (YYYY-MM-DDTHH:MM), NOT by reference period. Use this when you want data released within a specific date/time window (e.g., "all updates released yesterday"). *** IMPORTANT: release date vs reference period *** - Use THIS toolget_changed_cube_list~160 tokens
Get the list of data tables/cubes that were updated on a specific date (YYYY-MM-DD). Disables SSL Verification. Corresponds to: GET /getChangedCubeList/{date} Returns: List[Dict[str, Any]]: A list of dictionaries describing changed cube objects. IMPORTANT: In your final response to the user, yget_changed_series_data_from_cube_pid_coord~314 tokens
Retrieves changed series data (data points that have changed) using Cube ProductId and Coordinate string. Coordinates are automatically padded to 10 dimensions. Disables SSL Verification. Corresponds to: POST /getChangedSeriesDataFromCubePidCoord Returns: Dict[str, Any]: A dictionary containingget_changed_series_data_from_vector~234 tokens
Get changed series data (data points that have changed) for a series identified by Vector ID. Disables SSL Verification. Corresponds to: POST /getChangedSeriesDataFromVector Returns: Dict[str, Any]: A dictionary containing the changed series data object. Raises: httpx.HTTPStatusError: If thget_changed_series_list~229 tokens
Get the list of series (vectorId, productId, coordinate, releaseTime) that were updated on a specific date (YYYY-MM-DD). Disables SSL Verification. Corresponds to: GET /getChangedSeriesList/{date} Returns: List[Dict[str, Any]]: A list of dictionaries describing changed series objects. Raises:get_code_sets~203 tokens
Retrieves definitions for various code sets used by the API (e.g., frequency, units of measure). Corresponds to: GET /getCodeSets Returns: Dict[str, Any]: Dictionary containing code set definitions (scalar, frequency, etc.). Raises: httpx.HTTPStatusError: If the API returns an error statusget_cube_metadata~454 tokens
Retrieves detailed metadata for a specific data table/cube using its ProductId. Includes dimension info, titles, date ranges, codes, etc. Disables SSL Verification. Corresponds to: POST /getCubeMetadata Start with summary=True (default). The summary strips noise (French translations, archive codes,get_sdmx_data~858 tokens
Fetch filtered time-series observations from a StatCan table via SDMX REST. Filtering is done server-side — only the requested slice is returned. Call get_sdmx_structure first to see dimension positions and valid codes. Key syntax (dot-separated codes in dimension position order): "1.2.1" = Geget_sdmx_key_for_dimension~396 tokens
Return all leaf member IDs for a single dimension as a ready-to-use OR key string. Use this before get_sdmx_data when a dimension has many codes (e.g. 162 NOC minor groups, hundreds of CMA geographies). Avoids the need to call get_cube_metadata and manually parse a large JSON response. Leaf codesget_sdmx_structure~333 tokens
Fetch the Data Structure Definition (DSD) for a StatCan table via SDMX REST. Returns dimension codelists with code IDs, names, and parent hierarchy. Use this BEFORE get_sdmx_data to understand the key syntax for that table. Each dimension entry includes: - id: dimension identifier (e.g. "Geograpget_sdmx_vector_data~427 tokens
Fetch time-series observations for a single StatCan vector via SDMX REST. Simpler alternative to get_sdmx_data when you already know the vectorId. Use get_series_info_from_cube_pid_coord or get_cube_metadata to find vectorIds. Time filtering (use one or the other, not both): lastNObservations=5get_series_info~540 tokens
Resolve one or more {productId, coordinate} pairs to series metadata (vectorId, titles, frequency, UOM, etc.) in a single API call. Use this to find vectorIds before fetching data with get_sdmx_data or get_sdmx_vector_data. Pass one item or many — same tool either way. Coordinates are automaticallyget_series_info_from_vector~233 tokens
Request series metadata (productId, coordinate, titles, frequency, etc.) by Vector ID. Disables SSL Verification. Corresponds to: POST /getSeriesInfoFromVector Returns: Dict[str, Any]: A dictionary containing the series metadata object. Raises: httpx.HTTPStatusError: If the API returns an equery_sdmx~843 tokens
Fetch SDMX observations and run ONE read-only SQL query over them server-side, returning only the query result. Nothing is stored — the data is loaded into a temporary in-memory table named `data` and discarded after the query. *** Use this for compute/compare/rank questions ("which province grew fsearch_cubes_by_title~302 tokens
Searches for data cubes/tables where the English or French title contains the provided search term (case-insensitive). Returns a list of matching cubes in the 'lite' format (excluding dimensions/footnotes). Multiple keywords use AND logic (e.g., "tobacco smoking age" finds cubes containing ALL thre
Browse
Related MCP servers
- Statcan
StatCan MCP — Statistics Canada (StatCan) via the Web Data Service (WDS). - Payotte
Verified Canadian real-estate pros + housing data: rates, transfer tax, rent-vs-buy, QC assessments. - Scb Se
Statistics Sweden PxWeb MCP. - MapleStats MCP
Canadian open data: StatCan, Census, PUMFs, Bank of Canada, CMHC and open-data portals (EN/FR). - Zip-Codes.com Location Intelligence: Spatial Analysis, Districts & 14+ Years of Demographics
Validate & geocode a US address; enrich with demographics, districts, counties, schools & much more. - Starwell: World Data & Statistics
Statistics from 28 agencies: FRED, Eurostat, ECB, World Bank, OECD. Cited values, computed answers. - Rate-My-Agent
Get matched with a top-rated, review-verified real estate agent in the US or Canada. - OathReady: Canadian Citizenship Test
Canadian citizenship test practice: verified questions, mock tests, IRCC stats, eligibility tools.
Badge for your README
[](https://aptlynx.net/servers/io.github.Aryan-Jhaveri/mcp-statcan)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents