Skip to main content
Glama
mvellayan

MCP Blinds Controller

by mvellayan

MCP Blinds Controller

Control motorized window blinds through Bond Bridge API using Model Context Protocol (MCP).

Features

  • Open, close, or stop blinds movement

  • Filter blinds by name, location, or row

  • Async HTTP API integration

  • MCP server for AI assistant integration

Related MCP server: camoufox-mcp

Setup

  1. Install dependencies:

pip install aiohttp mcp
  1. Set environment variables:

export MY_TOKEN="your_bond_token"
export MY_IP="192.168.x.x"
  1. Configure devices in data/devices.json:

[
  {
    "id": "device_id",
    "name": "front",
    "location": "foyer", 
    "row": "top"
  }
]

Usage

As MCP Server

python blinds.py

Direct Function Call

from blinds import set_blinds_state

# Open all blinds
await set_blinds_state("Open")

# Close office blinds
await set_blinds_state("Close", blind_location="office")

API Reference

set_blinds_state(action, blind_name="all", blind_location="all", blind_row="all")

Parameters:

  • action: "Open", "Close", or "Hold"

  • blind_name: "all", "front", "sunrise", "sunset"

  • blind_location: "all", "foyer", "office"

  • blind_row: "all", "top", "bottom"

Testing

Run tests:

pytest test_blinds.py -v

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables automation and management of TP-Link BE3600 routers through browser automation, supporting port forwarding configuration, network status monitoring, and device management without reverse-engineering the router's encryption.
    1
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables browser automation with anti-detection features, including navigation, interaction, form filling, and session management.
    22
    26 PyPI
    10
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables MCP clients to control a real local browser window for web automation tasks such as clicking, typing, scrolling, and taking screenshots.
    7 npm
    -
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables browser automation through the Steel API, allowing session management and actions like navigation, clicking, typing, screenshots, JavaScript evaluation, and data extraction.
    -