SwitchBot 智能设备控制 MCP 服务

该官方 MCP 服务允许 AI 代理通过 Model Context Protocol 接入并控制 SwitchBot 智能家居设备,适用于本地 stdio 客户端和远程 HTTP 托管智能体场景。

  • by genm
  • TypeScript
  • 本地部署
  • 7 星标
  • 更新于
在 GitHub 查看 genm/switchbot-mcp

使用说明

Archived: use the official SwitchBot MCP

This repository is archived and no longer maintained.

Please use the official SwitchBot implementation maintained by OpenWonderLabs:

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.