xiaozhi-bridge
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@xiaozhi-bridgeopen google.com in the browser"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š¦ PURPCLAW v7.0 ā ULTIMATE
The AI Voice Agent MCP Bridge ā Gives your Xiaozhi AI hardware full autonomous PC control via 58 MCP tools. Built by WEEMADSCOTSMAN at Pixel Dynasty.
š New Here? Read the Full Setup Guide ā
The setup guide covers everything from buying the hardware to your first voice command. Anyone with a Xiaozhi ball can use this.
What Is This?
PURPCLAW is an MCP (Model Context Protocol) bridge that connects a Xiaozhi AI voice agent to your Windows PC. It turns a voice-enabled AI ball into a fully autonomous engineering assistant that can:
š„ļø See your screen ā Screenshots + OCR text recognition
šø See YOU ā Webcam capture, face/object detection
š Browse the web ā Playwright-powered: click links, fill forms, read pages
š Manage files ā Read, write, copy, move, delete, search, zip/extract
š±ļø Control your desktop ā Mouse clicks, keyboard typing, window management
ā¬ļø Download files ā Direct URL downloads
š¦ Install packages ā pip, npm, or choco
š Control audio ā Volume up/down/mute/set
š§ Run commands ā Shell execution with injection protection
š§ Remember things ā Persistent memory across sessions
š¦ Run AI pipelines ā Start/stop/monitor PURPCLAW build pipelines
Related MCP server: PC Controller MCP Server
Architecture
āāāāāāāāāāāāāāāāāāāā WebSocket āāāāāāāāāāāāāāāāāāāā
ā Xiaozhi Ball ā āāāāāāāāāāāāāāāāā ā xiaozhi_bridge ā
ā (DeepSeek V3.1) ā MCP Protocol ā v7.0.0 ā
āāāāāāāāāāāāāāāāāāāā āāāāāāāāāā¬āāāāāāāāāā
ā
āāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāā
ā ā ā
āāāāāāā“āāāāāā āāāāāāāā“āāāāāāā āāāāāāā“āāāāāā
ā Playwright ā ā PowerShell ā ā Python ā
ā Browser ā ā .NET APIs ā ā OpenCV ā
āāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāā58 MCP Tools
Vision (5)
Tool | Description |
| Screenshot the screen |
| Read text from screen via OCR |
| Detect objects with YOLO |
| Find image on screen (template match) |
| Get monitor sizes |
Webcam (3)
Tool | Description |
| Take a photo with PC webcam |
| Detect people/faces/objects |
| OCR text visible to camera |
Mouse & Keyboard (3)
Tool | Description |
| Click, double-click, right-click, drag |
| Scroll wheel |
| Type text or press shortcuts |
UI Automation (1)
Tool | Description |
| Find and click UI elements by text |
Window Management (3)
Tool | Description |
| List open windows |
| Focus a window by title |
| Close a window |
File System (8)
Tool | Description |
| Read file contents |
| Write/append to files |
| List directory contents |
| Search by name or content (Node.js, fast) |
| Copy files/directories |
| Move/rename files |
| Delete files (system path protected) |
| Create directories |
Browser (9) ā Playwright-Powered
Tool | Description |
| Open URL with full interaction |
| Click links/buttons by visible text |
| Type into form fields |
| Scroll pages up/down |
| Read page text content |
| Screenshot the browser |
| Navigate: goto/back/forward/reload |
| List open tabs |
| Close a tab |
Downloads (1)
Tool | Description |
| Download file from URL |
Process Management (2)
Tool | Description |
| List running processes |
| Kill process by name/PID (critical procs blocked) |
Audio (1)
Tool | Description |
| Set volume, mute/unmute, up/down |
Archives (2)
Tool | Description |
| Create zip archives |
| Extract zip archives |
Package Management (1)
Tool | Description |
| Install via pip/npm/choco |
PURPCLAW Pipeline (4)
Tool | Description |
| Start AI build pipeline |
| Stop pipeline |
| Get pipeline status |
| Read pipeline logs |
Git (1)
Tool | Description |
| Run git commands |
Communication (4)
Tool | Description |
| HTTP GET/POST/PUT/DELETE |
| Read/write clipboard |
| Text-to-speech via Kokoro TTS |
| Desktop toast notifications |
Context & System (5)
Tool | Description |
| Get focused window info |
| CPU, RAM, process overview |
| Drive space for all disks |
| IP, WiFi, internet status |
| Execute shell commands (injection-proof) |
Apps & Tasks (4)
Tool | Description |
| Launch apps by name |
| Persistent remember/recall/forget/list |
| Schedule delayed tasks |
| List scheduled tasks |
Setup
Prerequisites
Node.js 18+
Python 3.10+ with
opencv-pythonPlaywright (
npm i playwright)Xiaozhi.me account + configured agent
Install
git clone https://github.com/weemadscotsman/purpclaw.git
cd purpclaw
npm install
cp .env.example .env
# Edit .env with your Xiaozhi MCP tokenRun
# Windows (recommended)
start_xiaozhi_bridge.bat
# Or manually
set XIAOZHI_MCP_URL=wss://api.xiaozhi.me/mcp/?token=YOUR_TOKEN
node lib/xiaozhi_bridge.jsEnvironment Variables
Variable | Description |
| WebSocket URL from Xiaozhi MCP settings |
| OpenClaw WebSocket (default: |
| Bridge HTTP server (default: |
Security
Shell injection protection ā All user input is sanitized via
san()functionSystem path protection ā Cannot delete Windows/Program Files/AppData
Critical process protection ā Cannot kill explorer, csrss, lsass, svchost
Destructive command blocking ā Blocks
format, recursive system deletes, shutdownTool timeout ā Every tool has a timeout to prevent hanging
Tech Stack
Runtime: Node.js (single-process, async event loop)
Browser: Playwright (Chromium, headless: false)
Vision: Python OpenCV + Haar cascade face detection
Screen: .NET System.Drawing (fast screenshot via PowerShell)
Shell: PowerShell -NoProfile -NonInteractive (fast startup)
Protocol: MCP over WebSocket (JSON-RPC 2.0)
Built With
Created by Eddie Cannon (@weemadscotsman) ā Edinburgh, Scotland š“ó §ó ¢ó ³ó £ó “ó æ
Pixel Dynasty ā Gaming Archive & Collab Hub
NDK Threads ā ndkthreads.com
PixelBits420 ā Fair-launch cryptocurrency
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
- ZionDeskOAuthapp.ziondesk
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceMCP server enabling voice-controlled Windows PC automation via Xiaozhi AI, supporting 200+ apps, media playback control, and terminal command execution.2-
- AlicenseAqualityBmaintenanceEnables AI assistants to control Windows PCs by executing shell commands, managing files, capturing screenshots, and monitoring system information through a comprehensive set of MCP tools.181MIT
- AlicenseNot gradedqualityCmaintenanceEnables ESP32 XiaoZhi voice devices to command a Windows PC via MCP, including app control, file operations, screen vision, browser interaction, shell execution, and orchestration of local AI coding agents like Codex CLI and Claude Code.2MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to control and interact with a local Windows computer through authenticated MCP tools, including file operations, shell commands, process management, HTTP requests, and system/media inspection.-