Stats Nz

liveGovernmentDemographics

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, earnings, business demography, population projections, household expenditure and justice statistics.

3tools
0msauth
free tier50 calls/day

Tools

statsnz_datasets

Stats NZ datasets matching a keyword, with the ids needed to pull their data.

No parameters required.

Try it
statsnz_observations

Observations from one Stats NZ dataset, as period/value pairs.

No parameters required.

Try it
statsnz_resources

The dimensions and code lists behind one Stats NZ dataset.

No parameters required.

Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/stats-nz/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/stats-nz/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"statsnz_datasets","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("statsnz_datasets", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("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, earnings, business demography, population projections, household expenditure and justice statistics");