Skip to main content

MCP server for Japan's e-Stat API integration

Project description

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ファイルを参照してください。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

estat_mcp_server-0.1.3.tar.gz (87.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

estat_mcp_server-0.1.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file estat_mcp_server-0.1.3.tar.gz.

File metadata

  • Download URL: estat_mcp_server-0.1.3.tar.gz
  • Upload date:
  • Size: 87.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for estat_mcp_server-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8559c2f16ed0198a8261207286ae7d6205d7e6e60e1198244be48733cdbb7acf
MD5 372d4ae64659b989f9ec94b394c9147c
BLAKE2b-256 70e63d8110c468889dbcb77c7b3c2eb749c8052c1788b3e29b808a8d65aebd24

See more details on using hashes here.

File details

Details for the file estat_mcp_server-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for estat_mcp_server-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f689bf33f890e875433a0413f3ed6397b223f21b1f3bb69280659a83f582599
MD5 7eab8081cd066bf735a919fbcbdb119e
BLAKE2b-256 38cd7a45e05aacbaf0a2a5a52f5a9c693e2bca0003d155448456a192d6be46a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page