扫地机器人控制MCP Server logo

扫地机器人控制MCP Server

Community
ecovacs-ai

Ecovacs MCP Server

Publisherecovacs-ai
Repositoryecovacs-mcp
LanguagePython
Forks
4
Stars
23
Available tools
0
Transport typestdio, streamable-http
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    扫地机器人控制MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    23 stars and 4 forks from the linked repository.

扫地机器人控制MCP Server

English | 中文

科沃斯核心API现已全面兼容MCP协议,是全球首家兼容MCP协议的机器人服务商。

科沃斯已经完成了4个核心API接口和MCP协议的对接,包括设备列表查询、清扫控制、回充控制和工作状态查询。

作为全球首家支持MCP协议的清洁机器人服务商,科沃斯MCP Server发布后,智能体开发者仅需简单配置,就可以在大模型中快速接入机器人服务,实现查询、清扫、回充等能力。

大幅降低了智能体应用开发过程中调用机器人控制服务相关能力的门槛,显著提升了智能体应用的开发效率。

工具

设备列表查询

获取用户绑定的所有机器人列表。

Input:

无参数

Returns:

json
{
  "status": 0,
  "message": "success",
  "data": [
    {
      "nickname": "机器人昵称",
    }
  ]
}

启动清扫

控制扫地机器人开始、暂停、恢复或停止清扫。

Input:

  • nickname: 机器人的昵称,用于查找设备,支持模糊匹配
  • act: 清扫行为
    • s: 开始清扫
    • r: 恢复清扫
    • p: 暂停清扫
    • h: 停止清扫

Returns:

json
{
  "msg": "OK",
  "code": 0,
  "data": []
}

控制回充

控制机器人开始或停止回充。

Input:

  • nickname: 机器人昵称,用于查找设备
  • act: 机器行为
    • go-start: 开始回充
    • stopGo: 结束回充

Returns:

json
{
  "msg": "OK",
  "code": 0,
  "data": []
}

查询工作状态

查询机器人当前的工作状态。

Input:

  • nickname: 机器人昵称,用于查找设备

Returns:

json
{
	"code": 0,
	"msg": "success",
	"data": {
		"ctl": {
			"data": {
				"ret": "ok",
				"cleanSt": "h",
				"chargeSt": "charging",
				"stationSt": "i"
			}
		}
	}
}

状态码说明:

参数名类型说明
cleanStstring清扫状态,请求成功时存在。s-清扫中,p-暂停中,h-空闲中,goposition-正在前往指定位置,gopositionpause-在指定点停止,findpet-寻找宠物,findpetpause-寻找宠物暂停,cruise-巡航中,cruisepause-巡航暂停,buildmap-创建地图,buildmappause-建图暂停
chargeStstring充电状态,请求成功时存在。g-正在回充,gp-回充暂停,i-空闲,sc-底座充电,wc-线充,charging-充电中(包括SC和WC)
stationStstring基站状态,i-空闲,wash-正在清洗拖布,dry-正在烘干,drypause-烘干暂停,dust-集尘中,dustpause-集尘暂停,clean-基站清洁,cleanpause-基站清洁暂停,wash-清洗拖布,washpause-清洗拖布暂停

开始

安装

github本地安装

bash
git clone git@github.com:ecovacs-ai/ecovacs-mcp.git

uv add "mcp[cli]" mcp requests

uv run ecovacs_mcp/robot_mcp_stdio.py

pipy

pip install ecovacs-robot-mcp

python3 -m ecovacs_robot_mcp

环境变量

  • ECO_API_KEY: API访问密钥,用于验证接口调用权限
  • ECO_API_URL: API HOST
    • 中国内地: https://open.ecovacs.cn
    • 非中国内地: https://open.ecovacs.com

获取AK & 删除AK

在选择两种方法(本地或者SSE)之前,你需要在科沃斯开放平台的控制台中创建一个服务端AK,通过AK你才能够调用机器人的API能力。

如果你想取消授权,在科沃斯开放平台的控制台中同样可以移除AK的授权。

科沃斯开放平台(中国内地):https://open.ecovacs.cn

科沃斯开放平台(非中国内地):https://open.ecovacs.com

配置

在任意MCP客户端(如Claude.app)中添加如下配置,部分客户端下可能需要做一些格式化调整。

其中 ECO_API_KEY为API访问密钥 ECO_API_URL为API HOST

  • Using uvx
