xiaozhi-bridge
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π¦ 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: Windows-MCP
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
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.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Windows computers for AI agents. Office, desktop apps, browser tasks, testing and file transfer.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceTurns any Windows device into a remotely controllable MCP toolset, allowing a mobile AI agent to execute CLI, GUI, browser, and system commands on Windows without an API key.3-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to seamlessly integrate with the Windows operating system, performing tasks such as file navigation, application control, UI interaction, and QA testing via the MCP protocol.-
- AlicenseAqualityCmaintenanceEnables 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
- 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.-