FAQ and licences
Questions people ask
Short answers about your queries, the data and what you may do with it. Last updated 24 November 2026.
Privacy and hosting
Does MapleStats save my queries?
No. The server keeps no record of your queries, has no accounts and sends nothing to any analytics service.
The server does see the tool calls your AI agent makes, such as a search phrase or a table number, because it has to run them, but not your whole conversation. It does not write the arguments down. Short-lived data stay in memory: a count of tool runs by name, day and outcome, with recent durations per tool and error counts per upstream host (public at /stats), a client's network address for the rate limit, and recent responses, which can include search phrases. HTTP access logs can include the network address, method, path and status. The privacy policy sets out each item and how long it lasts.
Some tools also download microdata files, patent tables and StatCan open-database files into cache folders you choose; these hold public data, not your questions. On your own machine, reproduce_workbook saves the Excel workbooks you ask for only if you set MAPLE_EXPORT_DIR to a folder; otherwise it returns them in the reply.
Who sees my questions, then?
Your AI assistant handles your conversation under its own privacy policy. The publisher of the data sees each request the server sends it, with the server's address. On the hosted endpoint the server and its host, Microsoft Azure, are on the path too. The privacy policy covers who sees what, in full.
Is there a hosted MapleStats I can connect to?
Yes. A public endpoint runs at https://mcp.maplestats.danielstats.io/mcp, with no account or API key. The maintainer pays for it. Each client is limited to 60 requests a minute, and a tool call can run for up to 230 seconds. For heavier use, or for anything you would rather keep on your own machine, run MapleStats locally: a local copy has no limit of its own beyond each publisher's, and because the code is MIT-licensed it keeps working even if the hosted server goes away.
On the hosted endpoint your tool calls do reach the server, since it has to run them. The server code does not write the arguments down: tool failure logs omit argument values and exception text, HTTP access logs can include the network address, method, path and status of a request, the usage counts hold tool names only (never arguments or client addresses) and are also sent to GoatCounter as one count per call, and the rate limiter keeps a client's address in memory for a minute to count requests. Recent responses are cached in memory and can include search phrases, as the privacy policy explains. Microsoft Azure, the host, keeps its own request logs under its own terms, so read Microsoft's terms and privacy policy before you rely on it. If you want full privacy, run MapleStats locally: then nothing leaves your computer except the requests to the publishers.
The data
Where does each figure come from?
From its publisher, with the citation attached. You can trace every number back and check it.
A Statistics Canada value comes back with its table and vector, reference period, release date, unit and scale, geography and a link to the table's page; a Bank of Canada value with its series id and the Valet URL it was read from. StatCan's quality flags stay on the value ("use with caution", "too unreliable to be published", preliminary, revised), and public microdata tabulations give a CV and a quality grade for each cell where the survey's user guide sets one. Every result also names its licence when the publisher has one, and whether that licence allows commercial use. When a figure is not published, or a period is not released yet, the server says so and gives the closest published figure, labelled as such, instead of leaving the gap for the assistant to fill. A date range that stops before the newest data gets a note that newer data exist. Results are brief by default and keep all of this; detail="full" adds the complete provenance block and every field the source sent.
On the 25 fresh questions of the Maple Test, version 4, written before any server saw them, MapleStats answered 84.0% correctly, with no hallucinated answer; the nine other Canadian data servers tested answered 36.0% to 64.0% correctly. The test is small, and almost half of it is on sources MapleStats covers and most other servers do not; the benchmarks page gives its limits.
How fresh is the data?
It comes live from the publisher, kept for a short time in memory. Each result says where it came from, when it was queried and any limits, in its provenance block.
Why do some Statistics Canada tools fail since November 2026?
Statistics Canada now answers some automated requests with a check that only a person in a web browser can pass. It is StatCan's change, it affects every script and package, and MapleStats does not try to get past it.
The census site (www12) has answered scripts this way since October 2026, and parts of the main site (www150) since November 17, 2026: the SDMX service, trade by HS commodity (CIMT), The Daily's RSS feeds, and the catalogue, search and publication pages. On some networks the full-table files are blocked too. StatCan's Web Data Service (WDS) still answers scripts, and MapleStats routes around the block where it can: the SDMX tools read the same series from WDS, the full-table tool returns a Python script that rebuilds the table through WDS (byte for byte the same CSV, checked on three tables), The Daily's latest releases come from its archive, and a result whose refresh is blocked comes back from the last good copy, labelled with its date. Errors from a blocked page say so and name the closest route that still works. statcan_check_access tells you which services answer right now. The details are in the findings.
What does MapleStats do when a source blocks automated requests?
It says so plainly, names what still works, and does not try to get past the block.
When a host answers with a Cloudflare bot challenge, MapleStats does not try to pass it: no disguised User-Agent, no headless browser, no proxy, no cookies. The tool that needed it fails with an error that says the host is challenging automated clients, not to retry in a minute, and which sources still answer. A figure from another publisher is labelled as that publisher's. A challenge does not pause the whole host, because a host can challenge some paths and answer others (StatCan's does), so the paths that answer keep working.
Can I rely on the answers?
Rely on the data, and check the analysis. MapleStats returns values as published; the answers your assistant writes from them are AI-generated and can contain errors.
MapleStats retrieves data directly from the original sources. When a result is trimmed, scaled, cleaned or computed, it says so in its provenance block or its notes. When a source is down or blocks the request, the tool returns an error, not a substitute value; the one exception is a result MapleStats already fetched, which can come back from its last good copy with a note giving its date. An assistant can still pick the wrong table, geography or reference period. Before you rely on a figure, check it, its definition, its units and its reference period against the source, which every result links to. Publishers revise their figures, so a value retrieved today can differ from an earlier one.
MapleStats is provided as is. It depends on upstream services that can change or go offline, and it is not professional, legal or financial advice. Parts of its code and tests were written with AI assistance.
Does MapleStats respect publishers' terms?
Yes. Before a source is added, its terms of use are read, and a source whose terms ban automated use is left out.
Some useful portals are therefore not covered. Examples are Canada's Business Registries, SEDAR+, Payments Canada and CAPP's Statistics Handbook, whose terms forbid automated tools, scraping or bulk use. Petrinex's public oil and gas data are not built either, because the host that serves its downloads does not permit automated access. Some sources were removed after a later review of their terms: CanadaBuys procurement data, OpenParliament.ca and the Toronto Transit Commission's own schedule download. The 2006 to 2016 census data tables and the 2016 Census Profile service were removed because Statistics Canada's www12 host answers automated clients with a bot challenge, errors or timeouts. Two things remain: the 2021 Census Profile, which the server queries directly, and the links to the 2001 to 2016 Census Profile bulk files, which the server lists but does not open; you download those files yourself. Justice Laws (federal statutes and regulations) is out of scope, because legislation text is not data this server carries. The Saskatchewan Bureau of Statistics' Provincial Economic Accounts are not built: the tables could be fetched, but they are under Crown copyright for non-commercial reuse only and the site's terms bar automated access, which a public server cannot keep to. The Toronto Transit Commission's schedule is still available from Statistics Canada's national transit database. The City of Whitehorse's open data files are not built either: its terms bar commercial reproduction without the City's written consent. The City of Toronto's portal is read through its API only: its robots.txt allows the API and disallows automated downloads of the files, so the Neighbourhood Profiles from 2001 to 2016, RentSafeTO, short-term rentals and DineSafe are read, while tables that exist only as files, such as the 2021 neighbourhood profiles, 311 service requests and the TTC's GTFS, are not. Sites that block automated requests are also left alone, such as the City of Hamilton's portal. Niagara Open Data was left out while it answered automated requests with a challenge, and was added once its API answered them again. One source is built although its terms are unresolved: the BC Energy Regulator's bulk well files state no licence and its website terms ask for permission to reproduce or redistribute the material, so each of their results says to use it for personal or internal analysis and to check with BCER first (see Licences and reuse). Each skipped source and the reason are recorded in the roadmap. Where a source asks for credit or a notice, the result's provenance block names the publisher so you can give it.
Can I check a number without trusting the agent?
Yes, for most data calls. Ask for the script: reproduce_code writes R, Python, Stata or Julia code, or an Excel Power Query, that fetches the same data straight from the source, and every result names its source with a link. reproduce_workbook returns the data as a formatted Excel workbook. Before an answer reaches you, the assistant can also send it to check_answer, which re-reads the StatCan and Bank of Canada figures it cites and reports only the problems.
Using it
Which AI tools work with it?
Any client that speaks MCP, including Claude, Codex, Cursor, VS Code and ChatGPT in developer mode. The Connect page has the steps.
Something is wrong or missing. What do I do?
Open an issue on GitHub with the question and the source URL from the result. The Contribute page explains what helps most.
Licences and reuse
MapleStats MCP is independent. It is not affiliated with or endorsed by Statistics Canada, the Bank of Canada, CMHC or any government.
The code
The server, the scripts and the source of this website are under the MIT licence. You may use, copy, change and share them, including commercially, if you keep the licence notice. The notices of the two projects whose layout and middleware informed this one are in THIRD_PARTY_NOTICES.md.
The data
The MIT licence covers the code, not the data. The data belong to the agencies and portals that publish them, and their terms apply to them. Many publish under an open government licence, such as the Open Government Licence – Canada or the Statistics Canada Open Licence, but the terms differ by publisher and dataset, and a few sources carry their own conditions: Hydro-Québec's electricity data is CC BY-NC 4.0 (credit Hydro-Québec, non-commercial use only), the AESO's Alberta electricity reports may be used and copied for non-commercial, personal or educational purposes only, unmodified and with copyright notices kept (each AESO result is flagged not_allowed for commercial use), IESO requires its copyright notice, Elections Quebec, Elections Alberta and the Parliamentary Budget Officer allow non-profit or non-commercial reuse only, and some Government of Canada pages fall under the Canada.ca terms, which allow non-commercial reproduction with the title, author and source URL; the CBSA's Customs Tariff carries the same conditions under the CBSA's own terms. The World Bank's indicators are CC BY 4.0. Eurostat's data are CC BY 4.0 too, except data for countries outside the EU, EFTA and candidate countries (the United States, for instance) and data Eurostat takes from other sources, which may not be reused commercially. The Bank for International Settlements allows any use of its statistics that cites the BIS, is not misleading, flags translations and does not charge separately for the figures inside a commercial product. The US Federal Reserve Board's information is in the public domain; the Board asks to be cited as the source. The European Central Bank allows free reuse of its statistics, commercial included, if the source is quoted ("Source: ECB statistics") and the figures are not modified; data it takes from third parties need their owner's permission. The OECD allows any use of its data, commercial included, that credits the OECD, except data it marks as owned by third parties; MapleStats warns when a dataset's metadata point to another owner. The International Labour Organization's ILOSTAT data and the Australian Bureau of Statistics' data are CC BY 4.0. The UK Office for National Statistics' series are under the Open Government Licence v3.0, which allows commercial reuse with the ONS acknowledged. The International Monetary Fund lets users copy, publish and distribute its statistical data with the IMF credited as the source and any material transformation stated, but asks for its permission (copyright@imf.org) for any commercial reuse and bars bulk download by automated means: each IMF result is flagged not_allowed for commercial use, says the figures are the IMF's and not Statistics Canada's, and MapleStats returns capped series, never whole datasets. The Canadian Real Estate Association's terms allow private, non-commercial analysis only and require its written consent to publish its figures, so its MLS® Home Price Index comes back as links, not values. The Canadian Institute for Health Information's terms of use allow free use of its materials for education, non-commercial research, internal reference and private study, but bar commercial use, and incorporating its materials into software applications of any kind, without its express prior written authorization, and ask users to credit it; each CIHI result is flagged not_allowed, says so in its caveats, and MapleStats grants no licence on CIHI's behalf, so check those terms before you reuse a CIHI value. The BC Energy Regulator's bulk well, production and drilling files state no licence, and its website terms say the material may not be reproduced or redistributed without the Province's written permission; MapleStats reads them for personal or internal analysis, marks each result unknown for commercial use and asks you to check with BCER before redistributing. The STL's Laval bus schedule bars commercial use without its written permission, and Open North's Represent data on elected officials has no verified licence. Each result's provenance block names the publisher and links to the source, so you can read the terms that apply before you reuse a number. Where the licence is known, the block also carries it in a licence field: every Statistics Canada result, for instance, carries the attribution the Statistics Canada Open Licence asks for. A commercial_use field says whether those terms allow commercial reuse without asking: allowed, not_allowed (non-commercial use only, or written permission needed), varies (portals where each dataset has its own licence) or unknown.
Crediting
When you publish a number, credit the publisher named in the result, not MapleStats. A mention of MapleStats as the route you took is welcome.
Questions
If something here is unclear or you want to do something it does not cover, open an issue on GitHub.