XiaoZhi Windows MCP Agent Bridge
XiaoZhi Windows MCP Agent Bridge
XiaoZhi Windows MCP Agent Bridge は、デスクトップ上のマイクとスピーカーを備えた ESP32 小智 AI デバイス をローカルの Windows コンピュータに接続するブリッジサービスです。
標準の Model Context Protocol (MCP) を通じて、小智は音声コマンダー (Voice Commander) として、Windows ローカルツールの呼び出し、コンピュータ操作の実行、ディスク全体のファイル読み書き、Edge ブラウザの制御、スクリーンショットによる視覚分析、そして特にローカルの Codex CLI / Claude Code / OpenCode などの AI Agent マトリックスのスケジューリングによる重い開発・エンジニアリングタスクの実行を行うことができます。
全体アーキテクチャ: 音声コマンダー + ローカル Agent マトリックス
小智 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
コア機能と音声コマンド
機能カテゴリ | 音声コマンド例 | 基盤となる呼び出しツール |
Agent スケジューリング | 「小智、Codex に ESP32 プロジェクトへ Wi-Fi 再接続ロジックを追加させて」 |
|
Agent 進捗 | 「小智、さっきの Codex のタスクは完了した?」 |
|
Agent リスト | 「小智、私のコンピュータで作業できる Agent はどれ?」 |
|
ソフトウェア起動 | 「小智、VS Code を開いて」 / 「飛書を開いて」 |
|
画面視覚 | 「小智、私のコンピュータ画面に何があるか見て」 |
|
ファイル検索 | 「小智、デスクトップにある PDF を確認して」 |
|
ファイル読み書き | 「小智、この設定を読み取って / スネークゲームを書いて」 |
|
プロジェクト Git | 「小智、私のプロジェクトで最近何が変わったか見て」 |
|
ターミナル実行 | 「小智、このプロジェクトのテストを実行 / Python のバージョンを確認して」 |
|
ブラウザ操作 | 「小智、ESP32-S3 のデータシートを検索して」 |
|
クイック設定と起動
1. 環境準備
Windows 10 / 11
Python 3.11+
(任意)インストール済みの Codex CLI (
npm i -g @openai/codex)、Claude Code など
依存関係のインストール:
pip install -r requirements.txt2. MCP エンドポイントの設定
.env.example を .env にコピーし、小智コンソールから取得したエンドポイントを入力します:
XIAOZHI_MCP_ENDPOINT=wss://api.xiaozhi.me/mcp/?token=YOUR_TOKEN_HERE3. Workspace の設定(任意)
config.yaml にローカルの開発プロジェクトパスを追加します:
workspaces:
agent:
path: .
esp32:
path: D:/Projects/esp32
stm32:
path: D:/Projects/stm324. Agent の実行
python main.pyターミナルに次のように出力されます:
===================================
XiaoZhi Windows Agent
===================================
XiaoZhi MCP CONNECTING
Tools 49
Security ENABLED
Permission UNRESTRICTED
MCP server handshake completed
Connected; registered 49 local tools自動テスト
完全なテストスイートを実行します:
python -m pytestThis server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
1Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
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 gradedqualityBmaintenanceEnables 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