Logo di Homey MCP 服务器

Homey MCP 服务器

Community
maerestijnde

A comprehensive Model Context Protocol (MCP) server for Homey smart home automation systems, providing seamless integration with Claude AI assistants.

Autoremaerestijnde
Repositorymcp-homey
LinguaPython
Fork
3
Stelle
12
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Homey MCP 服务器 mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    12 stelle e 3 fork nel repository collegato.

Homey MCP Server

A comprehensive Model Context Protocol (MCP) server for Homey smart home automation systems, providing seamless integration with Claude AI assistants.

🏠 Overview

The Homey MCP Server enables Claude AI to interact directly with your Homey Pro smart home system, offering real-time device control, automation management, and advanced analytics through natural language conversations.

Key Capabilities:

  • 📱 Device Control: Control lights, thermostats, sensors, and smart appliances
  • 🔄 Flow Management: Trigger and manage Homey automation flows
  • 📊 Advanced Analytics: Historical data analysis, energy monitoring, and usage patterns
  • 🌡️ Climate Intelligence: Temperature and humidity monitoring across zones
  • ⚡ Energy Insights: Power consumption tracking and optimization recommendations
  • 📈 Live Monitoring: Real-time dashboard metrics and system status

🚀 Quick Start

Prerequisites

  • Homey Pro device with local API access enabled
  • Python 3.11+ with uv package manager
  • Claude Desktop application
  • Valid Homey Personal Access Token

Platform Support: macOS, Windows, Linux

Installation

  1. Clone and Setup

    bash
    git clone <repository-url>
    cd mcp-homey
    make install
    
    # Make the script executable (macOS/Linux only)
    chmod +x start_homey_mcp.sh
  2. Get Homey Token

    • Navigate to Homey Developer Portal
    • Go to Settings → Advanced → API Keys
    • Create new API Key with all available scopes
  3. Configure Claude Desktop

    ⚠️ IMPORTANT: Replace all paths with YOUR actual paths

    🍎 macOS/Linux

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

    json
    {
      "mcpServers": {
        "homey": {
          "command": "/path/to/your/uv/binary",
          "args": ["run", "--directory", "/path/to/your/mcp-homey", "python", "src/homey_mcp/__main__.py"],
          "env": {
            "HOMEY_LOCAL_ADDRESS": "YOUR_HOMEY_IP_ADDRESS",
            "HOMEY_LOCAL_TOKEN": "your-token-here",
            "OFFLINE_MODE": "false",
            "DEMO_MODE": "false"
          }
        }
      }
    }

    Find your uv path with:

    bash
    which uv
    # Usually: /Users/yourname/.local/bin/uv
    #      or: /usr/local/bin/uv  
    #      or: /opt/homebrew/bin/uv

    Example with real paths:

    json
    {
      "mcpServers": {
        "homey": {
          "command": "/Users/yourname/.local/bin/uv",
          "args": ["run", "--directory", "/Users/yourname/Projects/mcp-homey", "python", "src/homey_mcp/__main__.py"],
          "env": {
            "HOMEY_LOCAL_ADDRESS": "YOUR_HOMEY_IP_ADDRESS",
            "HOMEY_LOCAL_TOKEN": "your-personal-access-token",
            "OFFLINE_MODE": "false",
            "DEMO_MODE": "false"
          }
        }
      }
    }

    🪟 Windows

    Add to %APPDATA%\Claude\claude_desktop_config.json:

    json
    {
      "mcpServers": {
        "homey": {
          "command": "uv",
          "args": ["run", "--directory", "C:\\path\\to\\mcp-homey", "python", "src/homey_mcp/__main__.py"],
          "env": {
            "HOMEY_LOCAL_ADDRESS": "YOUR_HOMEY_IP_ADDRESS",
            "HOMEY_LOCAL_TOKEN": "your-token-here",
            "OFFLINE_MODE": "false",
            "DEMO_MODE": "false"
          }
        }
      }
    }

    Find your uv path with:

    powershell
    where uv
    # Usually: C:\Users\yourname\.local\bin\uv.exe
    #      or: C:\Program Files\uv\uv.exe

    Example with real paths:

    json
    {
      "mcpServers": {
        "homey": {
          "command": "C:\\Users\\yourname\\.local\\bin\\uv.exe",
          "args": ["run", "--directory", "C:\\Users\\yourname\\Projects\\mcp-homey", "python", "src/homey_mcp/__main__.py"],
          "env": {
            "HOMEY_LOCAL_ADDRESS": "YOUR_HOMEY_IP_ADDRESS",
            "HOMEY_LOCAL_TOKEN": "your-personal-access-token",
            "OFFLINE_MODE": "false",
            "DEMO_MODE": "false"
          }
        }
      }
    }

    Windows Notes:

    • Install uv first: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    • Use full Windows paths with double backslashes: C:\\Users\\Name\\Projects\\mcp-homey
    • Restart PowerShell after installing uv
    • Use where uv to find the exact uv.exe path
  4. Find Your Paths

    Before configuring Claude, find the correct paths for your system:

    macOS/Linux:

    bash
    # Find uv location
    which uv
    
    # Find project directory  
    cd path/to/mcp-homey && pwd
    
    # Example output:
    # /Users/yourname/.local/bin/uv
    # /Users/yourname/Projects/mcp-homey

    Windows:

    powershell
    # Find uv location
    where uv
    
    # Find project directory
    cd path\to\mcp-homey; pwd
    
    # Example output:
    # C:\Users\yourname\.local\bin\uv.exe
    # C:\Users\yourname\Projects\mcp-homey
  5. Restart Claude Desktop and test!

