H

Hive MCP

by mattoddie · io.github.mattoddie/hive-mcp

Unofficial MCP server for Hive (British Gas) smart heating. Lets Claude and other AI assistants check your thermostats, radiator valves, hot water, plugs and lights and, if you allow it, boost the heating, set temperatures, switch on the hot water and set holiday mode. Read-only by default, with an optional audit log of every change. Runs in Docker or as a one-click Claude Desktop bundle.

oci Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-mattoddie-hive-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "HIVE_USERNAME=<YOUR_VALUE>",
        "-e",
        "HIVE_PASSWORD=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_LOGIN_TOOLS=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "HIVE_MAX_TEMP=<YOUR_VALUE>",
        "-e",
        "HIVE_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "HIVE_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/hive-mcp:0.7.0"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-mattoddie-hive-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "HIVE_USERNAME=<YOUR_VALUE>",
        "-e",
        "HIVE_PASSWORD=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_LOGIN_TOOLS=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "HIVE_MAX_TEMP=<YOUR_VALUE>",
        "-e",
        "HIVE_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "HIVE_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/hive-mcp:0.7.0"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-mattoddie-hive-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "HIVE_USERNAME=<YOUR_VALUE>",
        "-e",
        "HIVE_PASSWORD=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_LOGIN_TOOLS=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "HIVE_MAX_TEMP=<YOUR_VALUE>",
        "-e",
        "HIVE_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "HIVE_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/hive-mcp:0.7.0"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-mattoddie-hive-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "HIVE_USERNAME=<YOUR_VALUE>",
        "-e",
        "HIVE_PASSWORD=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_LOGIN_TOOLS=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "HIVE_MAX_TEMP=<YOUR_VALUE>",
        "-e",
        "HIVE_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "HIVE_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/hive-mcp:0.7.0"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-mattoddie-hive-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "HIVE_USERNAME=<YOUR_VALUE>",
        "-e",
        "HIVE_PASSWORD=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_LOGIN_TOOLS=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "HIVE_MAX_TEMP=<YOUR_VALUE>",
        "-e",
        "HIVE_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "HIVE_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/hive-mcp:0.7.0"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-mattoddie-hive-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "HIVE_USERNAME=<YOUR_VALUE>",
        "-e",
        "HIVE_PASSWORD=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_LOGIN_TOOLS=<YOUR_VALUE>",
        "-e",
        "HIVE_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "HIVE_MAX_TEMP=<YOUR_VALUE>",
        "-e",
        "HIVE_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "HIVE_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/hive-mcp:0.7.0"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
MCP_TRANSPORT No Serve MCP over stdio (the image defaults to HTTP).
HIVE_USERNAME Yes The email address you log in to the Hive app with.
HIVE_PASSWORD secret Yes Your Hive password, used to log in and to log in again by itself as a remembered device.
HIVE_ALLOW_LOGIN_TOOLS No Let the assistant log in for you with an SMS code (hive_auth_start and hive_auth_complete). Default: true
HIVE_ALLOW_WRITES No Allow changes to your home: heating, boosts, hot water, holiday mode, plugs and lights. Off means read-only. Default: false
HIVE_MAX_TEMP No The highest heating target the assistant may set, in °C: 5 to 32 in steps of 0.5. Default: 25
HIVE_TOOLSETS No Optional comma-separated toolsets to expose fewer tools, e.g. home,heating,hotwater. Empty means all but raw.
HIVE_AUDIT_LOG No Optional audit log of every change and login: stderr, or a file on the volume such as /data/audit.jsonl.

Similar servers