Skip to main content
Glama
SwitchBot MCP Server
by genm

Archived: use the official SwitchBot MCP

This repository is archived and no longer maintained.

Please use the official SwitchBot implementation maintained by OpenWonderLabs:

Quick start

npm install -g @switchbot/openapi-cli
switchbot auth login
switchbot mcp serve

The official MCP server supports stdio for local clients:

switchbot mcp serve

It also supports HTTP for a long-lived or remotely hosted agent worker:

switchbot mcp serve --port 8765

For Codex or Claude Code, use the official setup commands documented upstream:

switchbot codex setup
switchbot claude-code setup

If browser authentication is not available, configure an API token and secret with:

switchbot config set-token <token> <secret>

This repository is retained for historical reference only. Do not use its old package name, source-build instructions, or configuration examples for new deployments.

Available Tools

3 tools
control_deviceD

デバイスを制御します

Inputs: deviceId (required), command (required).

get_device_statusC

デバイスのステータスを取得します

Inputs: deviceId (required).

list_devicesB

デバイス一覧を取得します

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: control_device performs actions on devices, get_device_status retrieves status information, and list_devices enumerates available devices. The descriptions clearly differentiate between controlling, checking status, and listing devices.

    Naming Consistency5/5

    All three tools follow a consistent verb_noun pattern with snake_case naming: control_device, get_device_status, and list_devices. The naming is perfectly uniform and predictable across the entire tool set.

    Tool Count3/5

    With only 3 tools, the count feels somewhat thin for a device control server that might benefit from more granular operations like specific device types or advanced controls. However, it covers the absolute basics adequately.

    Completeness3/5

    The tools provide basic CRUD-like coverage for device management (list, get status, control), but there are notable gaps such as no ability to create/configure new devices, delete devices, or handle device groups/scenes. The surface is functional but minimal.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Home Assistant smart home devices through natural language. Control devices, manage automations, query entity states, and retrieve historical data across your home automation system.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to control Govee smart devices, including lights, via natural language. Supports turning on/off, changing colors, adjusting brightness, and activating scenes through the Govee API or local network.
      9
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to control Xiaomi Mi Home smart devices through natural language, supporting device listing, property control, actions, and scenes.
      8
      MIT