CAT
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Cross AI Tools

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by @mertduzgun

Independent project, not affiliated with Anthropic

Wemo

apiarya/wemo-mcp-server
9 toolsSTDIOregistry active
Summary

Built on pywemo, this server gives Claude direct control over WeMo smart switches and dimmers on your local network. It handles device discovery through parallel UPnP/SSDP scanning plus direct port probing, exposes tools for toggling power and adjusting brightness, and lets you pull HomeKit setup codes when needed. The implementation includes persistent caching with one-hour TTL, automatic retry with exponential backoff, and resources that surface live device state at `devices://` URIs. Configuration lives in YAML or environment variables where you specify your subnet. Reach for this when you want to control Belkin WeMo devices through natural language without cloud dependencies or when you're building home automation workflows that need reliable local access to your switches and dimmers.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

Tools

Public tool metadata for what this MCP can expose to an agent.

9 tools
scan_networkDiscover WeMo devices on network using multi-phase UPnP/SSDP + port scanning3 params

Discover WeMo devices on network using multi-phase UPnP/SSDP + port scanning

Parameters* required
subnetstring
Network subnet in CIDR notation (e.g. 192.168.1.0/24)
timeoutnumber
Port probe timeout in seconds (default: 0.6)
max_workersinteger
Concurrent scanning workers (default: 60)
list_devicesList all WeMo devices cached from previous network scans

List all WeMo devices cached from previous network scans

No parameter schema in public metadata yet.

get_device_statusGet real-time state and info for a specific WeMo device1 params

Get real-time state and info for a specific WeMo device

Parameters* required
device_identifierstring
Device name or IP address
control_deviceControl a WeMo device — on, off, toggle, or set brightness3 params

Control a WeMo device — on, off, toggle, or set brightness

Parameters* required
actionstring
Action to performone of on · off · toggle · brightness
brightnessinteger
Brightness level (1-100) for dimmer devices
device_identifierstring
Device name or IP address
rename_deviceRename a WeMo device (change its friendly name)2 params

Rename a WeMo device (change its friendly name)

Parameters* required
new_namestring
New friendly name for the device
device_identifierstring
Current device name or IP address
get_homekit_codeGet the HomeKit setup code for a WeMo device1 params

Get the HomeKit setup code for a WeMo device

Parameters* required
device_identifierstring
Device name or IP address
get_cache_infoGet information about the persistent device cache (age, TTL, device count)

Get information about the persistent device cache (age, TTL, device count)

No parameter schema in public metadata yet.

clear_cacheClear the persistent device cache to force a fresh scan

Clear the persistent device cache to force a fresh scan

No parameter schema in public metadata yet.

get_configurationView current server configuration settings

View current server configuration settings

No parameter schema in public metadata yet.

WeMo MCP Server

Control WeMo smart home devices through AI assistants using natural language.

mcp-name: io.github.apiarya/wemo

CI codecov Quality Gate Security Rating PyPI version Python 3.10+

MCP Registry MCP Transport

License: MIT

Table of Contents

  • Overview
  • Prerequisites
  • Quick Start
  • Connect
  • Configuration
  • MCP Tools
    • scan_network
    • list_devices
    • get_device_status
    • control_device
    • rename_device
    • get_homekit_code
    • get_cache_info
    • clear_cache
    • get_configuration
  • MCP Capabilities
    • Resources
    • Prompts
    • Elicitations
  • How It Works
    • Local Control Signal Flow
  • Feature Comparison
  • Development
  • Contributing
  • License
  • Acknowledgments

Overview

Seamlessly integrate WeMo smart home devices with AI assistants through the Model Context Protocol. Built on pywemo, this server enables natural language control of your WeMo devices with intelligent multi-phase discovery.

Example Usage

Turning on lights with natural language

Control WeMo devices through AI assistants with natural language - just ask in plain English!

Goodnight scene turns off all devices

"Goodnight" — one command turns off every device in the house