json
{
  "mcpServers": {
    "ecovacs_mcp": {
      "command": "uvx",
      "args": ["ecovacs-robot-mcp"],
      "env": {
        "ECO_API_KEY": "your AK...........",
        "ECO_API_URL": "https://open.ecovacs.cn" // 如果是非中国内地,配置为 https://open.ecovacs.com
      }
    }
  }
}
  • Using pip installation
json
{
  "mcpServers": {
    "ecovacs_mcp": {
      "command": "python",
      "args": ["-m", "ecovacs-robot-mcp"],
      "env": {
          "ECO_API_KEY": "your AK...........",
          "ECO_API_URL": "https://open.ecovacs.cn" // 如果是非中国内地,配置为 https://open.ecovacs.com
      }
    }
  }
}

使用示例(Claude示列)

打开Claude for Desktop的Setting,切换到Developer,点击Edit Config,用任意的IDE打开配置文件。

将以下配置添加到配置文件中,ECO_API_KEY 是访问科沃斯开放平台API的AK,在此页面中申请获取:

json
{
    "mcpServers": {
        "ecovacs_mcp": {
            "command": "python3",
            "args": ["-m", "ecovacs_robot_mcp"],
            "env": {
                "ECO_API_KEY": "your ak......",
                "ECO_API_URL": "https://open.ecovacs.cn"// 如果是非中国内地,配置为 https://open.ecovacs.com
            }
        }
    }
}

重启Claude,此时设置面板已经成功加载了科沃斯机器人MCP Server。在软件主界面对话框处可以看到有4个可用的MCP工具,点击可以查看详情。

效果

接下来就可以进行提问,验证科沃斯机器人小助手的能力了。

使用示例(Cursor示列)

进入 Cursor 设置界面配置 SSE 连接

添加一个新的 MCP Server 配置

  • 中国内地
json
{
  "mcpServers": {
    "robot_control_server": {
      "url": "https://mcp-open.ecovacs.cn/sse?ak=your ak"
      // For regions outside Mainland China, configure as https://mcp-open.ecovacs.com/sse?ak=your ak
    }
  }
}
  • 非中国内地
json
{
  "mcpServers": {
    "robot_control_server": {
      "url": "https://mcp-open.ecovacs.com/sse?ak=your ak"
    }
  }
}

返回 Cursor 设置界面查看 MCP 服务工具状态

选择配置 Cursor 大模型让你拥有更好的服务体验,建议选择 claude-3.7-sonnet

模型交互模式 :选择 Agent 方式

效果

许可证

MIT © ecovacs

反馈

在使用科沃斯机器人MCP Server时遇到的任何问题,欢迎通过issue或者联系我们,我们也欢迎每一个积极的PR`,非常感谢各位的支持与贡献❤️

联系方式

Mail: pei.zhou@ecovacs.com

Wechat:

更新

版本功能说明更新日期
V1.0Ecovacs MCP Server正式上线2025年4月24日

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "ecovacs-ai-ecovacs-mcp": {
      "command": "uvx",
      "args": [
        "ecovacs-mcp"
      ]
    }
  }
}

Use 扫地机器人控制MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once 扫地机器人控制MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add 扫地机器人控制MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the 扫地机器人控制MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "ecovacs-ai-ecovacs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ecovacs-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the 扫地机器人控制MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the 扫地机器人控制MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use 扫地机器人控制MCP Server to help me with this task?
扫地机器人控制MCP Server
Sure. I read it.
Here is what I found using 扫地机器人控制MCP Server.

Option 2: Add an MCP server URL

Use this when 扫地机器人控制MCP Server is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter your server URL in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste your server URL into the Server URL field.
  2. Enter a connection name for 扫地机器人控制MCP Server.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the 扫地机器人控制MCP Server connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the 扫地机器人控制MCP Server tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the 扫地机器人控制MCP Server tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use 扫地机器人控制MCP Server to help me with this task?
扫地机器人控制MCP Server
Sure. I read it.
Here is what I found using 扫地机器人控制MCP Server.

Frequently asked questions

What is the 扫地机器人控制MCP Server MCP server used for?

扫地机器人控制MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use 扫地机器人控制MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use 扫地机器人控制MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use 扫地机器人控制MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With 扫地机器人控制MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect 扫地机器人控制MCP Server MCP to TypingMind?

扫地机器人控制MCP Server can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does 扫地机器人控制MCP Server MCP provide in TypingMind?

扫地机器人控制MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use 扫地机器人控制MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If 扫地机器人控制MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