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
- turn_on_bulb - Turn the smart bulb on
- turn_off_bulb - Turn the smart bulb off
- set_brightness - Set bulb brightness (0-100%)
- set_color - Set bulb color (RGB or HSV)
- get_bulb_status - Get current bulb status
- 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/offset_brightness
: Set brightness levelset_color
: Set RGB/HSV colorget_status
: Get current statusdiscover
: Network discovery
License
MIT