About
About MapleStats
MapleStats is an open-source MCP server that gives AI agents one way into Canadian open data, in English and French.
Looking for the French version? Lisez-le en français.
What it is
One server with 358 tools across 69 modules and 175 sources: Statistics Canada, the Bank of Canada, CMHC, 39 other federal and national sources, and 133 provincial, territorial and city sources (97 open-data catalogues, plus agencies and data feeds). A connected agent sees only three tools, plan_query, search_tools and call_tool, and finds the other 357 by searching in plain language.
How it works
MapleStats centralizes the interface, not the data. It keeps no dataset of its own, only short-lived caches: every call goes to the publisher, and every result names its source, the exact URL and the time of the query. Most data calls can also come back as an R, Python, Stata or Julia script, an Excel Power Query or a formatted Excel workbook, so the analysis can be rerun without the agent.
Use the hosted server, or run it on your machine over stdio; either way there is no account or API key. The code is on GitHub under the MIT licence. Version 0.2.0 is a beta; the roadmap lists what is covered and what is next.
Who builds it
Hi, I'm Daniel Sánchez Pazmiño, an economist in Edmonton who loves data and wants more people to get it easily. MapleStats is my independent project, not affiliated with my employer. More at danielstats.io.
Acknowledgements. MapleStats owes its architecture to EcuDataMCP, my MCP server for Ecuador's open data. Its approach to Canadian data owes much to the R developers who got there first: Jens von Bergmann (mountainMath) and his co-authors, Thierry Warin (statcanR), Valentin Lucet (rgovcan), and others. Thanks to them, and to everyone who publishes Canadian data in the open.
Alternatives
MapleStats is one way into Canadian data, not the only one. These are the other options I know of, checked in October 2026.
Other MCP servers
A narrower server is simpler to set up and leaves the agent fewer tools to choose from.
-
opendata.fyiAn 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-canadaBilingual tools for federal, provincial and municipal APIs, with a local SQLite store. -
mcp-statcanStatCan only, through its WDS and SDMX APIs, with a hosted endpoint and a command-line tool. -
statcan-mcpbank-of-canada-mcpTwo small servers, for StatCan tables and Bank of Canada series, run with npx. -
mcp-statcanmcp-bank-of-canadamcp-opendata-canadaOne server each for StatCan, the Bank of Canada and open.canada.ca, run locally or hosted.
The official MCP Registry and Glama list more single-topic servers.
R and Python packages
Libraries you call from your own code, with no agent in between.
-
cansimStatCan tables and vectors as tidy data frames; MapleStats's R scripts use it. -
statcanRWhole StatCan tables through the Web Data Service, in English or French. -
stats_canStatCan tables and vectors in pandas. -
cancensusCensus data and boundaries through the CensusMapper API, with a free key. -
pycancensusA Python port of cancensus, with the same data and the same key. -
cmhcStarts, rents and vacancy rates from CMHC's Housing Market Information Portal. -
publicdata_caDownloads StatCan tables, CMHC files and open.canada.ca datasets, with provenance records. -
rgovcanSearches and downloads datasets from open.canada.ca; installs from GitHub, no longer on CRAN. -
valetA client for every Bank of Canada Valet endpoint, on CRAN. -
canpumfDownloads and labels StatCan's public use microdata files.
The official sources
MapleStats calls these directly. None needs a key.
- Web Data Service Every StatCan table and vector, updated each business day.
- Valet API The Bank's series and groups in JSON, CSV or XML.
- Housing Market Information Portal Starts, rents and vacancy rates, with CSV downloads.
- Open Government Portal The federal open-data catalogue.
- CKAN 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.