Skip to main content
Glama
kaeljune

Fibaro HC3 MCP Server

by kaeljune

fibaro_get_scenes

Retrieve all configured scenes from your Fibaro Home Center 3 smart home system to manage automation routines and device interactions.

Instructions

Get all scenes from Fibaro HC3

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP server handler for fibaro_get_scenes tool: checks connection, calls fibaroClient.getScenes(), formats and returns the list of scenes.
    case 'fibaro_get_scenes': {
      if (!this.fibaroClient) {
        throw new Error('Not connected to Fibaro HC3. Please check your configuration and restart the MCP server.');
      }
      const scenes = await this.fibaroClient.getScenes();
      return {
        content: [
          {
            type: 'text',
            text: `Found ${scenes.length} scenes:\n\n${scenes
              .map(s => `ID: ${s.id} - ${s.name} - Room: ${s.roomID}`)
              .join('\n')}`,
          },
        ],
      };
    }
  • src/index.ts:135-141 (registration)
    Registration of the fibaro_get_scenes tool in the ListTools response, including name, description, and input schema (no parameters required).
      name: 'fibaro_get_scenes',
      description: 'Get all scenes from Fibaro HC3',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • TypeScript interface defining the structure of Scene objects used in fibaro_get_scenes.
    export interface Scene {
      id: number;
      name: string;
      roomID: number;
      enabled: boolean;
      visible: boolean;
      isLua: boolean;
  • FibaroClient.getScenes() method: performs HTTP GET to /api/scenes endpoint and returns the scenes data.
    async getScenes(): Promise<Scene[]> {
      try {
        const response = await this.client.get('/api/scenes');
        return response.data;
      } catch (error) {
        throw new Error(`Failed to get scenes: ${error}`);
      }
    }

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/kaeljune/fibaro-mcp-server'

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