Skip to main content
Glama
Tibber MCP
by linkcd

Tibber MCP Server

This is a Model Context Protocol (MCP) Server for Tibber, a Norwegian power supplier.

You can run the MCP server locally and access it via different hosts such as Claude Desktop or Roo Code.

For more details, check out my blog post:
Building a Tibber MCP Server: Connect Your AI Agent to Energy Consumption Data

Overview

The Tibber MCP server provides an AI agent with a convenient way to interact with the Tibber API and query information such as current energy prices and your energy consumption data.

Related MCP server: Tigo Energy MCP Server

Example Queries

Once connected to the MCP server, you can ask questions like:

  • "Analyze my power consumption data and present the usual peak hours and any other interesting patterns in an easy-to-read format."

  • "When did I use the most power yesterday?"

  • "How much power did I consume yesterday at 7 AM?"

  • "What is the current energy price?"

  • "List the 3 cheapest hours of tomorrow."

  • "Is the energy price higher or lower tomorrow?"

Demo video

Tibber MCP Demo

Architecture

Architecture

Requirements

Installation

  1. Install 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. Clone this repository:

    git clone https://github.com/linkcd/tibber-mcp.git
    cd tibber-mcp
  3. Set up the Python virtual environment and install dependencies:

    uv venv --python 3.12 && source .venv/bin/activate && uv pip install --requirement pyproject.toml

Host Configuration

In Claude Desktop or Roo Code in VS

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

IMPORTANT: Replace [YOUR-TIBBER-TOKEN] with your actual token. Never commit actual credentials to version control.

Debug and test the MCP server locally

Run the server locally and run MCP inspector against it

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

Available Tools

The server exposes the following tools that LLM can use:

  1. get_consumption_data(): Get the hourly consumption data for the last 30 days, such as time period, total cost, base energy cost, and consumpted kwh

  2. get_price_and_home_info(): Get price info (current, today and tomorrow) and home info (owner, address, subscription...)

License

MIT License

Acknowledgments

  • This tool uses Anthropic's MCP framework

  • Built with FastMCP for server implementation

  • The tibber ingeratoin is based on pyTibber library

Available Tools

2 tools
get_consumption_dataB

Get the hourly consumption data for the last 30 days, such as time period, total cost, base energy cost, and consumpted kwh.

Inputs: no named parameters.

get_price_and_home_infoB

Get the infomation of: 1. current price, with price break down, price level, and currency 2. hourly price and price level of today 3. hourly price and price level of tomorrow 4. home address info, timezone etc the currency is applying to all prices

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one focuses on consumption data (historical usage and costs), while the other focuses on price information and home details (current, forecasted pricing and location/timezone). There is no overlap in functionality, making it easy for an agent to select the correct tool based on the query.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern with 'get_' prefix and descriptive names (get_consumption_data and get_price_and_home_info). The naming is predictable and readable, adhering to a clear convention throughout the set.

    Tool Count3/5

    With only 2 tools, the server feels thin for a domain like energy/utility management, which typically involves more operations such as setting preferences, controlling devices, or accessing billing history. While the tools cover key data retrieval aspects, the count is borderline low for comprehensive agent interaction.

    Completeness3/5

    The tools provide good read-only coverage for consumption and pricing data, but there are notable gaps: no update/delete operations, no ability to manage home settings or devices, and no support for actions like adjusting energy usage or handling billing. This limits the server to data retrieval only, which may cause agent failures in broader utility management tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that provides comprehensive access to Tigo Energy solar system data and analytics. It enables AI assistants to interact with your Tigo solar monitoring system to retrieve production data, performance metrics, system health information, and maintenance insights.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for EmonCMS energy monitoring API, enabling AI assistants to query energy feeds, inputs, and historical data.
      1
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      MCP server that enables LLMs to interact with Monta's EV charging platform for managing charge points, charging sessions, and wallet operations.
      7
      -