Node MCP Server

The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE) with automatic OpenAPI fallback.

Local serverstdioTypeScript

What is the Node MCP server?

Node MCP server exists for a simple reason — assistants are far more useful when they can act on Node directly instead of describing what you should do. The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE) with automatic OpenAPI fallback.

What you get

This module now supports both Bluetooth Low Energy (BLE) and the SwitchBot OpenAPI, providing more flexibility and options for interacting with your devices.

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Configuration and credentials

You will need 4 environment variables: YOUR_TOKEN, YOUR_SECRET, YOUR_DEVICE_ID, YOUR_BOT_ID. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the node mcp server does with a few real requests.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Node's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Configuration

VariableDescriptionRequired
YOUR_TOKENCredential the server authenticates with.Yes
YOUR_SECRETCredential the server authenticates with.Yes
YOUR_DEVICE_IDConfiguration value read at startup.Optional
YOUR_BOT_IDConfiguration value read at startup.Optional

Frequently asked questions

It connects Node to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Node directly.