myIO

v1.7.0
io.github.SmarthomeNinja/myio-mcp Checked 2 days ago Published 10 days ago

Read and control a myIO smart home controller: heating, lighting, blinds and energy.

Values you need

VariableWhat it is
MYIO_BASE_URLrequired URL of the myIO controller, e.g. http://192.168.1.178
MYIO_USERNAMErequired myIO user name; its permission level limits what the tools can do
MYIO_PASSWORDrequired secret Password of the myIO user
MYIO_WRITEoptional Write level: state (switch only), config (also settings) or admin Default: config
MYIO_TOOLSETSoptional Tool groups to load, e.g. house,automation (default: all)
MYIO_SERVERSoptional secret Several controllers: JSON array of {name, url, username, password}; overrides the three above

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add myio-mcp -e 'MYIO_BASE_URL=<MYIO_BASE_URL>' -e 'MYIO_PASSWORD=<MYIO_PASSWORD>' -e 'MYIO_USERNAME=<MYIO_USERNAME>' -- npx -y myio-mcp@1.7.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "myio-mcp": {
      "args": [
        "-y",
        "myio-mcp@1.7.0"
      ],
      "command": "npx",
      "env": {
        "MYIO_BASE_URL": "<MYIO_BASE_URL>",
        "MYIO_PASSWORD": "<MYIO_PASSWORD>",
        "MYIO_USERNAME": "<MYIO_USERNAME>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "myio-mcp": {
      "args": [
        "-y",
        "myio-mcp@1.7.0"
      ],
      "command": "npx",
      "env": {
        "MYIO_BASE_URL": "<MYIO_BASE_URL>",
        "MYIO_PASSWORD": "<MYIO_PASSWORD>",
        "MYIO_USERNAME": "<MYIO_USERNAME>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "MYIO_BASE_URL",
      "id": "myio-base-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "MYIO_PASSWORD",
      "id": "myio-password",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "MYIO_USERNAME",
      "id": "myio-username",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "myio-mcp": {
      "args": [
        "-y",
        "myio-mcp@1.7.0"
      ],
      "command": "npx",
      "env": {
        "MYIO_BASE_URL": "${input:myio-base-url}",
        "MYIO_PASSWORD": "${input:myio-password}",
        "MYIO_USERNAME": "${input:myio-username}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.myio-mcp]
command = "npx"
args = ["-y", "myio-mcp@1.7.0"]
env = { "MYIO_BASE_URL" = "<MYIO_BASE_URL>", "MYIO_PASSWORD" = "<MYIO_PASSWORD>", "MYIO_USERNAME" = "<MYIO_USERNAME>" }

For AI agents

  1. Ask the user for: MYIO_BASE_URL, MYIO_USERNAME, MYIO_PASSWORD. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: myio_servers, myio_info, myio_find, myio_list_devices, myio_read_sensors, myio_get_status, myio_output, myio_relay_on, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json