What is e-Stat MCP Server?
The e-Stat MCP Server is a server that provides access to the Japanese government's statistical portal site "e-Stat" API, enabling language models to search and retrieve statistical data.
How to use e-Stat MCP Server?
To use the e-Stat MCP Server, you need an application ID from the e-Stat API. Follow these steps to obtain it:
- Visit the e-Stat API features.
- Register as a user.
- Agree to the terms of use and obtain your application ID.
Key features of e-Stat MCP Server?
search_e_stat_tables
: Search statistical tables by keywords and survey years.get_e_stat_meta_info
: Retrieve metadata corresponding to a statistical table ID.get_specific_e_stat_data
: Obtain statistical data corresponding to a statistical table ID or dataset ID.get_e_stat_ref_dataset
: Reference filtering conditions for datasets.get_e_stat_data_catalog
: Get information about statistical table files and databases.
Use cases of e-Stat MCP Server?
- Searching population statistics for Tokyo in 2023.
- Retrieving statistics on ice cream demand.
- Comparing aging rates by prefecture.
FAQ from e-Stat MCP Server?
- What is the e-Stat MCP Server used for?
It is used to access and retrieve various statistical data from the Japanese government's e-Stat portal.
- Is there a cost to use the e-Stat MCP Server?
No, it is free to use, but you need to register for an application ID.
- What kind of data can I retrieve?
You can retrieve a wide range of statistical data, including demographic statistics, economic data, and more.
e-Stat MCP server
Model Context Protocol (MCP) サーバーで、日本の政府統計ポータルサイト「e-Stat」のAPIにアクセスするための機能を提供します。言語モデルが統計データを検索・取得できるようになります。
ツール
このサーバーは以下のツールを提供しています:
search_e_stat_tables
: キーワードと調査年で統計表を検索しますget_e_stat_meta_info
: 統計表IDに対応するメタ情報を取得しますget_specific_e_stat_data
: 統計表IDまたはデータセットIDに対応する統計データを取得しますget_e_stat_ref_dataset
: データセットの絞り込み条件等を参照しますget_e_stat_data_catalog
: 統計表ファイルおよび統計データベースの情報を取得します
使い方
このサーバーを使用するには、e-Stat APIのアプリケーションIDが必要です。以下の手順で取得できます:
- e-Stat API機能にアクセス
- ユーザ登録を行う
- 利用規約に同意してアプリケーションIDを取得
Claude Desktop
- On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
- On Windows:
%APPDATA%/Claude/claude_desktop_config.json
{
"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"
}
}
}
}
{
"mcpServers": {
"e-stat": {
"command": "uvx",
"args": [
"estat-mcp-server"
],
"env": {
"E_STAT_APP_ID": "YOUR_E_STAT_APP_ID"
}
}
}
}
使用例
接続後、Claudeに以下のような質問ができます:
- "2023年の東京都の人口統計を検索して"
- "アイスクリームの需要に関する統計を取得して"
- "都道府県別の高齢化率を比較して"
ライセンス
このプロジェクトはMITライセンスの下で提供されています
- 詳細はLICENSEファイルを参照してください。