Arlet

Connect e-Stat to Codex

Query e-Stat directly from Codex. Arlet links the two through one MCP connection and takes care of API keys.

This server connects your AI client to the e-Stat API (Version 3.0), the official gateway to Japanese government statistics operated by the Statistics Bureau of the Ministry of Internal Affairs and Communications. It covers population, households, labour, prices, industry, trade, education and every other survey published on e-Stat.

Key features:

  • Find statistical tables by keyword (AND / OR / NOT supported), survey year, publication year, government statistics code, field code, or area granularity, and get each table's stats_data_id.
  • Inspect a table's dimensions and codes: measurement item (tab), time axis (time), region (area) and up to 15 classification axes (cat01..cat15), together with the exact filter keys to use next.
  • Fetch the actual figures for a table, narrowed by dimension codes. Values come back with codes replaced by their Japanese labels, plus units, annotations, footnotes, and a next_start_position for paging.

A single e-Stat table can hold millions of cells, so requests are capped and paged rather than dumped: filter with the codes from the metadata tool and follow next_start_position for more. Arlet obtains and manages the e-Stat application ID, so there is nothing for you to register or configure - just switch the server on. (Under the upstream terms of use, heavy bursts of requests on a single ID may be throttled.)

How to connect e-Stat to Codex

  1. 1

    In the Arlet dashboard, open Data tools, find e-Stat and switch it on. No API key setup is needed.

  2. 2

    In your terminal, run codex mcp add arlet --url https://mcp.arlet.dev/mcp/ to add Arlet as an MCP server.

  3. 3

    Codex detects OAuth support and opens your browser. Sign in with Google and click Allow on the consent screen.

  4. 4

    Once connected, both the CLI and the IDE extension can call Arlet tools (the configuration is shared).

If the browser does not open, run codex mcp login arlet to redo the authentication.

Use e-Stat with other AI clients