e Stat MCP Server

by cygkichi

271 downloads
Not rated
GitHub

About

日本の政府統計ポータルサイト「e-Stat」のAPIにアクセスするための機能。 The Japanese government's statistical portal site "e-Stat" API

Details

Author
cygkichi
Downloads
271
Categories
Other

- search_e_stat_tables: Search statistical tables by keyword and survey year.
- get_e_stat_meta_info: Retrieve metadata for a given statistical table ID.
- get_specific_e_stat_data: Fetch statistical data by table ID or dataset ID.
- get_e_stat_ref_dataset: Reference dataset filtering conditions and related info.
- get_e_stat_data_catalog: Get information on statistical table files and databases.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name e Stat MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Obtain an e-Stat API application ID from the e-Stat API site. Then configure the server in your MCP client (e.g., Claude Desktop) using either a local uv command with a path to the server files, or the uvx command for the published package. Set the E_STAT_APP_ID environment variable to your API ID.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "e stat mcp server": {
            "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": "uv",
        "args": [
            "--directory",
            "/path/to/estat-mcp-server",
            "run",
            "server.py"
        ],
        "env": {
            "E_STAT_APP_ID": "YOUR_E_STAT_APP_ID"
        }
    }
}

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が必要です。以下の手順で取得できます: 1. e-Stat API機能にアクセス 2. ユーザ登録を行う 3. 利用規約に同意してアプリケーション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ファイルを参照してください。

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.