Connect e-Stat to Claude Code
Query e-Stat directly from Claude Code. 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 Claude Code
- 1
In the Arlet dashboard, open Data tools, find e-Stat and switch it on. No API key setup is needed.
- 2
In your terminal, run claude mcp add --transport http arlet https://mcp.arlet.dev/mcp/ to add Arlet as an MCP server.
- 3
Start Claude Code, run /mcp, select arlet and click Authenticate.
- 4
Your browser opens. Sign in with Google and click Allow on the consent screen. The connection is complete.
The connection is per user and works across every project on the same machine.