Key Features

  • 🔍 Smart Discovery - Multi-phase scanning (UPnP/SSDP + network ports) with 100% reliability
  • ⚡ Fast Scanning - Parallel probes with 60 concurrent workers (~23-30s for full subnet)
  • 🎛️ Full Control - On/off/toggle/brightness control for all device types
  • ✏️ Device Management - Rename devices and extract HomeKit setup codes
  • 📊 Real-time Status - Query device state and brightness
  • 💾 Smart Caching - Persistent device cache with 1-hour TTL survives restarts
  • 🔧 Configurable - YAML config files + environment variables for all settings
  • 🔄 Auto-Retry - Automatic retry with exponential backoff for network errors
  • 🛡️ Error Handling - Detailed error messages with actionable suggestions
  • 🔌 Universal - Works with any MCP client (Claude, VS Code, Cursor, etc.)
  • 📡 MCP Resources - Live device state via devices:// and device://{id} URIs
  • 💬 MCP Prompts - Built-in guided prompts: discover, status report, scene control, troubleshoot
  • 🗣️ MCP Elicitations - Interactive clarification when subnet or device name is ambiguous

Prerequisites

All configurations use uvx (from the uv Python package manager) to run the server. Install uv first:

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# macOS with Homebrew
brew install uv

# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

After installation, restart your terminal and verify:

uvx --version

Quick Start

Get started in seconds with Claude Code CLI:

claude mcp add wemo -- uvx wemo-mcp-server

Connect

One-Click Installation

Click your client to install instantly:

ClientInstall
Claude DesktopClaude Desktop
Claude Code CLIRun: claude mcp add wemo -- uvx wemo-mcp-server
VS CodeInstall
CursorAdd to Cursor
ClineManual config (VS Code extension)
WindsurfManual config
ZedManual config
ContinueManual config (VS Code extension)

Manual Configuration

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "wemo": {
      "command": "uvx",
      "args": ["wemo-mcp-server"],
      "env": {
        "WEMO_MCP_DEFAULT_SUBNET": "192.168.1.0/24"
      }
    }
  }
}

Restart Claude Desktop after saving.

VS Code

Edit ~/.vscode/mcp.json:

{
  "servers": {
    "wemo": {
      "type": "stdio",
      "command": "uvx",
      "args": ["wemo-mcp-server"],
      "env": {
        "WEMO_MCP_DEFAULT_SUBNET": "192.168.1.0/24"
      }
    }
  }
}

Reload VS Code after saving.

Cursor

Edit ~/.cursor/mcp.json:

{
  "servers": {
    "wemo": {
      "type": "stdio",
      "command": "uvx",
      "args": ["wemo-mcp-server"]
    }
  }
}

Restart Cursor after saving.

Cline

Cline is a VS Code extension. Add to VS Code's settings.json:

{
  "mcp.servers": {
    "wemo": {
      "command": "uvx",
      "args": ["wemo-mcp-server"]
    }
  }
}

Reload VS Code after saving.

Windsurf

Edit ~/.windsurf/mcp.json:

{
  "mcpServers": {
    "wemo": {
      "command": "uvx",
      "args": ["wemo-mcp-server"]
    }
  }
}

Restart Windsurf after saving.

Zed

Edit ~/.config/zed/settings.json:

{
  "context_servers": {
    "wemo": {
      "command": "uvx",
      "args": ["wemo-mcp-server"]
    }
  }
}

Restart Zed after saving.

Continue

Continue is a VS Code extension. Edit ~/.continue/config.json:

{
  "mcpServers": [
    {
      "name": "wemo",
      "command": "uvx",
      "args": ["wemo-mcp-server"]
    }
  ]
}

Reload VS Code after saving.


Configuration

The WeMo MCP Server supports flexible configuration through YAML files and environment variables.

Quick Configuration

The most important setting is your network subnet — the server defaults to 192.168.1.0/24 but your devices may be on a different subnet (e.g. 192.168.86.0/24).

Set it directly in your MCP client config using env:

"env": {
  "WEMO_MCP_DEFAULT_SUBNET": "192.168.86.0/24"
}

Or export it before starting the server:

Using Environment Variables (simplest):

export WEMO_MCP_DEFAULT_SUBNET="192.168.1.0/24"
export WEMO_MCP_CACHE_TTL=7200
export WEMO_MCP_LOG_LEVEL=DEBUG

