Statistics Canada MCP Server
Read-only access to Statistics Canada's public data tables, time series, and code sets via WDS and SDMX.
- CCM score
- 67 of 100
- GitHub stars
- 8
- tools
- 17
- transport
- STDIO, HTTP
- last updated
- Nov 6, 2026
Own this MCP server? Claim it
What it does
- Searches and inspects tables with
search_cubes_by_title,get_cube_metadata,get_all_cubes_list, andget_series_info, filtered by keyword, product ID, or vector ID - Downloads observations with
get_sdmx_data,get_sdmx_vector_data, andget_bulk_vector_data_by_range, and runs read-only SQL over results withquery_sdmx - Tracks daily updates through
get_changed_cube_list,get_changed_series_list, andget_changed_series_data_from_vector, which publish after 08:30 ET - Designed for analysts, students, and developers building Canadian economic reports, dashboards, or data pipelines
Install
$ npx -y add-mcp https://mcp-statcan.com/mcp --name mcp-statcan -yAdds the server to every agent config it finds in this project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http mcp-statcan https://mcp-statcan.com/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 17 toolsVerified live against the running server on Nov 6, 2026.
get_code_setsDecode StatCan WDS numeric codes (e.g. frequencyCode 6 = Monthly, scalarFactorCode 0 = units). Corresponds to: GET /getCodeSets Without arguments, returns a summary: small code sets (scalar, frequency, symbol, status, ...) in full, and only entry counts for large ones (uom, su...2 params
Decode StatCan WDS numeric codes (e.g. frequencyCode 6 = Monthly, scalarFactorCode 0 = units). Corresponds to: GET /getCodeSets Without arguments, returns a summary: small code sets (scalar, frequency, symbol, status, ...) in full, and only entry counts for large ones (uom, su...
code_setvaluesearchvalueget_all_cubes_listProvides 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_...2 params
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_...
limitintegeroffsetintegerget_all_cubes_list_liteProvides 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 pa...2 params
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 pa...
limitintegeroffsetintegersearch_cubes_by_titleSearches for data cubes/tables where the English or French title contains the provided search term (case-insensitive). Multiple keywords use AND logic (e.g., "tobacco smoking age" finds cubes containing ALL three words). Returns max_results matches (default 10) from offset. Re...3 params
Searches for data cubes/tables where the English or French title contains the provided search term (case-insensitive). Multiple keywords use AND logic (e.g., "tobacco smoking age" finds cubes containing ALL three words). Returns max_results matches (default 10) from offset. Re...
max_resultsintegeroffsetintegersearch_term*stringget_cube_metadataRetrieves 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 transl...2 params
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 transl...
productId*integersummarybooleanget_changed_series_data_from_cube_pid_coordGet the data points of a series (by ProductId + Coordinate) that changed TODAY only. StatCan publishes at 08:30 ET; before then, or on a day the series did not change, this returns changed=false. For past releases use get_changed_cube_list(date). Coordinates are automatically...2 params
Get the data points of a series (by ProductId + Coordinate) that changed TODAY only. StatCan publishes at 08:30 ET; before then, or on a day the series did not change, this returns changed=false. For past releases use get_changed_cube_list(date). Coordinates are automatically...
coordinate*stringproductId*integerget_series_infoResolve 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. Each re...3 params
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. Each re...
items*arraylimitvalueoffsetvalueget_changed_cube_listGet 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 respon...1 params
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 respon...
date*stringget_series_info_from_vectorRequest series metadata (productId, coordinate, titles, frequency, etc.) by Vector ID. Use only when you start from a vectorId: get_series_info already returns this metadata for series it resolved. Disables SSL Verification. Corresponds to: POST /getSeriesInfoFromVector Return...1 params
Request series metadata (productId, coordinate, titles, frequency, etc.) by Vector ID. Use only when you start from a vectorId: get_series_info already returns this metadata for series it resolved. Disables SSL Verification. Corresponds to: POST /getSeriesInfoFromVector Return...
vectorId*integerget_bulk_vector_data_by_rangeFetches 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 perio...5 params
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 perio...
endDataPointReleaseDatevaluelimitvalueoffsetvaluestartDataPointReleaseDatevaluevectorIds*arrayget_changed_series_data_from_vectorGet the data points of a series (by Vector ID) that changed TODAY only. StatCan publishes at 08:30 ET; before then, or on a day the series did not change, this returns changed=false. For past releases use get_changed_cube_list(date). Disables SSL Verification. Corresponds to:...1 params
Get the data points of a series (by Vector ID) that changed TODAY only. StatCan publishes at 08:30 ET; before then, or on a day the series did not change, this returns changed=false. For past releases use get_changed_cube_list(date). Disables SSL Verification. Corresponds to:...
vectorId*integerget_changed_series_listGet the list of series (vectorId, productId, coordinate, releaseTime) updated today. Statistics Canada publishes this list after 08:30 ET; the endpoint does not accept a date. For a historical release date, use get_changed_cube_list(date) to list the cubes updated on that date...
Get the list of series (vectorId, productId, coordinate, releaseTime) updated today. Statistics Canada publishes this list after 08:30 ET; the endpoint does not accept a date. For a historical release date, use get_changed_cube_list(date) to list the cubes updated on that date...
No parameters. Call it with no arguments.
get_sdmx_structureFetch 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 identi...1 params
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 identi...
productId*integerget_sdmx_dataFetch 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 ord...6 params
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 ord...
endPeriodvaluefullbooleankey*stringlastNObservationsvalueproductId*integerstartPeriodvaluequery_sdmxFetch 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 (...6 params
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 (...
endPeriodvaluekey*stringlastNObservationsvalueproductId*integersql*stringstartPeriodvalueget_sdmx_vector_dataFetch 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 (productId + coordinate) to find vectorIds. Time filtering (use one or the other, not both): lastNObservations...5 params
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 (productId + coordinate) to find vectorIds. Time filtering (use one or the other, not both): lastNObservations...
endPeriodvaluefullbooleanlastNObservationsvaluestartPeriodvaluevectorId*integerget_sdmx_key_for_dimensionReturn 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...2 params
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...
dimension_position*integerproductId*integerReadme
Details
- Repository
- github.com/aryan-jhaveri/mcp-statcan
- Website
- mcp-statcan.com
- Categories
- Data & Analytics, Research & Academic
- Package
statcan-mcp-server- Transport
- STDIO, HTTP
- Registry
- MCP registry, active
- Prompts
- 5
- Tools verified
- Nov 6, 2026
Questions
What is Statistics Canada MCP Server?
Statistics Canada MCP Server is an MCP server listed on Claude Marketplaces in the Data & Analytics category. The listing describes Statistics Canada MCP Server like this: Access Statistics Canada data via the Web Data Services API.
How do I install Statistics Canada MCP Server?
Run claude mcp add --transport http mcp-statcan https://mcp-statcan.com/mcp in a terminal to add Statistics Canada MCP Server to Claude Code. After that, Claude Code can call the Statistics Canada MCP Server tools.
Which tools does Statistics Canada MCP Server give an agent?
Statistics Canada MCP Server gives an agent tools such as get_code_sets, get_all_cubes_list, get_all_cubes_list_lite and search_cubes_by_title. The get_code_sets tool of Statistics Canada MCP Server does this: Decode StatCan WDS numeric codes (e.g. frequencyCode 6 = Monthly, scalarFactorCode 0 = units). Claude Code can call these Statistics Canada MCP Server tools once the server is added.
What does Statistics Canada MCP Server need to run?
Statistics Canada MCP Server ships as the pypi package statcan-mcp-server. Statistics Canada MCP Server talks to the agent over stdio and streamable-http.
Which category is Statistics Canada MCP Server in?
Statistics Canada MCP Server is in the Data & Analytics category on Claude Marketplaces. On that category page, Statistics Canada MCP Server ranks in the top 50.
Similar to Statistics Canada MCP Server
More Data & AnalyticsCkan Mcp Serverondata85 starsSearch, inspect, and query open data across any CKAN portal, with optional SQL and SPARQL access.
Fred Mcp Serverstefanoamorelli135 starsAccess to FRED economic time series: browse the catalog, search by keyword, and pull series data.
Alpha Vantage Mcpalphavantage229 starsMarket data API MCP server covering stocks, forex, crypto, options, and fundamentals via Alpha Vantage.
Financial Modeling Prep MCP Serverimbenrabi149 starsMarket data, financial statements, and SEC filings from Financial Modeling Prep for AI assistants.
FinanceMCPguangxiangdebizi875 starsReal-time and historical market data across A-shares, Hong Kong, US, crypto, funds, and macro indicators.