MapleStatsMCP

About

About MapleStats

MapleStats is an open-source MCP server that gives AI agents one way into Canadian open data, in English and French.

What it is

One server with 215 tools across 44 modules and 86 sources: Statistics Canada, the Bank of Canada, CMHC, 27 other federal and national sources, and 56 provincial, territorial and city sources (49 open-data catalogues, plus agencies and data feeds). A connected agent sees three of the tools, plan_query, search_tools and call_tool, and finds the rest by searching in plain language.

How it works

MapleStats centralizes the interface, not the data. It keeps no copy: every call goes to the publisher, and every result names its source, the exact URL and the time of the query. Any data call can also come back as an R, Python, Stata or Julia script, so the analysis can be rerun without the agent.

It runs on your machine over stdio, with no account or API key. The code is on GitHub under the MIT licence. Version 0.1.0 is a beta; the roadmap lists what is covered and what is next.

Who builds it

I'm Daniel Sánchez Pazmiño, an economist and data specialist in Edmonton. I work at the Government of Alberta's Office of Statistics and Information. I'm interested in applied microeconomics, official statistics and agentic programming. MapleStats is an independent personal project, not affiliated with or endorsed by my employer. More at danielstats.io.

Alternatives

MapleStats is one way into Canadian data, not the only one. These are the other options I know of, checked in September 2026.

Other MCP servers

A narrower server is simpler to set up and leaves the agent fewer tools to choose from.

  • opendata.fyihsaripalli · Python · GitHub An open-source MCP server for about 75,000 datasets and statistical tables from open.canada.ca, Alberta, Ontario and the full Statistics Canada table inventory: semantic search over a DuckDB index plus live CKAN search, 12 tools, no API keys.
  • mcp-canadaReyemTech · Python Bilingual tools for federal, provincial and municipal APIs, with a local SQLite store.
  • mcp-statcanAryan-Jhaveri · Python StatCan only, through its WDS and SDMX APIs, with a hosted endpoint and a command-line tool.
  • statcan-mcp bank-of-canada-mcparose26 · TypeScript Two small servers, for StatCan tables and Bank of Canada series, run with npx.
  • mcp-statcan mcp-bank-of-canada mcp-opendata-canadapipeworx-io · TypeScript One server each for StatCan, the Bank of Canada and open.canada.ca, run locally or hosted.
  • gov-ca-mcpkrunal16-c · Python Searches federal and provincial catalogues, and queries transport infrastructure.
  • ckan-mcp-serverondata · TypeScript Any CKAN portal, open.canada.ca among them; not specific to Canada.

The official MCP Registry, Glama and PulseMCP list more single-topic servers.

R and Python packages

Libraries you call from your own code, with no agent in between.

  • cansimmountainMath · R StatCan tables and vectors as tidy data frames; MapleStats's R scripts use it.
  • statcanRwarint · R Whole StatCan tables through the Web Data Service, in English or French.
  • stats_canianepreston · Python StatCan tables and vectors in pandas.
  • sdmx1khaeru · Python A general SDMX client whose StatCan source reads StatCan's SDMX data API.
  • cancensusmountainMath · R Census data and boundaries through the CensusMapper API, with a free key.
  • pycancensusdshkol · Python A Python port of cancensus, with the same data and the same key.
  • tongfenmountainMath · R Makes data comparable across census years whose boundaries changed.
  • canadianmapsjoellecayen · R StatCan boundary files for ggplot2 maps, from provinces to census subdivisions.
  • cmhcmountainMath · R Starts, rents and vacancy rates from CMHC's Housing Market Information Portal.
  • publicdata_caajharris · Python Downloads StatCan tables, CMHC files and open.canada.ca datasets, with provenance records.
  • canbankmountainMath · R Bank of Canada Valet series and groups; installs from GitHub.
  • valetrunkelcorey · R A client for every Bank of Canada Valet endpoint, on CRAN.
  • canpumfmountainMath · R Downloads and labels StatCan's public use microdata files.

The official sources

MapleStats calls these directly. None needs a key.

  • Web Data ServiceStatistics Canada · API Every StatCan table and vector, updated each business day.
  • Valet APIBank of Canada · API The Bank's series and groups in JSON, CSV or XML.
  • Housing Market Information PortalCMHC · Portal Starts, rents and vacancy rates, with CSV downloads.
  • Open Government PortalGovernment of Canada · Portal The federal open-data catalogue.
  • CKAN APICKAN project · API The catalogue API behind open.canada.ca and many provincial and city portals.

If I have missed a tool or described one unfairly, please open an issue.