Using YAML Config File:

# Copy example config and customize
cp config.example.yaml config.yaml
# Edit config.yaml with your settings

Configuration Options

SettingEnvironment VariableDefaultDescription
Network
Default subnetWEMO_MCP_DEFAULT_SUBNET192.168.1.0/24Network to scan for devices
Scan timeoutWEMO_MCP_SCAN_TIMEOUT0.6Port probe timeout (seconds)
Max workersWEMO_MCP_MAX_WORKERS60Concurrent scanning threads
Cache
Enable cacheWEMO_MCP_CACHE_ENABLEDtruePersistent device caching
Cache fileWEMO_MCP_CACHE_FILE~/.wemo_mcp_cache.jsonCache file location
Cache TTLWEMO_MCP_CACHE_TTL3600Cache lifetime (seconds)
Logging
Log levelWEMO_MCP_LOG_LEVELINFODEBUG, INFO, WARNING, ERROR

Example Configurations

Large Network (multiple subnets):

export WEMO_MCP_DEFAULT_SUBNET="10.0.0.0/16"
export WEMO_MCP_SCAN_TIMEOUT=1.0
export WEMO_MCP_MAX_WORKERS=100

Debug Mode:

export WEMO_MCP_LOG_LEVEL=DEBUG
export WEMO_MCP_CACHE_TTL=300  # 5 minutes

Disable Caching:

export WEMO_MCP_CACHE_ENABLED=false

See config.example.yaml and .env.example for complete configuration templates.

For detailed configuration guide, see CONFIGURATION.md.


MCP Tools

1. scan_network

Discover WeMo devices on your network using intelligent multi-phase scanning.

Example Prompts:

  • "Scan for WeMo devices on my network"
  • "Find all WeMo devices"
  • "Discover devices on 192.168.1.0/24"

Example Response:

Found 12 WeMo devices in 23.5 seconds:

1. Office Light (Dimmer) - 192.168.1.100 - OFF
2. Living Room (Switch) - 192.168.1.101 - ON
3. Bedroom Lamp (Dimmer) - 192.168.1.102 - OFF
...

2. list_devices

List all devices cached from previous scans.

Example Prompts:

  • "List all my WeMo devices"
  • "Show me all devices"
  • "What devices do you know about?"

Example Response:

12 devices in cache:

- Office Light (Dimmer) at 192.168.1.100
- Living Room (Switch) at 192.168.1.101
- Bedroom Lamp (Dimmer) at 192.168.1.102
...

3. get_device_status

Get current state and information for a specific device.

Example Prompts:

  • "Is the office light on?"
  • "What's the status of the bedroom lamp?"
  • "Check the living room switch"
  • "What's the brightness of office light?"

Example Response:

Office Light (Dimmer):
- State: OFF
- Brightness: 75%
- IP: 192.168.1.100
- Model: DimmerLongPress

4. control_device

Control a WeMo device (on/off/toggle/brightness).

Example Prompts:

  • "Turn on the office light"
  • "Turn off the living room"
  • "Toggle the bedroom lamp"
  • "Set office light to 75%"
  • "Dim the bedroom lamp to 50%"

Example Response:

✓ Office Light turned ON
  Brightness set to 75%
  Current state: ON

5. rename_device

Rename a WeMo device (change its friendly name).

Example Prompts:

  • "Rename Office Dimmer to Office Light"
  • "Change the name of the bedroom device to Bedroom Lamp"
  • "Call the living room switch 'Main Light'"

Example Response:

✓ Device renamed successfully
  'Office Dimmer' → 'Office Light'
  IP: 192.168.1.100

The new name will appear in the WeMo app and all control interfaces.

6. get_homekit_code

Get the HomeKit setup code for a WeMo device.

Example Prompts:

  • "Get the HomeKit code for Office Light"
  • "What's the HomeKit setup code for the bedroom lamp?"
  • "Show me the HomeKit code for all devices"

Example Response:

HomeKit Setup Code for 'Office Light':
  123-45-678

Use this code to add the device to Apple Home.

Note: Not all WeMo devices support HomeKit. If a device doesn't support HomeKit, you'll get an error message.

