ruru-swbot-mcp
Enables control of SwitchBot devices by name, reducing the risk of AI misidentifying device IDs.
README
ruru-swbot-mcp
SwitchBot API の MCP サーバー。デバイスを名前で操作できる設計なので、AIがIDを間違えて操作を失敗するリスクがあんまりなかったりします。
インストール
npm install -g ruru-swbot-mcp
環境変数
SwitchBot アプリの設定からトークンとシークレットを取得し、設定してください。
| 変数名 | 説明 |
|---|---|
SWITCHBOT_TOKEN |
SwitchBot API トークン |
SWITCHBOT_SECRET |
SwitchBot API シークレット |
MCP 設定
Claude Code
claude mcp add switchbot -- npx ruru-swbot-mcp
Claude Desktop
{
"mcpServers": {
"switchbot": {
"command": "npx",
"args": ["ruru-swbot-mcp"],
"env": {
"SWITCHBOT_TOKEN": "<your-token>",
"SWITCHBOT_SECRET": "<your-secret>"
}
}
}
}
リソース
| リソース名 | URI | 説明 |
|---|---|---|
device_statuses |
switchbot://devices/status |
全物理デバイスの現在の状態(温度・湿度・電源など) |
ツール
| ツール名 | 説明 |
|---|---|
list_devices |
デバイス一覧を取得(名前・タイプ・利用可能コマンド) |
get_device_status |
デバイスの現在の状態を取得 |
control_device |
デバイスにコマンドを送信 |
list_scenes |
シーン一覧を取得 |
execute_scene |
シーンを実行 |
使い方の例
1. list_devices でデバイス一覧を確認
2. get_device_status({ deviceName: "リビング照明" }) で状態を取得
3. control_device({ deviceName: "リビング照明", command: "turnOn" }) で操作
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.