MCP.so
登录

Switch Bot Mcp Server

@yasu89

关于 Switch Bot Mcp Server

SwitchBot MCP Server

基本信息

分类

其他

许可证

MIT

运行时

go

传输方式

stdio

发布者

yasu89

提交者

和田靖広

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "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>"
      }
    }
  }
}

工具

3

Get SwitchBot devices

Get SwitchBot device status

Execute a command on a device

概览

What is Switch Bot Mcp Server?

It is a Model Context Protocol (MCP) server that enables interactive control of SwitchBot devices using the SwitchBotAPI. It is designed for users who want to operate their SwitchBot hardware through LLM-based tools such as Claude Desktop.

How to use Switch Bot Mcp Server?

Obtain the token and secret from SwitchBotAPI via the official Getting Started guide. Configure the server in Claude Desktop using either Docker (recommended) or a pre‑compiled binary, setting the two environment variables SWITCH_BOT_TOKEN and SWITCH_BOT_SECRET.

Key features of Switch Bot Mcp Server

  • Retrieve a list of paired SwitchBot devices.
  • Get the current status of a specific device.
  • Execute commands (e.g., turn on/off) on devices.
  • Operate devices interactively through MCP.
  • Perform actions across multiple devices in one session.

Use cases of Switch Bot Mcp Server

  • Operate SwitchBot devices interactively from a conversational AI.
  • Execute commands on multiple devices at the same time.
  • Use data retrieved from one device to trigger an action on another.

FAQ from Switch Bot Mcp Server

What does the server actually do?

It provides three MCP tools – get_switch_bot_devices, get_switch_bot_device_status, and execute_command – that let an LLM or other MCP client discover and control SwitchBot hardware via the SwitchBot cloud API.

How do I obtain my SwitchBot API token and secret?

Follow the SwitchBotAPI Getting Started guide (linked in the README) to generate a token and secret for API access.

How can I configure the server for Claude Desktop?

Two methods are available. The recommended approach uses Docker: set the server command to docker run with the necessary environment variables. Alternatively, download the binary from the releases page and point the command field directly to it.

What runtime dependencies does it require?

The server runs either inside Docker (image yasu89/switch‑bot‑mcp‑server:latest) or as a standalone binary. No other runtime dependencies are listed.

Where does device data live?

Device information and status are fetched on demand from the SwitchBot cloud API. The server does not store any data locally.

评论

其他 分类下的更多 MCP 服务器