@genm/switchbot-mcp
A Model Context Protocol server that provides SwitchBot device control capabilities to AI assistants.
日本語
Features
- List devices
- Get device status
- Control devices (on/off)
- Change device settings
- Scene control
- Device status monitoring
Installation
Installing via Smithery
To install SwitchBot MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @genm/switchbot-mcp --client claude
Manual Installation
npm install @genm/switchbot-mcp
Setup
1. SwitchBot API Configuration
- Install the SwitchBot app
- Create an account and sign in
- Go to Profile > Settings > Developer Options
- Get both the token and secret key
2. MCP Server Configuration
Add the following to 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. Environment Variables
SWITCHBOT_TOKEN=your_token
SWITCHBOT_SECRET=your_secret
Supported Devices
- Plug
- Living Room Floor Lamp
- Office PC Power Supply
- Bot
- Kitchen Coffee Maker
- Living Room Air Purifier
- Curtain
- Bedroom Window Curtain
- Study Room Blackout Curtain
- Air Conditioner
- Living Room AC
- Bedroom AC
- Humidifier
- Bedroom Humidifier
- Study Room Humidifier
- Light
- Kitchen Ceiling Light
- Bedroom Night Light
- Remote Control
- Living Room TV
- Study Room Fan
Device Name Examples
It’s recommended to give descriptive names to your devices for easier control by AI assistants. Examples:
- “Bedroom Curtain” instead of just “Curtain”
- “Living Room AC” instead of just “Air Conditioner”
- “Kitchen Coffee Maker” instead of just “Bot”
This naming convention helps AI assistants understand the context and location of each device.
Supported Operations
Device Management
- List devices
- Get device status
- Turn devices on/off
- Change device settings
Scene Management
- List scenes
- Execute scenes
Sensor Information
- Temperature
- Humidity
- Brightness
- Motion
Development
# Build
npm run build
# Development mode (TypeScript)
npm run dev
# Start
npm start
Troubleshooting
Device Not Responding
- Verify the device is within Bluetooth range
- Check device battery status
- Verify SwitchBot hub connection status
Authentication Errors
- Check token and secret key expiration
- Regenerate token and secret key
- Update environment variables
License
ISC
SwitchBot Server
Project Details
- genm/switchbot-mcp
- ISC License
- Last Updated: 2/28/2025
Recomended MCP Servers
This read-only MCP Server allows you to connect to Freshdesk data from Claude Desktop through CData JDBC Drivers....
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Detect hallucinations, repetitive bug fix (AKA. bottomless pit) and help AI coder's with access to documentations and suggest...
MCP Toolbox for Databases is an open source MCP server for databases, designed and built with enterprise-quality and...
Alnitak是一个基于nuxt和go开发的前后端分离的弹幕视频网站。 项目实现了视频、专栏、弹幕、评论、点赞、收藏等功能。
Java implementation of MCP Server for Craw4ai
Simple MCP Server Implementation
A lightweight mcp server that tells you exactly what time is it based on your IP.
This tool captures browser console logs and makes them available to Cursor IDE through the Model Context Protocol...
Model Context Protocol server for OpenStreetMap data





