Eufy RoboVac MCP server

Integrates with Eufy RoboVac devices through local network discovery to provide complete vacuum control including cleaning operations, configuration management, status monitoring, and device location features.
Back to servers
Setup instructions
Provider
appleton
Release date
Jul 24, 2025
Stats
1 star

Eufy RoboVac MCP Server provides a Model Context Protocol server for controlling Eufy RoboVac devices, allowing you to send commands and retrieve status information from your robot vacuum. This TypeScript-based implementation makes it easy to integrate with your home automation setup.

Installation

To set up the Eufy RoboVac MCP Server, follow these steps:

  1. Install the required dependencies:
npm install
  1. Build the project for production use:
npm run build
  1. Start the server:
npm start

Device Setup

Before using the server, you'll need to gather your RoboVac device credentials:

  • Device ID and Local Key (from your Eufy Home app or network analysis)
  • Your RoboVac's IP address on your local network

Usage

Finding Your RoboVac

The recommended method is to scan your network to locate your device:

robovac_scan_network()

This will identify:

  • All devices with open Tuya/Eufy ports (6668, 6667, 443)
  • Devices with Anker/Eufy MAC addresses (likely RoboVacs)
  • IP addresses of potential devices

Connecting to Your RoboVac

After finding your device, connect to it using:

robovac_connect_discovered(ip="192.168.1.100", deviceId="your_device_id", localKey="your_local_key")

Alternatively, if you already have all credentials, you can connect manually:

robovac_connect(deviceId="your_device_id", localKey="your_local_key", ip="192.168.1.100")

Basic Controls

Once connected, you can control your RoboVac with these commands:

// Start cleaning
robovac_start_cleaning()

// Stop cleaning
robovac_stop_cleaning()

// Return to charging dock
robovac_return_home()

// Pause cleaning
robovac_pause()

// Resume cleaning
robovac_play()

// Make the RoboVac beep to locate it
robovac_find_robot()

Advanced Controls

Set cleaning modes and suction power:

// Set cleaning mode (AUTO, SMALL_ROOM, SPOT, EDGE, NO_SWEEP)
robovac_set_work_mode(mode="SPOT")

// Set suction power (STANDARD, BOOST_IQ, MAX, NO_SUCTION)
robovac_set_clean_speed(speed="MAX")

Status Information

Retrieve various status information from your RoboVac:

// Get battery level
robovac_get_battery()

// Get current error code
robovac_get_error_code()

// Get current cleaning mode
robovac_get_work_mode()

// Get current suction level
robovac_get_clean_speed()

// Get detailed work status
robovac_get_work_status()

// Get play/pause state
robovac_get_play_pause()

// Get all status information at once
robovac_get_all_statuses()

// Print formatted status to console
robovac_format_status()

Obtaining Device Credentials

You'll need to obtain your device credentials through one of these methods:

  1. Community tools:

    • Look for projects like eufy-security-client on GitHub
  2. Network traffic analysis:

    • Monitor the Eufy app's network traffic
    • Use tools like Wireshark or Charles Proxy
  3. Router inspection:

    • Some routers log device information
    • Check if your RoboVac's firmware exposes credentials

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "eufy-robovac" '{"command":"npm","args":["start"],"tools":["robovac_scan_network","robovac_connect_discovered","robovac_connect","robovac_auto_initialize","robovac_start_cleaning","robovac_stop_cleaning","robovac_return_home","robovac_play","robovac_pause","robovac_find_robot","robovac_set_work_mode","robovac_set_clean_speed","robovac_get_status","robovac_get_battery","robovac_get_error_code","robovac_get_work_mode","robovac_get_clean_speed","robovac_get_work_status","robovac_get_play_pause","robovac_format_status","robovac_get_all_statuses"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "eufy-robovac": {
            "command": "npm",
            "args": [
                "start"
            ],
            "tools": [
                "robovac_scan_network",
                "robovac_connect_discovered",
                "robovac_connect",
                "robovac_auto_initialize",
                "robovac_start_cleaning",
                "robovac_stop_cleaning",
                "robovac_return_home",
                "robovac_play",
                "robovac_pause",
                "robovac_find_robot",
                "robovac_set_work_mode",
                "robovac_set_clean_speed",
                "robovac_get_status",
                "robovac_get_battery",
                "robovac_get_error_code",
                "robovac_get_work_mode",
                "robovac_get_clean_speed",
                "robovac_get_work_status",
                "robovac_get_play_pause",
                "robovac_format_status",
                "robovac_get_all_statuses"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "eufy-robovac": {
            "command": "npm",
            "args": [
                "start"
            ],
            "tools": [
                "robovac_scan_network",
                "robovac_connect_discovered",
                "robovac_connect",
                "robovac_auto_initialize",
                "robovac_start_cleaning",
                "robovac_stop_cleaning",
                "robovac_return_home",
                "robovac_play",
                "robovac_pause",
                "robovac_find_robot",
                "robovac_set_work_mode",
                "robovac_set_clean_speed",
                "robovac_get_status",
                "robovac_get_battery",
                "robovac_get_error_code",
                "robovac_get_work_mode",
                "robovac_get_clean_speed",
                "robovac_get_work_status",
                "robovac_get_play_pause",
                "robovac_format_status",
                "robovac_get_all_statuses"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later