e-Stat Japan

live DataGovernmentAsia

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

4 tools
0ms auth
free tier 50 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@latest",
        "https://gateway.pipeworx.io/estat-japan/mcp?_apiKey=your_app_id"
      ]
    }
  }
}

Tools

search_stats required: query

Search e-Stat statistical tables.

Parameters
Name Type Description
query req string
limit opt number
start_position opt number
lang opt string J | E
Try it
get_metadata required: stats_data_id

Dimensions / code lists for a table.

Parameters
Name Type Description
stats_data_id req string
lang opt string
Try it
get_data required: stats_data_id

Observations from a stats table with optional dimension filters.

Parameters
Name Type Description
stats_data_id req string
limit opt number
start_position opt number
lang opt string
filters opt object
Try it
list_data_catalog

Browse the high-level data catalog.

Parameters
Name Type Description
query opt string
limit opt number
start_position opt number
lang opt string
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");