HomeKit code retrieval step 1

HomeKit code retrieval step 2

7. get_cache_info

Get information about the persistent device cache.

Example Prompts:

  • "Show me cache information"
  • "Is the device cache expired?"
  • "How many devices are cached?"

Example Response:

Device Cache Status:
  ✅ Cache exists
  📁 Location: ~/.wemo_mcp_cache.json
  📊 Devices: 12
  ⏰ Age: 1,234 seconds (20.6 minutes)
  💾 TTL: 3,600 seconds (1 hour)
  ✅ Status: Valid (not expired)

8. clear_cache

Clear the persistent device cache to force a fresh scan.

Example Prompts:

  • "Clear the device cache"
  • "Reset the cache and rescan"
  • "Delete cached devices"

Example Response:

✅ Cache cleared successfully
Next scan will discover devices fresh.
Run scan_network to rebuild the cache.

Note: This clears both the persistent cache file and in-memory cache. After clearing, run scan_network to rediscover devices.

9. get_configuration

View current server configuration settings.

Example Prompts:

  • "Show me the server configuration"
  • "What are the current settings?"
  • "Display configuration"

Example Response:

Current Configuration:
  Network:
    • Default subnet: 192.168.1.0/24
    • Scan timeout: 0.6 seconds
    • Max workers: 60
  Cache:
    • Enabled: true
    • File: ~/.wemo_mcp_cache.json
    • TTL: 3600 seconds (1 hour)
  Logging:
    • Level: INFO

Note: Shows all configuration including defaults and environment variable overrides. Use environment variables with WEMO_MCP_ prefix to customize.


MCP Capabilities

Beyond tools, this server exposes the full suite of MCP primitives.

Resources

Subscribe to live device data without calling a tool:

URIDescription
devices://JSON index of all cached devices
device://{name-or-ip}Live state for a specific device (URL-encoded name supported)

Clients that support MCP Resources (VS Code, MCP Inspector) can read these directly.

Prompts

Four built-in guided prompts available via / slash commands in supporting clients:

PromptDescription
discover-devicesGuided network scan with subnet selection
device-status-reportSummary report of all device states
activate-sceneControl multiple devices as a scene
troubleshoot-deviceStep-by-step device troubleshooting

MCP prompts in VS Code

All four prompts surfaced as /mcp.wemo.* slash commands in VS Code

Elicitations

The server proactively asks for missing information rather than failing silently:

  • scan_network — if no custom subnet is configured (default 192.168.1.0/24), asks which subnet to scan before proceeding
  • control_device — if a device name isn't found in cache, presents closest matches and asks which device was intended

MCP elicitation prompting for subnet

Elicitation in action — server asks for the subnet rather than scanning the wrong network silently

Client Support Matrix

FeatureClaude DesktopVS CodeCursorMCP Inspector
Tools✅✅✅✅
Resources⚠️ protocol only✅✅✅
Prompts⚠️ no slash UI✅ / commands✅✅
Elicitations✅ v1.1+❌❌✅ v0.20+

How It Works

Multi-Phase Discovery

The server uses a three-phase discovery process optimized for reliability:

  1. Phase 1 - UPnP/SSDP Discovery (Primary)

    • Multicast discovery finds all responsive devices (~12s)
    • Most reliable method, finds devices that don't respond to port probes
    • Uses pywemo's built-in discovery mechanism
  2. Phase 2 - Network Port Scanning (Backup)

    • Parallel probing of WeMo ports (49152-49155) across subnet
    • 60 concurrent workers for fast scanning (~10s for 254 IPs)
    • Catches devices missed by UPnP
  3. Phase 3 - Device Verification (Backup)

    • HTTP verification of active IPs via /setup.xml
    • Parallel verification with 60 workers
    • Validates and extracts device information

This approach achieves 100% device discovery reliability while maintaining fast scan times (23-30 seconds for complete networks).

Local Control Signal Flow

All device commands travel exclusively over your local network — no cloud hop required at any stage.

Voice path (Google Home + WeMo):

