CE

cygkichi/estat-mcp-server

API development

This page was translated automatically. Technical details may differ from the original. View the original

21 stars 11 forks Quality 53 Trend 0MIT

Model Context Protocol (MCP) Server, providing functionality to access the API of Japan's government statistics portal site "e-Stat." Language models will be able to search for and retrieve statistical data.

Overview

Model Context Protocol (MCP) Server, providing functionality to access the API of Japan's government statistics portal site "e-Stat." Language models will be able to search for and retrieve statistical data. - search_e_stat_tables: Search statistical tables by keyword and survey year - get_e_stat_meta_info: Retrieve metadata corresponding to statistical table IDs - get_specific_e_stat_data: Retrieve statistical data corresponding to statistical table IDs or dataset IDs - get_e_stat_ref_dataset: Refer to dataset filtering conditions, etc. - get_e_stat_data_catalog: Retrieve information from statistical table files and statistical databases To use this server, you need the application ID for the e-Stat API. You can obtain it by following these steps: 1. Access the e-Stat API features 2. Register as a user 3. Agree to the terms of use and obtain the application ID - On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json - On Windows: %APPDATA%/Claude/claude_desktop_config.json - "Search for Tokyo's 2023 demographic statistics" - "Get statistics on ice cream demand" - "Compare aging rates by prefecture" This project is provided under the MIT License — see the LICENSE file for details.

Overview (machine translated)

Model Context Protocol (MCP) Server, providing functionality to access the API of Japan’s government statistics portal site “e-Stat.” Language models will be able to search for and retrieve statistical data.

Tools

This server offers the following tools:

  • search_e_stat_tables] : Search statistical tables by keyword and survey year
  • get_e_stat_meta_info : Retrieves the metainformation corresponding to the statistical table ID
  • get_specific_e_stat_data] : Retrieves statistical data corresponding to the statistical table ID or dataset ID
  • get_e_stat_ref_dataset] : Refers to the filtering conditions for the dataset, etc.
  • get_e_stat_data_catalog : Retrieves information from statistical table files and statistical databases

How to Use

To use this server, you need the application ID for the e-Stat API. You can obtain it by following these steps:

  1. Access the e-Stat API features
  2. Register as a user
  3. Agree to the Terms of Use and Obtain Application ID

Claude Desktop

  • On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • On Windows: %APPDATA%/Claude/claude_desktop_config.json

Usage Examples

After connecting, you can ask Claude questions such as:

  • “Search for Tokyo’s 2023 Population Statistics”
  • “Obtaining statistics on ice cream demand”
  • “Comparing Aging Rates by Prefecture”

License

This project is offered under the MIT license

  • For details, please refer to the LICENSE file.

This page was translated automatically. Technical details may differ from the original.

Install

uvx estat-mcp-server
New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "e-stat": { "command": "uv", "args": [ "--directory", "/path/to/estat-mcp-server", "run", "server.py" ], "env": { "E_STAT_APP_ID": "YOUR_E_STAT_APP_ID" } } } }