Tibber MCP

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

主机配置

在 VS 中的 Claude Desktop 或 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() :获取过去 30 天的每小时消耗数据,例如时间段、总成本、基本能源成本和消耗的千瓦时
  2. get_price_and_home_info() :获取价格信息(当前、今天和明天)和家庭信息(所有者、地址、订阅......)

执照

MIT 许可证

致谢

  • 该工具使用 Anthropic 的 MCP 框架
  • 使用FastMCP构建用于服务器实现
  • tibber ingeratoin 基于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
                    F
                    license
                    -
                    quality
                    An MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.
                    Last updated 3 months ago
                    1
                    16
                    JavaScript
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A server that enables interaction with Telegram chats directly through MCP-compatible hosts like Claude for Desktop, providing tools to retrieve chats, get messages, and send messages.
                    Last updated 10 days ago
                    85
                    Python
                    Apache 2.0
                    • Apple
                    • Linux
                  • -
                    security
                    F
                    license
                    -
                    quality
                    An MCP server that enables AI assistants to interact with Flutterwave payment services, providing tools for transaction management, payment link generation, and automated customer support.
                    Last updated a month ago
                    TypeScript
                  • A
                    security
                    A
                    license
                    A
                    quality
                    MCP Server that connects AI agents to Chargebee Platform.
                    Last updated a month ago
                    2
                    70
                    4
                    TypeScript
                    MIT License
                    • Linux
                    • Apple

                  View all related MCP servers

                  ID: 6k4p4x3psc