sequenceDiagram
    participant U as User
    participant GH as Google Home Hub
    participant GC as Google Cloud (ASR only)
    participant WD as WeMo Device

    U->>GH: "Hey Google, turn on chandelier"
    GH->>GC: Audio stream for speech-to-text
    GC-->>GH: Intent: {action: ON, device: chandelier}
    GH->>WD: Matter OnOff.On (UDP 5540, LAN)
    WD-->>GH: ACK
    GH-->>U: "OK, turning on chandelier"

MCP path (AI assistant + this server):

sequenceDiagram
    participant U as User
    participant AI as AI Assistant
    participant MS as MCP Server
    participant WD as WeMo Device

    U->>AI: "Turn on the desk light"
    AI->>MS: tools/call control_device("desk light", "on")
    MS->>WD: UPnP/SOAP BinaryState=1 (TCP 49153, LAN)
    WD-->>MS: HTTP 200 OK
    MS-->>AI: {success: true, state: "on"}
    AI-->>U: "Desk light is now on!"

Both paths use local protocols only after the initial voice recognition (Google Cloud handles speech-to-text; Belkin's cloud is never involved).

Feature Comparison

MCP Server vs wemo-ops-center

Comparison of features between this MCP server and the main wemo-ops-center project:

Featurewemo-ops-centerMCP ServerNotes
Device Discovery✅ UPnP + Port Scan✅ ImplementedMulti-phase discovery with 100% reliability
Device Control✅ On/Off/Toggle✅ ImplementedIncludes brightness control for dimmers
Device Status✅ Real-time✅ ImplementedQuery by name or IP address
Device Rename✅ Friendly names✅ ImplementedUpdates device cache automatically
HomeKit Codes✅ Extract codes✅ ImplementedFor HomeKit-compatible devices
Multi-subnet✅ VLAN support❌ PlannedCurrently single subnet per scan
WiFi Provisioning✅ Smart setup❌ Not plannedRequires PC WiFi connection changes
Scheduling✅ Time + Solar❌ Not plannedRequires persistent daemon (incompatible with MCP model)
Maintenance Tools✅ Resets❌ Not plannedFactory reset, clear WiFi, clear data
Profile Management✅ Save/Load❌ Not plannedWiFi credential profiles for bulk setup
User Interface✅ GUI + Web❌ N/AMCP uses AI assistant interface

Legend:

  • ✅ Implemented - Feature is available
  • ❌ Not planned - Feature conflicts with MCP architecture or use case
  • ❌ Planned - Feature could be added in future

Why some features aren't planned for MCP:

  • Scheduling: Requires 24/7 background daemon polling. MCP servers are typically invoked on-demand by AI assistants, not run as persistent services.
  • WiFi Provisioning: Requires changing the host PC's WiFi connection to device setup networks, which is disruptive and platform-specific.
  • Maintenance Tools: Destructive operations (factory reset, etc.) better suited for dedicated GUI with confirmation dialogs.

Current MCP Coverage: 5 of 11 core features (45%) - focused on device discovery, monitoring, and control use cases that fit the MCP model.

Development

Setup

git clone https://github.com/apiarya/wemo-mcp-server.git
cd wemo-mcp-server
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
uv sync --dev

Running Tests

# Unit tests (CI-compatible, ~4 seconds, 128 tests)
.venv/bin/python -m pytest tests/test_server.py tests/test_phase2.py tests/test_models.py -v

# With coverage report
pytest tests/test_server.py tests/test_phase2.py tests/test_models.py --cov=wemo_mcp_server --cov-report=html

# E2E tests (requires WeMo devices on network)
python tests/test_e2e.py

Using Development Version

In your MCP client config, use:

{
  "command": "python",
  "args": ["-m", "wemo_mcp_server"],
  "env": {
    "PYTHONPATH": "/path/to/mcp/src"
  }
}

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes with tests
  4. Run the test suite (python tests/test_e2e.py)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

License

MIT License - see LICENSE file for details.

Acknowledgments

  • Built with Model Context Protocol SDK
  • Uses pywemo for WeMo device communication
  • Related to the wemo-ops-center project (desktop and server applications)
Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Registryactive
Packagewemo-mcp-server
TransportSTDIO
UpdatedFeb 22, 2026
View on GitHub