⚙️ Operating Modes

Switch modes by editing your Claude Desktop config and restarting Claude:

🏠 Normal Mode (Real Homey)

json
"env": {
  "HOMEY_LOCAL_ADDRESS": "YOUR_HOMEY_IP_ADDRESS",
  "HOMEY_LOCAL_TOKEN": "your-actual-token",
  "OFFLINE_MODE": "false",
  "DEMO_MODE": "false"
}

🧪 Demo Mode (Testing without Homey)

json
"env": {
  "OFFLINE_MODE": "true",
  "DEMO_MODE": "true"
}

Demo includes: Multi-room setup, various device types, sensors, flows, and analytics data

🔧 Development Mode

json
"env": {
  "OFFLINE_MODE": "true",
  "DEMO_MODE": "false"
}

Offline but minimal demo data

🛠️ Available Tools (17 total)

📱 Device Control (7 tools)

get_devices • control_device • get_device_status • get_zones • find_devices_by_zone • control_lights_in_zone • get_sensor_readings

🔄 Flow Management (7 tools)

get_flows • get_flow • trigger_flow • get_device_flow_capabilities • get_flow_folders • get_flow_cards • run_flow_card_action

📊 Insights & Analytics (3 tools)

get_device_insights • get_energy_data • get_live_insights

💬 Usage Examples

"What devices do I have?"
"What zones are available?"
"Turn on the kitchen lights at 75%"
"Set thermostat to 22 degrees"
"Start the evening routine"
"Show my energy usage this month"
"Export temperature data to CSV"

🔧 Development & Debugging

🍎 macOS/Linux

bash
# Manual testing
export OFFLINE_MODE="true" DEMO_MODE="true"
./start_homey_mcp.sh

# Development commands  
make install test lint format
python test_capabilities.py
python test_insights.py

# Debugging
tail -f homey_mcp_debug.log
make inspector  # Web UI at localhost:5173

🪟 Windows

powershell
# Manual testing
$env:OFFLINE_MODE="true"; $env:DEMO_MODE="true"
uv run python src/homey_mcp/__main__.py

# Development commands
uv sync
uv run pytest
uv run python test_capabilities.py
uv run python test_insights.py

# Debugging
Get-Content homey_mcp_debug.log -Wait  # Like tail -f

🔍 Troubleshooting

🪟 Windows-specific

❌ "uv not found" → Install uv: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
❌ Path issues → Use full Windows paths with double backslashes: C:\\Users\\Name\\Projects\\mcp-homey
❌ PowerShell execution policy → Run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
❌ Wrong uv path → Use where uv to find exact path, then use full path like C:\\Users\\yourname\\.local\\bin\\uv.exe

🍎 macOS/Linux

❌ "uv not found" → Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh and restart terminal
❌ "command not found" → Use full path to uv binary: /Users/yourname/.local/bin/uv
❌ Permission denied → Make sure uv is executable: chmod +x /path/to/uv
❌ Wrong paths → Use which uv and pwd to get correct absolute paths

🌐 All Platforms

❌ Missing scopes → Create API key with ALL scopes at my.homey.app
❌ Connection timeout → Verify Homey IP and network connectivity
❌ Unauthorized → Check token validity and expiration


Built with ❤️ for the Homey community

Installazione

TypingMind
{
  "mcpServers": {
    "mcp-homey": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/your/mcp-homey",
        "python",
        "src/homey_mcp/__main__.py"
      ]
    }
  }
}

Usa MCP Homey MCP 服务器 con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Homey MCP 服务器, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Homey MCP 服务器 come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Homey MCP 服务器.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "mcp-homey": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Homey MCP 服务器, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Homey MCP 服务器.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Homey MCP 服务器 per aiutarmi con questa attività?
Homey MCP 服务器
Certo. Ho letto.
Ecco cosa ho trovato con Homey MCP 服务器.

Domande frequenti

A cosa serve il server MCP Homey MCP 服务器?

Homey MCP 服务器 è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Homey MCP 服务器 MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Homey MCP 服务器 con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Homey MCP 服务器 con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Homey MCP 服务器, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Homey MCP 服务器 MCP a TypingMind?

Homey MCP 服务器 funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Homey MCP 服务器 MCP in TypingMind?

Homey MCP 服务器 mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Homey MCP 服务器 MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Homey MCP 服务器 richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