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.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. -
gov-ca-mcpSearches federal and provincial catalogues, and queries transport infrastructure. -
ckan-mcp-serverAny 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.
-
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. -
sdmx1A general SDMX client whose StatCan source reads StatCan's SDMX data API. -
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. -
tongfenMakes data comparable across census years whose boundaries changed. -
canadianmapsStatCan boundary files for ggplot2 maps, from provinces to census subdivisions. -
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. -
canbankBank of Canada Valet series and groups; installs from GitHub. -
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.