SwitchBot MCP Server
@genm/スイッチボット-mcp
AI アシスタントに SwitchBot デバイス制御機能を提供するモデル コンテキスト プロトコル サーバー。
特徴
デバイスの一覧
デバイスのステータスを取得する
制御デバイス(オン/オフ)
デバイス設定を変更する
シーンコントロール
デバイスステータス監視
Related MCP server: MCP Govee
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の SwitchBot MCP Server を自動的にインストールするには:
npx -y @smithery/cli install @genm/switchbot-mcp --client claude手動インストール
npm install @genm/switchbot-mcp設定
1. SwitchBot API設定
SwitchBotアプリをインストールする
アカウントを作成してサインインする
プロフィール > 設定 > 開発者向けオプションに移動します
トークンと秘密鍵の両方を取得する
2. MCPサーバーの構成
claude_desktop_config.jsonに以下を追加します。
{
"mcpServers": {
"switchbot": {
"command": "node",
"args": ["path/to/switchbot-mcp/build/index.js"],
"env": {
"SWITCHBOT_TOKEN": "your_token",
"SWITCHBOT_SECRET": "your_secret"
}
}
}
}3. 環境変数
SWITCHBOT_TOKEN=your_token
SWITCHBOT_SECRET=your_secret対応デバイス
プラグ
リビングルームのフロアランプ
オフィスPC電源
ボット
キッチンコーヒーメーカー
リビングルーム用空気清浄機
カーテン
寝室の窓のカーテン
勉強部屋用遮光カーテン
エアコン
リビングルームのエアコン
寝室のエアコン
加湿器
寝室用加湿器
勉強部屋用加湿器
ライト
キッチンの天井照明
寝室のナイトライト
リモコン
リビングルームのテレビ
勉強部屋用扇風機
デバイス名の例
AIアシスタントによる制御を容易にするために、デバイスにわかりやすい名前を付けることをお勧めします。例:
「カーテン」ではなく「寝室のカーテン」
「エアコン」ではなく「リビングルームAC」
「ボット」ではなく「キッチンコーヒーメーカー」
この命名規則は、AI アシスタントが各デバイスのコンテキストと場所を理解するのに役立ちます。
サポートされている操作
デバイス管理
デバイスの一覧
デバイスのステータスを取得する
デバイスのオン/オフ
デバイス設定を変更する
シーン管理
シーン一覧
シーンを実行する
センサー情報
温度
湿度
輝度
モーション
発達
# Build
npm run build
# Development mode (TypeScript)
npm run dev
# Start
npm startトラブルシューティング
デバイスが応答しません
デバイスがBluetoothの範囲内にあることを確認してください
デバイスのバッテリー状態を確認する
SwitchBotハブの接続ステータスを確認する
認証エラー
トークンと秘密鍵の有効期限を確認する
トークンと秘密鍵を再生成する
環境変数を更新する
ライセンス
ISC
Available Tools
3 toolscontrol_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
Scored across 3 tools
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.
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.
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.
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
Related MCP Connectors
Control your Tesla from your AI assistant - climate, charging, access, and security.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect assistants to your workspace knowledge, skills, and work tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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.1MIT
- AlicenseAqualityDmaintenanceEnables 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.91MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Xiaomi Mi Home smart devices through natural language, supporting device listing, property control, actions, and scenes.8MIT
- AlicenseAqualityDmaintenanceEnables monitoring and control of SwitchBot devices (temperature sensors, plugs, bots) via Claude Desktop or Home Assistant.10MIT