Skip to main content
Glama

Tibber MCP

by linkcd

Tibber MCP サーバー

これは、ノルウェーの電力供給業者Tibberモデル コンテキスト プロトコル (MCP)サーバーです。

MCP サーバーをローカルで実行し、Claude Desktop やRoo Codeなどのさまざまなホスト経由でアクセスできます。

詳細については、私のブログ投稿をご覧ください。
Tibber MCPサーバーの構築:AIエージェントをエネルギー消費データに接続する

概要

Tibber MCP サーバーは、AI エージェントにTibber APIと対話し、現在のエネルギー価格やエネルギー消費データなどの情報を照会するための便利な方法を提供します。

クエリの例

MCP サーバーに接続すると、次のような質問をすることができます。

  • 「電力消費データを分析し、通常のピーク時間やその他の興味深いパターンを読みやすい形式で提示します。」
  • 「昨日、最も電力を使ったのはいつですか?」
  • 「昨日の午前7時にどれくらいの電力を消費したか?」
  • 「現在のエネルギー価格はいくらですか?」
  • 「明日の最も安い 3 つの時間をリストします。」
  • 「明日のエネルギー価格は上がるのか、下がるのか?」

デモビデオ

建築

建築

要件

インストール

  1. uvをインストールします:
    # On macOS and Linux curl -LsSf https://astral.sh/uv/install.sh | sh
    # On Windows powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
  2. このリポジトリをクローンします:
    git clone https://github.com/linkcd/tibber-mcp.git cd tibber-mcp
  3. Python 仮想環境をセットアップし、依存関係をインストールします。
    uv venv --python 3.12 && source .venv/bin/activate && uv pip install --requirement pyproject.toml

ホスト構成

Claude DesktopまたはVSのRoo Code

{ "mcpServers":{ "tibber":{ "command":"uv", "args":[ "--directory", "[PATH-TO-ROOT-OF-THE-CLONED-TIBBER-MCP-FOLDER]", "run", "server.py" ], "env":{ "TIBBER_API_TOKEN":"[YOUR-TIBBER-TOKEN]" } } } }

重要[YOUR-TIBBER-TOKEN]実際のトークンに置き換えてください。実際の認証情報をバージョン管理にコミットしないでください。

MCP サーバーをローカルでデバッグおよびテストする

サーバーをローカルで実行し、 MCPインスペクターを実行します。

npx @modelcontextprotocol/inspector -e TIBBER_API_TOKEN=[YOUR-TIBBER-TOKEN] python server.py

利用可能なツール

サーバーは、LLM が使用できる次のツールを公開します。

  1. get_consumption_data() : 期間、総コスト、基本エネルギーコスト、消費kwhなど、過去30日間の時間別消費データを取得します。
  2. get_price_and_home_info() : 価格情報 (現在、今日、明日) と住宅情報 (所有者、住所、サブスクリプションなど) を取得します。

ライセンス

MITライセンス

謝辞

  • このツールはAnthropicのMCPフレームワークを使用しています
  • サーバー実装用にFastMCPで構築
  • TibberインジェラトインはpyTibberライブラリに基づいています
-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

ノルウェーの電力会社 Tibber 向けの MCP サーバー。

Tibber MCP サーバーは、AI エージェントに Tibber API と対話し、現在のエネルギー価格やエネルギー消費データなどの情報を照会するための便利な方法を提供します。

  1. 概要
    1. クエリの例
      1. デモビデオ
        1. 建築
          1. 要件
            1. インストール
              1. ホスト構成
                1. MCP サーバーをローカルでデバッグおよびテストする
                2. 利用可能なツール
              2. ライセンス
                1. 謝辞

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    The Multi DB MCP Server is a high-performance implementation of the Database Model Context Protocol designed to revolutionize how AI agents interact with databases. Currently supporting MySQL and PostgreSQL databases.
                    Last updated -
                    260
                    Go
                    MIT License
                    • Linux
                    • Apple
                  • A
                    security
                    A
                    license
                    A
                    quality
                    MCP Server that connects AI agents to Chargebee Platform.
                    Last updated -
                    2
                    723
                    12
                    TypeScript
                    MIT License
                    • Linux
                    • Apple
                  • A
                    security
                    A
                    license
                    A
                    quality
                    The Hostinger MCP server enables seamless integration of Hostinger’s API with AI tools. This server exposes Hostinger API endpoints as callable tools, allowing AI models to fetch live data or perform real-time actions on hosting infrastructure.
                    Last updated -
                    69
                    218
                    21
                    JavaScript
                    MIT License
                    • Apple
                    • Linux
                  • -
                    security
                    F
                    license
                    -
                    quality
                    An MCP server that enhances TickTick workflow by providing comprehensive task management tools with improved filtering capabilities, allowing AI assistants and MCP-compatible applications to interact with TickTick tasks with greater precision.
                    Last updated -
                    26
                    Python

                  View all related MCP servers

                  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/linkcd/tibber-mcp'

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