SwitchBot
genm7
Control SwitchBot smart home devices through its official API, enabling automation and integration with AI assistants.
Install
Install and configure the MCP from https://github.com/genm/switchbot-mcp now. Follow the repository's installation instructions, ask me for anything you can't complete yourself, and verify its tools load.README
Archived: use the official SwitchBot MCP
This repository is archived and no longer maintained.
Please use the official SwitchBot implementation maintained by OpenWonderLabs:
- Official repository: OpenWonderLabs/switchbot-openapi-cli
- npm: @switchbot/openapi-cli
- Agent/MCP guide
Quick start
npm install -g @switchbot/openapi-cli
switchbot auth login
switchbot mcp serve
The official MCP server supports stdio for local clients:
switchbot mcp serve
It also supports HTTP for a long-lived or remotely hosted agent worker:
switchbot mcp serve --port 8765
For Codex or Claude Code, use the official setup commands documented upstream:
switchbot codex setup
switchbot claude-code setup
If browser authentication is not available, configure an API token and secret with:
switchbot config set-token <token> <secret>
This repository is retained for historical reference only. Do not use its old package name, source-build instructions, or configuration examples for new deployments.
Related servers
Discord WebhookgenmPost messages to Discord webhooks.Everythingmodelcontextprotocol91KReference / test server with prompts, resources, and toolsFetchmodelcontextprotocol91KWeb content fetching and conversion for efficient LLM usageFilesystemmodelcontextprotocol91KSecure file operations with configurable access controls
