XiaoZhi Windows MCP Agent Bridge
Allows the MCP server to dispatch coding tasks to OpenAI Codex CLI agents for code generation, modification, and analysis.
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 Windows MCP Agent BridgeOpen Chrome and search for the weather"
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.
XiaoZhi Windows MCP Agent Bridge
XiaoZhi Windows MCP Agent Bridge is a bridge service that connects an ESP32 XiaoZhi AI device with a microphone and speaker on your desktop to a local Windows computer.
Through the standard Model Context Protocol (MCP), XiaoZhi can act as a Voice Commander, invoking local Windows tools, performing computer operations, reading and writing files across the entire disk, controlling the Edge browser, capturing screenshots for visual analysis, and, most importantly, orchestrating a matrix of local AI Agents such as Codex CLI / Claude Code / OpenCode to execute heavy development and engineering tasks.
Overall Architecture: Voice Commander + Local Agent Matrix
小智 ESP32 硬件 (麦克风/喇叭/屏幕)
↓ (语音交互)
xiaozhi.me 官方云端 (ASR / LLM / TTS / MCP Client)
↓ (WebSocket JSON-RPC 2.0)
XiaoZhi Windows Agent Bridge (本机 Python 进程)
↓
Tool Registry (注册 49 个本地能力工具)
↓
┌─────────────────┬─────────────────┬─────────────────┬─────────────────┐
│ Windows 应用 │ 本地文件系统 │ 终端与 PowerShell│ 多 Agent 调遣器 │
│ • 智能启动/搜索 │ • 全盘/目录遍历 │ • Safe Terminal │ • Codex CLI 主力│
│ • 进程聚焦/退出 │ • 文件读写/删除 │ • 任意 Shell │ • Claude / Open │
├─────────────────┼─────────────────┼─────────────────┼─────────────────┤
│ Desktop GUI │ 屏幕视觉 (Vision│ Edge 浏览器 │ Skills/Workflow │
│ • 窗口枚举/点击 │ • 内存屏幕截图 │ • 网页搜索/打开 │ • 声明式 Skill │
│ • 文本输入/按键 │ • MCP Image 回传│ • 页面提取/点击 │ • YAML 工作流 │
└─────────────────┴─────────────────┴─────────────────┴─────────────────┘Related MCP server: agentic-remote-pc
Core Features and Voice Commands
Feature Category | Voice Command Example | Underlying Tool |
Agent Dispatch | "XiaoZhi, have Codex add Wi-Fi reconnection logic to my ESP32 project" |
|
Agent Progress | "XiaoZhi, is the Codex task from earlier done?" |
|
Agent List | "XiaoZhi, which agents can work on my computer?" |
|
Launch Software | "XiaoZhi, open VS Code" / "open Feishu" |
|
Screen Vision | "XiaoZhi, look at what's on my screen" |
|
File Search | "XiaoZhi, see what PDFs are on the desktop" |
|
File Read/Write | "XiaoZhi, help me read this config / write a Snake game" |
|
Project Git | "XiaoZhi, see what's changed recently in my project" |
|
Terminal Execution | "XiaoZhi, run this project's tests / check the Python version" |
|
Browser Interaction | "XiaoZhi, search for the ESP32-S3 datasheet" |
|
Quick Setup and Startup
1. Environment Preparation
Windows 10 / 11
Python 3.11+
(Optional) Installed Codex CLI (
npm i -g @openai/codex), Claude Code, etc.
Install dependencies:
pip install -r requirements.txt2. Configure the MCP Endpoint
Copy .env.example to .env and fill in the Endpoint obtained from the XiaoZhi console:
XIAOZHI_MCP_ENDPOINT=wss://api.xiaozhi.me/mcp/?token=YOUR_TOKEN_HERE3. Configure the Workspace (Optional)
Add your local development project paths to config.yaml:
workspaces:
agent:
path: .
esp32:
path: D:/Projects/esp32
stm32:
path: D:/Projects/stm324. Run the Agent
python main.pyThe terminal will output:
===================================
XiaoZhi Windows Agent
===================================
XiaoZhi MCP CONNECTING
Tools 49
Security ENABLED
Permission UNRESTRICTED
MCP server handshake completed
Connected; registered 49 local toolsAutomated Testing
Run the full test suite:
python -m pytestThis 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.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceConnects a Xiaozhi AI voice agent to a Windows PC, enabling autonomous control via 58 MCP tools for screen vision, web browsing, file management, and system control.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to securely control a remote Windows/Linux PC via MCP and REST, executing shell commands and driving coding-agent CLIs like Claude, Cursor, and Codex.1-
- 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