# xiaozhi-mcp-bridge [Health: Active]

**Category:** 🔗 Aggregators  
**Repository:** https://github.com/ZnFr60/xiaozhi-mcp-bridge  
**GitHub Stars:** 1  
**npm Downloads (last month):** 222  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/xiaozhi-mcp-bridge

## Description
小智 AI MCP 桥接 - 多接入点管理/消息互发/工具自检/文件搜索天气系统命令代码执行，含Web管理面板 | Xiaozhi AI MCP Bridge with multi-endpoint, messaging, self-test and Web dashboard

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "xiaozhi-mcp-bridge": {
    "command": "npx",
    "args": ["-y","xiaozhi-mcp-bridge"]
  }
}
```

## Documentation

## What xiaozhi-mcp-bridge does

xiaozhi-mcp-bridge links Xiaozhi AI at `xiaozhi.me` with local tools through the Model Context Protocol. Once an MCP endpoint is configured and connected, Xiaozhi can use the capabilities enabled in the project, including file operations, web lookup, weather queries, system utilities, developer helpers, and code execution.

The bridge supports multiple Xiaozhi endpoints. With at least two endpoints configured on the same computer, it adds messaging tools that let the agents send, recall, and read messages. Messages are stored locally rather than transferred through a network service.

The project also includes a browser-based management panel. It runs on port 37246 and provides endpoint management, live connection status, logs, connectivity checks, and individual tool tests.

## How it works

The runtime is split into three parts:

- `guardian-multi.js` maintains a persistent connection for each configured Xiaozhi endpoint.
- `server.js` serves the local management panel and its API.
- Tool modules provide the actual file, web, weather, system, development, code, and messaging functions.

Each endpoint is configured with a WSS address obtained from the Xiaozhi service, a display name, and a user name. The user name identifies an endpoint for messaging, so sender and recipient names must match exactly. When two endpoints are active, the messaging tools use local JSON files as mailboxes. The receiving agent must call `read_messages`; messages are not pushed automatically.

All components run with the permissions of the operating-system user that starts them. Running the process as root therefore gives the connected AI access to root-level operations.

## Setup and configuration

Node.js 20 or newer is required. Installation can use either a Git clone followed by `npm install`, or the npm package `xiaozhi-mcp-bridge`. Add endpoints with `config-cli.js`, list them with `config-cli.js list`, and inspect the configuration with `config-cli.js status`.

Start the bridge and panel with `./start.sh`; Windows users can use `start-windows.bat`. The panel is available at `http://localhost:37246`, and connection state can also be checked through `/api/status`. Stop the processes with `./stop.sh`.

The panel normally accepts requests only from localhost and the Tailscale range. `PANEL_ALLOW_CIDRS` can add allowed address prefixes, while `PANEL_TOKEN` enables bearer-token or query-parameter authentication. `MSG_MAX_PER_BOX` controls the per-mailbox message limit.

For Linux, the repository includes a systemd service template. Windows startup can be arranged with Task Scheduler.

## Tools and capabilities

Enabled tool groups cover:

- Reading, writing, listing, and searching files within a configurable root.
- Aggregated web search, webpage-content retrieval, and search-status checks.
- Current weather and a five-day forecast.
- System status, time, notes, command execution, password generation, QR codes, unit conversion, and self-tests.
- JSON, Base64, URL, timestamp, UUID, hash, regular-expression, DNS, HTTP, and port utilities.
- Python, C, and Bash execution, file writing, and environment inspection.
- Inter-agent messaging through `send_message` and `read_messages` when at least two endpoints are configured.

## Limitations and notes

The management panel can execute arbitrary code, so access should remain restricted. WSS endpoint tokens should be treated as secrets. Local message files are unencrypted, sender identity can be supplied by the caller, and messages should not contain passwords or other sensitive data.

Messaging requires both endpoints to run on the same computer and uses pull-based delivery. A mailbox retains up to 500 messages by default, with older entries discarded after the limit is reached. Avoid starting the same endpoint from both the bridge process and the panel, because duplicate connections can cause repeated or inconsistent tool calls.

_Full upstream README: https://allmcps.com/mcp/xiaozhi-mcp-bridge/readme_

