Skip to main content
Glama
dylanpieper

RMI Utility Transition Hub — MCP Server

by dylanpieper

RMI Utility Transition Hub — MCP Server

RMIの公開Utility Transition HubデータをDuckDBに読み込むMCPサーバーです。任意のMCPクライアント(Claude Code、Claude Desktop)は、自然言語で米国の電力会社の排出量、発電構成、気候整合性を照会できます。

セットアップ

1. 依存関係のインストール

pip install fastmcp duckdb pandas pymupdf

またはuvを使用する場合:

uv init rmi-mcp-uth
cd rmi-mcp-uth
uv add fastmcp duckdb pandas pymupdf

2. RMIデータのダウンロード

Utility Transition Hubからデータをダウンロードし、server.pyと同じディレクトリにあるdata/ディレクトリに展開します:

mkdir data
cd data

curl -LO https://utilitytransitionhub.rmi.org/static/data_download/data_download_all_pt_1.zip
curl -LO https://utilitytransitionhub.rmi.org/static/data_download/data_download_all_pt_2.zip

unzip data_download_all_pt_1.zip
unzip data_download_all_pt_2.zip

3. MCP Inspectorでテストする

npx @modelcontextprotocol/inspector python server.py

これによりブラウザUIが開き、各ツールの呼び出し、リソースの参照、プロトコルトラフィックの検査ができます。

4. クライアントを接続する

このサーバーはstdioトランスポートを使用します。任意のMCPクライアントが接続できます。Claude CodeおよびClaude Desktopの設定は以下のとおりです。

uvを使用する場合、クライアントにuvを指定して環境を解決させます。uvを使用しない場合、依存関係がインストールされたpythonを指定します。どちらの場合も絶対パスを使用してください。

Claude Code

CLIでサーバーを追加します:

claude mcp add rmi-mcp-uth -- uv --directory /absolute/path/to/rmi-mcp-uth run server.py

または、uvを使用しない場合:

claude mcp add rmi-mcp-uth -- python /absolute/path/to/server.py

デフォルトでは、これはlocalサーバーです: コマンドを実行したディレクトリ内でのみ、あなただけが利用できます。--scope userを使用するとすべてのプロジェクトで利用できるようになり、--scope projectを使用するとgitにチェックインされて共同作業者と共有される.mcp.jsonファイルが書き出されます:

claude mcp add rmi-mcp-uth --scope project -- uv --directory /absolute/path/to/rmi-mcp-uth run server.py

接続を確認します:

claude mcp list

rmi-mcp-uth: ... - ✔ Connectedと表示されるはずです。セッション内で/mcpを実行すると、サーバーのツール、リソース、プロンプトが一覧表示されます。プロンプトはスラッシュコマンド(/mcp__rmi-mcp-uth__decarbonization_assessment)として表示され、リソースは@rmi-mcp-uth:rmi://data-dictionaryで添付できます。

削除するには: claude mcp remove rmi-mcp-uth

Claude Desktop

Claude Desktopの設定ファイルに以下を追加します:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "rmi-mcp-uth": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/rmi-mcp-uth", "run", "server.py"]
    }
  }
}

または、uvを使用しない場合:

{
  "mcpServers": {
    "rmi-mcp-uth": {
      "command": "python",
      "args": ["/absolute/path/to/server.py"]
    }
  }
}

Claude Desktopを再起動します。メッセージボックスにハンマーアイコンが表示されます。クリックするとツールを確認できます。

Related MCP server: US ISO Grid MCP

公開内容

ツール

Tool

What it does

list_tables

すべてのテーブル、列、行数を表示

preview_table

任意のテーブルのサンプル行を表示

list_utilities

州ごとに電力会社を検索

get_emissions_trend

電力会社ごとのCO2排出量の推移

get_generation_mix

technology_rmi別の発電構成

get_climate_alignment

実際のCO2排出量を1.5°C経路と比較

query_data

読み取り専用SQLを実行(DuckDB構文)

リソース

URI

Description

rmi://data-dictionary

すべてのデータセット、列、単位の概要

rmi://data-dictionary-full

完全なデータ辞書PDF(各フィールドの定義、出典、方法論)

rmi://methodology

RMIの方法論ドキュメント(データソース、前提条件、計算)

プロンプト

Prompt

Description

decarbonization_assessment

電力会社の気候進捗の完全な分析

state_landscape

州内の全電力会社の概要

investment_risk_profile

電力会社の化石燃料資産への財務的エクスポージャー

対話例

  • "コロラド州のどの電力会社が最もCO2排出量が多いですか?"

  • "Xcel Energyの過去10年間の排出量の推移を見せて"

  • "Duke EnergyとSouthern Companyの発電構成を比較してください"

  • "どの電力会社が1.5°C経路から最も外れていますか?"

  • "米国の電力会社の発電に占める再生可能エネルギーの割合はどのくらいですか?"

データベースの再構築

utility_hub.duckdbを削除してサーバーを再起動します。CSVから自動的に再構築されます。

データライセンス

RMI Utility Transition HubのデータはCC BY 4.0の下でライセンスされています。

F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    An MCP server that provides access to Northwood Capital Partners' portfolio carbon data, enabling MCP-compatible agents to query emissions, analyze decarbonization gaps, and simulate reduction initiatives through natural language.
    5
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables real-time access to US electricity generation, fuel mix, and demand data through natural language queries.
    15
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables natural language querying of SQL databases and REST APIs through the MCP protocol, grounded in a semantic layer.
    2,887
    1
    AGPL 3.0

View all related MCP servers

Related MCP Connectors

  • Browse and query the EIA API v2 — electricity, petroleum, natural gas, coal, forecasts via MCP.

  • Official Microsoft MCP Server to query Microsoft Entra data using natural language

  • GibsonAI MCP server: manage your databases with natural language

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dylanpieper/rmi-mcp-uth'

If you have feedback or need assistance with the MCP directory API, please join our Discord server