SwitchBot MCP Server
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
Using Docker (recommended)
{
"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 Name | Description |
|---|---|
get_switch_bot_devices |
Get SwitchBot devices |
get_switch_bot_device_status |
Get SwitchBot device status |
execute_command |
Execute a command on a device |
Recommend MCP Servers 💡
@automa-ai-power/rpa-mcp-servers
An MCP server implementation for YingDao RPA that enables AI to utilize RPA capabilities through SSE or Stdio modes
ios-simulator-mcp
MCP server for interacting with the iOS simulator
webpage-screenshot-mcp
An MCP that gives your agent the ability to snap a screenshot of webpages.
patch-file-mcp
An MCP Server that allows AI agents to make precise changes to files using block format patches
android-adb-controller
An MCP server that allows AI agents to control Android devices using ADB commands, providing functionalities like listing devices and executing screen taps.
litmus-mcp-server
Enables LLMs and intelligent systems to interact with Litmus Edge for device configuration, monitoring, and management.