mcp-server-smartbulb

shree-bd/mcp-server-smartbulb

3.2

If you are the rightful owner of mcp-server-smartbulb and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This is an MCP server designed to enable AI assistants to control smart bulbs using UDP communication.

Tools
6
Resources
0
Prompts
0

MCP Server for Smart Bulb Control

An MCP (Model Context Protocol) server that enables AI assistants to control smart bulbs via UDP communication.

Architecture

AI Assistant <-> MCP Server <-> Smart Bulb (UDP 192.168.1.45:4000)

Features

  • Control smart bulb power (on/off)
  • Adjust brightness (0-100%)
  • Change color (RGB/HSV)
  • Get bulb status
  • Discover bulbs on network
  • Real-time status monitoring

Installation

npm install
npm run build

Configuration

Create a .env file:

BULB_IP=192.168.1.45
BULB_PORT=4000
MCP_SERVER_PORT=3000

Usage

As MCP Server

npm start

Development Mode

npm run dev

MCP Tools Available

  1. turn_on_bulb - Turn the smart bulb on
  2. turn_off_bulb - Turn the smart bulb off
  3. set_brightness - Set bulb brightness (0-100%)
  4. set_color - Set bulb color (RGB or HSV)
  5. get_bulb_status - Get current bulb status
  6. discover_bulbs - Discover bulbs on network

Protocol

The server communicates with smart bulbs using UDP packets with JSON payloads:

{
  "command": "set_power",
  "params": {
    "power": true
  }
}

Supported Bulb Commands

  • set_power: Turn bulb on/off
  • set_brightness: Set brightness level
  • set_color: Set RGB/HSV color
  • get_status: Get current status
  • discover: Network discovery

License

MIT