Skip to main content

using e-stat

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"
            ]
        }
    }
}

使用例

接続後、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.0.tar.gz (14.9 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.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for estat_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dc8a1485eaf690c385ddb5d0dfe5b9c87fb10069e68b0dd028d12c51fe5133d3
MD5 92c6ef6674656b95602f78cb2ba42605
BLAKE2b-256 d838bc4f6c309f0e10f98bece025aad6905553a4577b32d6a58a6791f4c1d992

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for estat_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57977f3cc0acb0b0039476c7dc0f7d3c3dff28c586c7e0541a78443c7d2b2757
MD5 7afffdf2a2463cc6cb9bd2b5760f4a64
BLAKE2b-256 72306e919b813d7f484ab6a7fd98d687799872ffc9014c725ae0b9cda81062b8

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