Bond MCP Server
A Model Context Protocol (MCP) server that provides tools for controlling Bond Bridge smart home devices. This server enables AI assistants like Claude to interact with ceiling fans, fireplaces, shades, lights, and other RF-controlled devices through Bond Bridge hubs.
Features
- Device Management: List and get information about all connected Bond devices
- Fan Control: Control ceiling fan speed, direction, and power state
- Shade Control: Open, close, and set positions for motorized shades
- Light Control: Control dimmable lights and brightness levels
- Custom Actions: Send any Bond API action to devices
- Bridge Information: Get Bond Bridge status and configuration
Quick Start
Prerequisites
- Python 3.11 or higher
- Bond Bridge on your local network
- Bond API token (obtained from Bond Home app)
Installation
- Create and activate virtual environment:
- Install dependencies:
- Configure environment:
- Run the server:
Getting Your Bond Token
- Open the Bond Home app on your mobile device
- Go to Settings → Bond Bridge → Advanced → API
- Copy the Local Token (not the Cloud Token)
Configuration
Create a .env
file with your Bond Bridge configuration:
Podman Usage
Build and Run
Available Tools
Device Management
list_devices()
- List all Bond devicesget_device_info(device_id)
- Get detailed device informationget_device_state(device_id)
- Get current device stateget_bridge_info()
- Get Bond Bridge information
Device Control
toggle_device_power(device_id)
- Toggle device on/offsend_custom_action(device_id, action, argument?)
- Send custom Bond action
Fan Control
set_fan_speed(device_id, speed)
- Set fan speed (0-8)set_fan_direction(device_id, direction)
- Set direction ("forward"/"reverse")
Shade Control
control_shades(device_id, action, position?)
- Control shades- Actions: "open", "close", "set_position"
- Position: 0-100 (for set_position action)
Light Control
set_light_brightness(device_id, brightness)
- Set brightness (0-100)
MCP Client Integration
Add to your MCP settings:
Bond API Reference
This server uses the Bond Local API v2:
- Base URL:
http://{bridge_ip}/v2/
- Authentication: Bearer token in Authorization header
- Docs: Bond Local API Documentation
Troubleshooting
Common Issues
- Connection refused: Ensure Bond Bridge IP is correct and accessible
- Authentication failed: Verify Bond token is correct (use Local Token, not Cloud Token)
- Device not found: Check device ID exists using
list_devices()
- Action not supported: Verify device supports the action using
get_device_info()
Debug Logging
Enable debug logging by setting LOG_LEVEL=DEBUG
in your environment.
License
This project is licensed under the MIT License. See the LICENSE file for details.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables AI assistants to control Bond Bridge smart home devices including ceiling fans, motorized shades, dimmable lights, and other RF-controlled devices. Provides comprehensive device management and control capabilities through the Bond Local API.
Related MCP Servers
- AsecurityAlicenseAqualityEnables AI assistants to control SwitchBot devices, providing functionalities like device management, scene execution, and sensor information monitoring through the SwitchBot API.Last updated -33JavaScriptISC License
- AsecurityAlicenseAqualityA bridge that connects physical hardware devices with AI large language models via serial communication, allowing users to control hardware using natural language commands.Last updated -332PythonMIT License
- AsecurityAlicenseAqualityProvides tools for AI assistants to interact with smart home devices through Home Assistant, allowing operations like checking entity states and calling services.Last updated -31TypeScriptMIT License
- -securityAlicense-qualityA lightweight bridge enabling AI agents to perform real-world tasks on Android devices such as app navigation, UI interaction, and automated QA testing without requiring computer-vision pipelines or preprogrammed scripts.Last updated -29PythonMIT License