Stats Nz
liveGovernmentDemographicsNew 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.
Tools
statsnz_datasetsStats NZ datasets matching a keyword, with the ids needed to pull their data.
No parameters required.
Try it
statsnz_observationsObservations from one Stats NZ dataset, as period/value pairs.
No parameters required.
Try it
statsnz_resourcesThe 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.
curl -X POST https://gateway.pipeworx.io/stats-nz/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'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.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("statsnz_datasets", {});// 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");