Xiaozhi MCP Bridge logo

Xiaozhi MCP Bridge

Connects Xiaozhi AI to local file, web, system, coding, weather, and messaging tools through MCP.

Install Xiaozhi MCP Bridge

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "xiaozhi-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "xiaozhi-mcp-bridge"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y xiaozhi-mcp-bridge

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

xiaozhi-mcp-bridge MCP server connects Xiaozhi AI MCP endpoints to tools running on a Windows, macOS, or Linux computer. It maintains long-lived WSS connections for one or more configured endpoints and exposes enabled tools for files, web searches, weather, system operations, development utilities, and code execution. A local Web panel on port 37246 manages endpoints, displays connection state and logs, and tests tools independently. Use it when a Xiaozhi agent needs controlled access to local computer capabilities or when two Xiaozhi endpoints on the same machine need to exchange messages.

Use cases

  • Connect Xiaozhi to local files and system commands
  • Search the web and retrieve webpage content through Xiaozhi
  • Run development utilities and code from a Xiaozhi endpoint
  • Exchange locally stored messages between two Xiaozhi agents
  • Monitor endpoint connections and test tools from a browser

Key features

  • Multi-endpoint WSS connection management
  • Local Web management panel on port 37246
  • File, web search, weather, system, and developer tools
  • Python, C, and Bash code execution
  • Messaging between two same-machine Xiaozhi endpoints
  • Per-tool testing and live logs

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

5/5 checks healthy over the last 17d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · xiaozhi-mcp-bridge (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads222Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Xiaozhi MCP Bridge works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Xiaozhi MCP Bridge

xiaozhi-mcp-bridge is an MCP server that connects Xiaozhi AI endpoints to local computer tools. Its main capabilities include file access, web search, weather, system commands, developer utilities, code execution, and messaging between two same-machine Xiaozhi endpoints. A local Web panel manages connections, logs, and tool tests.

Install it by cloning the Git repository and running `npm install`, or create a project directory and install `xiaozhi-mcp-bridge` from npm. Node.js 20 or newer is required. After installation, run the configuration commands from the project directory.

Add an endpoint with `node config-cli.js add`, supplying a name, its WSS address, and a user name. Use `node config-cli.js list` to review entries and `node config-cli.js status` to inspect configuration state. Keep WSS addresses private because they act as access tokens.

Configure at least two endpoints on the same computer, giving them distinct user names, then start the bridge. The sender uses `send_message`, while the recipient must call `read_messages` to retrieve new entries. Delivery is pull-based and messages are stored in local JSON files.

The documented setup connects directly to Xiaozhi WSS MCP endpoints and does not describe Cursor configuration. Its included runtime is started with shell, batch, or Node.js commands and managed through a local Web panel.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewXiaozhi MCP Bridge AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/xiaozhi-mcp-bridge?style=directory)](https://allmcps.com/mcp/xiaozhi-mcp-bridge)
HTML Embed
<a href="https://allmcps.com/mcp/xiaozhi-mcp-bridge"><img src="https://allmcps.com/api/badge/xiaozhi-mcp-bridge?style=directory" alt="Xiaozhi MCP Bridge on AllMCPs" /></a>