xiaozhi-bridge
Click on "Install 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: Windows 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/weemadscotsman/xiaozhi-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server