e-Stat Japan

liveGovernmentAsia

Japanese government statistics — ~5000 tables across population, economy, labor, trade, prices, agriculture. Free with app ID.

4tools
0msauth
free tier50 calls/day
🔑Authentication

Platform key handled by Pipeworx. Or BYO via ?_apiKey=<appId>.

Config with credentials
{
  "mcpServers": {
    "pipeworx-estat-japan": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://gateway.pipeworx.io/estat-japan/mcp?_apiKey=your_app_id"
      ]
    }
  }
}

Tools

search_statsrequired: query

Search e-Stat statistical tables.

Parameters
NameTypeDescription
queryreqstring
limitoptnumber
start_positionoptnumber
langoptstringJ | E
Try it
get_metadatarequired: stats_data_id

Dimensions / code lists for a table.

Parameters
NameTypeDescription
stats_data_idreqstring
langoptstring
Try it
get_datarequired: stats_data_id

Observations from a stats table with optional dimension filters.

Parameters
NameTypeDescription
stats_data_idreqstring
limitoptnumber
start_positionoptnumber
langoptstring
filtersoptobject
Try it
list_data_catalog

Browse the high-level data catalog.

Parameters
NameTypeDescription
queryoptstring
limitoptnumber
start_positionoptnumber
langoptstring
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/estat-japan/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/estat-japan/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_stats","arguments":{"query": "hello"}}}'

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("search_stats", {"query":"example"});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("japanese government statistics — ~5000 tables across population, economy, labor, trade, prices, agriculture");