Sign inSign up

yasu89/switch-bot-mcp-server

By yasu89

•Updated over 1 year ago

Lightweight Docker image for running an MCP server to control SwitchBot devices via API.

Image
Machine learning & AI
0

666

yasu89/switch-bot-mcp-server repository overview

⁠SwitchBot MCP Server

Go Report Card Coverage Code to Test Ratio Test Execution Time

日本語はこちら⁠

The SwitchBot MCP Server is a Model Context Protocol (MCP)⁠ server that provides a feature to control SwitchBot devices interactively using SwitchBotAPI⁠.

⁠Use Cases

  • Operate SwitchBot devices interactively
  • Perform operations on multiple devices at once
  • Use data retrieved from a device to operate another device

⁠Installation

⁠Prepare secret and token

Follow the Getting Started guide of SwitchBotAPI⁠ to obtain the token and secret for SwitchBotAPI.

⁠Setting for Claude Desktop
{
  "mcpServers": {
    "switchbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--name",
        "switch-bot-mcp-server",
        "-e",
        "SWITCH_BOT_TOKEN",
        "-e",
        "SWITCH_BOT_SECRET",
        "yasu89/switch-bot-mcp-server:latest"
      ],
      "env": {
        "SWITCH_BOT_TOKEN": "YOUR_SWITCH_BOT_TOKEN",
        "SWITCH_BOT_SECRET": "YOUR_SWITCH_BOT_SECRET"
      }
    }
  }
}
⁠Using binary
Details

Download binary from release page⁠.

{
  "mcpServers": {
    "switchbot": {
      "command": "~/Downloads/switch-bot-mcp-server",
      "env": {
        "SWITCH_BOT_TOKEN": "YOUR_SWITCH_BOT_TOKEN",
        "SWITCH_BOT_SECRET": "YOUR_SWITCH_BOT_SECRET"
      }
    }
  }
}

⁠Available Tools

Retrieving devices, retrieving statuses, and executing commands on devices are available.

Tool NameDescription
get_switch_bot_devicesGet SwitchBot devices
get_switch_bot_device_statusGet SwitchBot device status
execute_commandExecute a command on a device

Tag summary

Content type

Image

Digest

sha256:bfbda23ec…

Size

10.7 MB

Last updated

over 1 year ago

docker pull yasu89/switch-bot-mcp-server