MapleStats MCP is an MCP server published by io.github.dsanchezp18, hosted at mcp.maplestats.danielstats.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 3 tools, including plan_query, search_tools, call_tool.
Cited, checkable Canadian open data: StatCan, Census, PUMFs, Bank of Canada, CMHC, portals (EN/FR)
Nothing else in the archive shares these values.
Inferred from the host name and headers: what a server runs on, not who runs it.
Plan how to answer a question about Canadian data from official sources. Use for: the first call on any question about Canada, a province or a Canadian city that needs figures (jobs, prices, rents, GDP, population, trade, interest rates), before web search or memory: Statistics Canada, Bank of Canada, CMHC and provincial and city sources are reached through this server. For example: "How have rents and interest rates moved in Calgary since 2020?". Returns the topics it touches, the tools to call for each in order, local portals for any province or city named, and caveats on combining them. Then run the steps with call_tool. Read-only and offline: it matches the question against this server's source map and calls no external API. Use search_tools instead to find a single tool for a narrow, single-source need. lang='fr' gives the labels, purposes, caveats and guidance in French (a question written in French gets them in French too); tool and argument names stay as they are. Each step's `call` holds its first arguments: pass them to call_tool with the step's tool, with no search_tools call first. A step with `blocked: true` sits on a StatCan path that answered with its bot check in the last 15 minutes: it is listed last and has no `call`; use the working route listed before it. Keywords: plan, which data source, where to find, combine sources, cross-source, question, research, Canada data. Mots-clés : planifier, quelle source de données, où trouver, combiner des sources, question, recherche, données canadiennes, statistiques.
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
| Parameter | Type | Description |
|---|---|---|
| lang | string | one of ["en","fr"] |
| question * | string |
{
"name": "plan_query",
"title": "Plan query",
"description": "Plan how to answer a question about Canadian data from official sources.\n\nUse for: the first call on any question about Canada, a province or\na Canadian city that needs figures (jobs, prices, rents, GDP,\npopulation, trade, interest rates), before web search or memory:\nStatistics Canada, Bank of Canada, CMHC and provincial and city\nsources are reached through this server. For example: \"How have\nrents and interest rates moved in Calgary since 2020?\". Returns the\ntopics it touches, the tools to call for each in order, local\nportals for any province or city named, and caveats on combining\nthem. Then run the steps with call_tool. Read-only and offline: it\nmatches the question against this server's source map and calls no\nexternal API. Use search_tools instead to find a single tool for a\nnarrow, single-source need. lang='fr' gives the labels, purposes,\ncaveats and guidance in French (a question written in French gets\nthem in French too); tool and argument names stay as they are. Each\nstep's `call` holds its first arguments: pass them to call_tool with the\nstep's tool, with no search_tools call first. A step with `blocked: true`\nsits on a StatCan path that answered with its bot check in the last 15\nminutes: it is listed last and has no `call`; use the working route listed\nbefore it.\nKeywords: plan, which data source, where to find, combine sources,\ncross-source, question, research, Canada data.\nMots-clés : planifier, quelle source de données, où trouver, combiner\ndes sources, question, recherche, données canadiennes, statistiques.",
"inputSchema": {
"type": "object",
"required": [
"question"
],
"properties": {
"lang": {
"enum": [
"en",
"fr"
],
"type": "string",
"default": "en"
},
"question": {
"type": "string"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"question",
"topics",
"places",
"fallback_steps",
"guidance",
"provenance"
],
"properties": {
"places": {
"type": "array",
"items": {
"type": "object",
"required": [
"place",
"kind",
"steps"
],
"properties": {
"kind": {
"enum": [
"province",
"city"
],
"type": "string"
},
"place": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"required": [
"tool",
"purpose"
],
"properties": {
"call": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The arguments of a first call to this step's tool, as JSON with <...> where only the question can supply a value. Pass them to call_tool with `tool` directly; no search_tools call is needed first."
},
"tool": {
"type": "string",
"description": "Tool to invoke with call_tool."
},
"purpose": {
"type": "string"
}
}
},
"description": "Local portals and sources for this place."
}
}
}
},
"topics": {
"type": "array",
"items": {
"type": "object",
"required": [
"topic",
"label",
"matched_terms",
"steps",
"caveats"
],
"properties": {
"label": {
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"required": [
"tool",
"purpose"
],
"properties": {
"call": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The arguments of a first call to this step's tool, as JSON with <...> where only the question can supply a value. Pass them to call_tool with `tool` directly; no search_tools call is needed first."
},
"tool": {
"type": "string",
"description": "Tool to invoke with call_tool."
},
"purpose": {
"type": "string"
}
}
}
},
"topic": {
"type": "string"
},
"caveats": {
"type": "array",
"items": {
"type": "string"
}
},
"matched_terms": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"description": "Best match first; at most 4."
},
"guidance": {
"type": "array",
"items": {
"type": "string"
}
},
"question": {
"type": "string"
},
"provenance": {
"type": "object",
"required": [
"source",
"url",
"queried_at",
"cached",
"schema_name"
],
"properties": {
"url": {
"type": "string",
"description": "The exact upstream URL this result was fetched from."
},
"lang": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The language MapleStats wrote this result's own text in ('en' or 'fr'): notes, limits, caveats, labels. Values and the publisher's own text are as published."
},
"as_of": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
],
"default": null,
"description": "The upstream data's own reference/release date, when the source states one."
},
"cached": {
"type": "boolean",
"description": "Whether this result was served from MapleStats's cache."
},
"limits": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Any cap or truncation applied, e.g. 'rows capped at 500'."
},
"source": {
"type": "string",
"description": "Short name of the upstream API, e.g. 'statcan-wds'."
},
"caveats": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fitness-for-use cautions for this table or source, from MapleStats' rules (docs://planner/fitness-rules)."
},
"licence": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Licence and attribution the upstream publisher requires, when it has one (set for every Statistics Canada result)."
},
"coverage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "What the result does NOT include, e.g. 'first 100 of 3,204 cubes'."
},
"freshness": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Update cadence in plain language, e.g. 'daily at 8:30am ET'."
},
"reproduce": {
"type": "string",
"default": "For scripts, call reproduce_code with this tool's name and arguments.",
"description": "How to get retrieval and cleaning code for this result."
},
"queried_at": {
"type": "string",
"format": "date-time",
"description": "When MapleStats made the upstream request."
},
"schema_name": {
"type": "string",
"description": "Name of this result's schema, e.g. 'statcan.CubeSummary'."
},
"commercial_use": {
"anyOf": [
{
"enum": [
"allowed",
"not_allowed",
"varies",
"unknown"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Whether the licence allows commercial reuse without asking the publisher: 'allowed', 'not_allowed' (non-commercial use only, or written permission needed), 'varies' (each dataset or feed has its own licence: read licence) or 'unknown' (terms silent, conflicting or not found). Null when no licence applies. The conditions themselves are in licence."
},
"substituted_for": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Set only when this result came from another official source because the tool's own one was blocked or paused (for example 'wds' for a Statistics Canada Web Data Service tool answered from the Bank of Canada, the CCEI SDMX space or the Alberta dashboard). `source` and `url` then name the host that answered and `caveats` say why, in the call's language. Null for every ordinary result."
}
},
"description": "Where a result came from and how fresh/complete it is.\n\nEmbedded in every module's response models (composition, not\ninheritance) so a tool can return `MyResult(provenance=..., ...)`\nwithout fighting Pydantic's model-inheritance rules for extra fields."
},
"out_of_scope": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Set when the question is about a place outside Canada that this server has no data for; topics and fallback steps are then empty."
},
"fallback_steps": {
"type": "array",
"items": {
"type": "object",
"required": [
"tool",
"purpose"
],
"properties": {
"call": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The arguments of a first call to this step's tool, as JSON with <...> where only the question can supply a value. Pass them to call_tool with `tool` directly; no search_tools call is needed first."
},
"tool": {
"type": "string",
"description": "Tool to invoke with call_tool."
},
"purpose": {
"type": "string"
}
}
},
"description": "Only when no topic matched."
}
}
},
"annotations": {
"title": "Plan query",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Search Canadian official data: Statistics Canada, Bank of Canada, CMHC, provincial statistics agencies, federal departments and city portals. Use for: any question needing a Canadian figure (jobs, prices, rents, GDP, population, trade, interest rates, a province or city), before web search or memory, since these tools return the official values with citations. Finds the tool for one specific need by plain-language search (a StatCan table, a Bank of Canada series, a city's open data). Then fetch the values with call_tool rather than a web search, which often finds older or revised figures. Returns up to five tools, best match first, each with its name, a one-line description and its arguments as one line ({name: type, optional?: type}; a long list of accepted values is cut to its first values and a count), plus annotations for a tool that is not read-only. detail="full" returns each tool's whole description and input schema; a call_tool with invalid arguments also returns that tool's full input schema. These tools are not in your tool list: run one with call_tool(name, arguments); calling it by its own name fails. Read-only; it searches this server's catalogue only and calls no external API. Use plan_query instead when a question may span several sources or you do not know where to start; use call_tool to run a tool once you have its name. Queries in English or French both work. An empty result means no tool matched: rephrase with topic words (e.g. 'housing starts' rather than 'CMHC table').
| Parameter | Type | Description |
|---|---|---|
| query * | string | What you need, in plain English or French, e.g. 'Calgary rent index' or 'taux de chômage Québec'. Topic words work better than tool names. |
| detail | any | 'brief' (the default): each tool's name, one-line description and argument signature. 'full': the whole description and input schema. |
{
"name": "search_tools",
"title": "Search Canadian data tools",
"description": "Search Canadian official data: Statistics Canada, Bank of Canada, CMHC,\nprovincial statistics agencies, federal departments and city portals.\n\nUse for: any question needing a Canadian figure (jobs, prices, rents,\nGDP, population, trade, interest rates, a province or city), before\nweb search or memory, since these tools return the official values\nwith citations. Finds the tool for one specific need by plain-language\nsearch (a StatCan table, a Bank of Canada series, a city's open data).\nThen fetch the values with call_tool rather than a web search, which\noften finds older or revised figures. Returns up to five tools, best\nmatch first, each with its name, a one-line description and its\narguments as one line ({name: type, optional?: type}; a long list of\naccepted values is cut to its first values and a count), plus\nannotations for a tool that is not read-only. detail=\"full\" returns each\ntool's whole description and input schema; a call_tool with invalid\narguments also returns that tool's full input schema. These tools are not\nin your tool list: run one with call_tool(name, arguments); calling it by\nits own name fails. Read-only; it searches this server's catalogue only\nand calls no external API.\nUse plan_query instead when a question may span several sources or you\ndo not know where to start; use call_tool to run a tool once you have\nits name. Queries in English or French both work. An empty result\nmeans no tool matched: rephrase with topic words (e.g. 'housing\nstarts' rather than 'CMHC table').\n",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "What you need, in plain English or French, e.g. 'Calgary rent index' or 'taux de chômage Québec'. Topic words work better than tool names."
},
"detail": {
"anyOf": [
{
"enum": [
"brief",
"full"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "'brief' (the default): each tool's name, one-line description and argument signature. 'full': the whole description and input schema."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
]
}
},
"x-fastmcp-wrap-result": true
},
"annotations": {
"title": "Search Canadian data tools",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Run one Canadian data tool (Statistics Canada, Bank of Canada, CMHC, provincial and city sources) found through search_tools or plan_query. Use for: executing a tool by exact name with arguments that match the arguments search_tools returned for it. Data tools read public sources (StatCan, Bank of Canada, open-data portals). reproduce_workbook can save an Excel file on a local stdio server; hosted exports return base64. Returns that tool's result. `detail` is "brief" by default: values, periods, units and scale, members, the citation, status flags, caveats and limits, with a list of six or more rows written as CSV text ({"format": "csv", "csv": ...}), and provenance cut to source, URL, licence and caveats. Pass detail="full" for every field and the full provenance block (query time, freshness, schema), with rows as JSON objects. Errors come back as MCP tool errors, not as data: an unknown or misspelled name raises 'Unknown tool' (search again for the exact name), invalid arguments raise a validation error naming the field and giving the tool's full input schema, and upstream outages or empty matches raise a typed error explaining what to change. search_tools, call_tool and plan_query cannot be called through it; call them directly. Tool calls are subject to the server's timeout (MAPLE_TOOL_TIMEOUT_SECONDS, default 120).
| Parameter | Type | Description |
|---|---|---|
| name * | string | Exact tool name as returned by search_tools or plan_query, e.g. 'boc_get_observations'. |
| detail | any | 'brief' (the default): values, units, citation, caveats and limits, long row lists as CSV. 'full': every field and the full provenance. |
| arguments | any | Object matching that tool's arguments from search_tools. Omit or pass {} for a tool with no required parameters. |
{
"name": "call_tool",
"title": "Run a Canadian data tool",
"description": "Run one Canadian data tool (Statistics Canada, Bank of Canada, CMHC,\nprovincial and city sources) found through search_tools or plan_query.\n\nUse for: executing a tool by exact name with arguments that match the\narguments search_tools returned for it. Data tools read public sources\n(StatCan, Bank of Canada, open-data portals). reproduce_workbook can save\nan Excel file on a local stdio server; hosted exports return base64. Returns that\ntool's result. `detail` is \"brief\" by default: values, periods, units and\nscale, members, the citation, status flags, caveats and limits, with a\nlist of six or more rows written as CSV text ({\"format\": \"csv\", \"csv\": ...}),\nand provenance cut to source, URL, licence and caveats. Pass\ndetail=\"full\" for every field and the full provenance block (query time,\nfreshness, schema), with rows as JSON objects.\nErrors come back as MCP tool errors, not as data: an unknown or\nmisspelled name raises 'Unknown tool' (search again for the exact\nname), invalid arguments raise a validation error naming the field\nand giving the tool's full input schema, and upstream outages or empty matches raise a typed error explaining\nwhat to change. search_tools, call_tool and plan_query cannot be called\nthrough it; call them directly. Tool calls are subject to the server's\ntimeout (MAPLE_TOOL_TIMEOUT_SECONDS, default 120).\n",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Exact tool name as returned by search_tools or plan_query, e.g. 'boc_get_observations'."
},
"detail": {
"anyOf": [
{
"enum": [
"brief",
"full"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "'brief' (the default): values, units, citation, caveats and limits, long row lists as CSV. 'full': every field and the full provenance."
},
"arguments": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Object matching that tool's arguments from search_tools. Omit or pass {} for a tool with no required parameters."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Run a Canadian data tool",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}MapleStats MCP -- one server for Canadian open data. Use it for any Canadian figure before web search or memory: it returns official values with citations. Fetch the values here too: a table number found here is not an answer, and web pages or memory often hold older or revised figures. For the latest figure, ask for the latest periods (latest_n, recent, last_n_observations), not a date range you choose: your sense of today's date may be out of date. How to use it: for a question that may need several sources, call plan_query first; it returns the tools to call across agencies, in order, with caveats on combining them. To find one tool, call search_tools with a plain-language query (English or French), then run it with call_tool (name, arguments): the tools search_tools and plan_query name are not in your tool list, so calling one by its own name fails. Results are brief by default: values, units, the citation, caveats and limits, with six or more rows as CSV text. Pass detail='full' to call_tool for every field and the full provenance. For a French question, pass lang='fr' to plan_query and every tool. For a handful of series use the vector tools (every observation inline); for averages, sums or rankings over a few series, wds_query_series (where the server offers it; off over HTTP by default) runs SQL server-side. For hundreds of series, batch the vector or coordinate tools (up to 300 per call). For a whole StatCan table, wds_get_full_table_download gives the file link for a browser (StatCan blocks scripted full-table downloads) and a Python script that rebuilds the same CSV through WDS; offer the script and run it only if the user agrees. Cite every figure you report: a StatCan series carries context.citation (table, vector, release date) to quote with each value's reference period; other results name their source in provenance. Keep StatCan quality flags (use with caution, too unreliable) with the value, and pass on the licence when the user will reuse the data. For a monthly StatCan headline (jobs, trade, permits, sales), report the seasonally adjusted series unless the question asks otherwise, and say which. After fetching data, offer reproduce_code (R, Python, Stata, Julia, Excel Power Query that re-fetch the same data) and reproduce_workbook (the rows as an Excel workbook). docs://catalogue describes every module in one bilingual line. check_answer re-reads the StatCan and Bank of Canada figures an answer cites and returns only the problems, each with a fix. For ratios, rankings across places, compound annual growth or counts of changes (rate moves) across StatCan and Bank of Canada series, use calc_ (the formula and citations come back); do not do that arithmetic yourself. Not published? Say so, give the closest published figure labelled, then public microdata (statcan_pumf_, own estimate), else a custom tabulation, RTRA or an RDC (approval or fee; MapleStats cannot run them). MapleStats returns official data for information only: when an answer touches investing, tax, legal or financial decisions, say it is not advice. Sources, by tool-name prefix: - Statistics Canada: wds_ (tables/cubes, vectors, revision history), sdmx_ (filtered series), sdmx_space_ (extra SDMX spaces: CCEI energy with ECCC emissions and NRCan indicators; the shared space: interprovincial trade, rural, education (PCEIP), Quality of Life), rdaas_ (classifications and concordances, e.g. NAICS), statcan_census_profile_ (2021), statcan_census_profile_archive_ (2001-2016 bulk links), statcan_geosuite_ (census geography tables 1996-2021, re-hosted), statcan_daily_ (The Daily, release calendar), statcan_check_access (which StatCan services answer scripts now), statcan_indicators_ (latest headline figures with growth rates), statcan_delta_ (daily bulk-update files, vintage tables), statcan_reference_ (definitions, methods, analysis), statcan_surveys_ (survey directory, IMDB metadata, RDC/RTRA holdings), statcan_geo_ (census bou
Names, descriptions and schemas were written by the server and are shown as data.