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.1.tar.gz (15.0 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.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for estat_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 71cc3f7a5e066f4a6dfdcf3f55f4402d687ee258fb6414f49539215c79d214d5
MD5 ae017bf8da7a1b81937602d4f448aca2
BLAKE2b-256 814963cba5b3b849542e8c47c2026e594991c145a94a69eee060c30993203e8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for estat_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cb2851d48b769462b808ea0148ee268d13b123e90b1cddcf93b9c43560b887f
MD5 8b1adb76d707baa9acb554686087e6de
BLAKE2b-256 944fd429ea0d6dc7744bf49d6bc3d352e37861d9fc7c6072b45cd97fc1dfcd10

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