New Zealand official statistics (Aotearoa Data Explorer) — search Stats NZ's 911 published…
MCPpedia last refreshed this data
io.github.pipeworx-io/stats-nz is an MCP server that new Zealand official statistics (Aotearoa Data Explorer) — search Stats NZ's 911 published…. Its tool list has not been published yet over http, requires no API key, and scores 58/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"stats-nz": {
"url": "https://gateway.pipeworx.io/stats-nz/mcp"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
New Zealand official statistics (Aotearoa Data Explorer) — search Stats NZ's 911 published…
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @pipeworx/mcp-stats-nz against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in analytics
MCP server that enables AI agents to perform comprehensive web audits using Google Lighthouse with 13+ tools for performance, accessibility, SEO, and security analysis.
Full Datadog API access: monitors, logs, metrics, traces, dashboards, and observability tools
Read and manage Churnkey cancel flows, retention metrics, and payment recovery
Query analytics, manage feature flags and experiments, and investigate errors in PostHog.
MCP Security Weekly
Get CVE alerts and security updates for io.github.pipeworx-io/stats-nz and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
New Zealand official statistics (Aotearoa Data Explorer) — search Stats NZ's 911 published datasets by keyword and pull their observations, covering the 2013/2018/2023 censuses, LEED earnings, business demography, population estimates and projections, household expenditure, corrections and justice.
Part of Pipeworx — an MCP gateway connecting AI agents to 1866+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
statsnz_datasets({ query, limit, offset }) — keyless. Keyword-search all
911 datasets; returns dataset id, full title, description, agency, version.statsnz_smoking_by_region({ region?, year?, _apiKey }) — Census smoking status (regular smoker / ex-smoker / never smoked regularly) by regional council for 2006, 2013, 2018 and 2023, with counts and percentages of people whose status was stated. Census self-report, not the Ministry of Health NZ Health Survey.statsnz_observations({ dataset, key, agency, version, startPeriod, endPeriod, lastNObservations, _apiKey }) — period/value pairs with their dimension labels. A too-wide unfiltered query is auto-narrowed to totals and flagged in narrowed (see Traps).statsnz_resources({ dataset, agency, version, includeCodes, maxCodesPerList, _apiKey }) — dimensions in key order, time dimension, measure, and the code lists that turn a key like 1.2.Q into something readable.Platform key PLATFORM_STATSNZ_KEY (in the encrypted keystore since
2026-09-18) with BYO override via ?_apiKey=; sent upstream as an
Ocp-Apim-Subscription-Key header. Callers need no key of their own. Free
subscription at https://portal.apis.stats.govt.nz/ — sign up, then subscribe
to the Aotearoa Data Explorer API product.
statsnz_datasets additionally works with no key at all.
/rest/dataflow/all/all/latest served SDMX-JSON until 2026-09-18 and now
serves application/vnd.sdmx.structure+xml; version=2.1 on every Accept
header tried — structure+json;version=1.0, bare application/json,
structure+json;version=2.0 — keyed and keyless alike. res.json() on it
throws Unexpected token '<', "<?xml vers", which classifies as
upstream_down and reads like an outage rather than a format change. The
pack parses the XML. This is endpoint-specific: /rest/datastructure/… still
answers structure+JSON, so don't convert that one too./rest/data/{agency},{dataset},{version}/{key}. Their Azure
APIM does not percent-decode path segments, and an unmatched route falls
through to a handler that answers 401 "missing subscription key" without a
key and an empty-but-valid 200 with one. Measured 2026-09-18:
/rest/data/STATSNZ,AGR_AGR_001,1.0/all?lastNObservations=1 → 200 with 80
observations; the same URL with %2C → 401. encodeURIComponent on that
segment is what made statsnz_observations return count: 0 against a
perfectly healthy dataset. /rest/dataflow/%61ll/all/latest → 401 too, so it
is their routing, not this one path.statsnz_observations is always explained, and a bad id is an
error. Because an unknown dataset, a malformed path and a genuinely empty
query are indistinguishable by status on this gateway, the tool validates the
dataset id against the keyless catalogue before calling the data endpoint
(cached 30 min per isolate). An unknown id r