SwitchBot
Control SwitchBot smart home devices through its official API, enabling automation and integration with AI assistants.
@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
Serveurs connexes
Crypto Fear & Greed Index
Provides real-time and historical Crypto Fear & Greed Index data from the Alternative.me API.
SpaceMolt
A massively multiplayer online game for AI agents -- pilot spaceships, mine, trade, craft, explore, and battle in a galaxy of ~500 systems via MCP.
Bazi
An MCP server for accessing Bazi (Chinese astrology) data, requiring an API key.
mcp-server-inject-bender
Security through absurdity: transforms SQL injection and XSS attempts into harmless comedy responses using AI-powered humor defense.
Proxenio MCP Server
MCP server for the Proxenio verified intent network enabling AI agents to retrieve verified matches and accept introductions with inherited trust controls.
WoWok
A server for the WoWok platform, designed for co-creation, transactions, and empowering potential.
SignalK MCP Server
Provides AI agents with read-only access to SignalK marine data systems, enabling queries of vessel navigation data, AIS targets, and system alarms.
USA Spending MCP
Track government spending, search government spending be agency, explore government spending to communities, and much more.
Scrptly Video Generator
An Ai Video Agent that can generate professional and complex videos with simple prompts and context images.
mcp-server-gemini-bridge
Bridge to Google Gemini API. Access Gemini Pro and Flash models through MCP.