@aiwerk/openclaw-mcp-bridge

中文文档
0.14.1发布于 2026/05/21MITES Module近 30 天下载 3255

OpenClaw MCP plugin — thin wrapper around @aiwerk/mcp-bridge for seamless MCP server integration

原始使用文档
文档目录11 节
  1. Install
  2. Quick Start
  3. Configuration
  4. Catalog Options
  5. Modes
  6. Server Catalog
  7. Docker Sandbox
  8. Update
  9. Architecture
  10. Standalone Usage
  11. License

@aiwerk/openclaw-mcp-bridge

Tests npm version License: MIT

OpenClaw plugin for MCP Bridge — connect any MCP server to your OpenClaw agent.

This is a thin wrapper around @aiwerk/mcp-bridge that handles OpenClaw tool registration, lifecycle, and configuration.

Install

openclaw plugins install @aiwerk/openclaw-mcp-bridge

⚠️ Important: Always use the full scoped name @aiwerk/openclaw-mcp-bridge. The unscoped openclaw-mcp-bridge on npm is a different, unrelated package.

Quick Start

# 1. Install the plugin
openclaw plugins install @aiwerk/openclaw-mcp-bridge

# 2. Install a server from the catalog
~/.openclaw/extensions/openclaw-mcp-bridge/install-server.sh todoist

# 3. Restart the gateway
openclaw gateway restart

The install script prompts for your API key and configures everything automatically.

Configuration

The plugin config lives in ~/.openclaw/openclaw.json under plugins.entries.openclaw-mcp-bridge.config:

{
  "plugins": {
    "entries": {
      "openclaw-mcp-bridge": {
        "config": {
          "mode": "router",
          "servers": {
            "todoist": {
              "transport": "stdio",
              "command": "npx",
              "args": ["-y", "@doist/todoist-ai"],
              "env": { "TODOIST_API_KEY": "${TODOIST_API_TOKEN}" },
              "description": "Task management"
            }
          },
          "toolPrefix": true
        }
      }
    }
  }
}

Catalog Options

OptionTypeDefaultDescription
catalogbooleantrueWhether to fetch catalog recipes on startup via bootstrapCatalog()
autoMergebooleanfalseWhether to auto-merge catalog recipes into your server config

Breaking change (v0.14.0+): autoMerge now defaults to false. Previously, catalog recipes were always merged automatically. To restore the old behavior, set autoMerge: true in your plugin config.

{
  "plugins": {
    "entries": {
      "openclaw-mcp-bridge": {
        "config": {
          "autoMerge": true
        }
      }
    }
  }
}

Environment variables are resolved from ~/.openclaw/.env and system env.

Note (v0.10.4+): If an env var exists in your shell as an empty string, the plugin falls back to reading ~/.openclaw/.env directly. This prevents issues where dotenv(override:false) silently ignores the .env value.

Modes

ModeHow it worksBest for
direct (default)All tools registered individually (todoist_find_tasks, etc.)Few servers, simpler models
routerSingle mcp tool — agent discovers and calls server tools through it3+ servers, saves ~99% tool tokens

Server Catalog

# List available servers
~/.openclaw/extensions/openclaw-mcp-bridge/list-servers.sh

# Install interactively
~/.openclaw/extensions/openclaw-mcp-bridge/install-server.sh <server>

# Available: todoist, github, notion, stripe, linear, google-maps,
#            hetzner, miro, wise, tavily, apify

Docker Sandbox

If you run OpenClaw with Docker sandbox enabled (agents.defaults.sandbox.mode: "all" or "non-main"), plugin-registered tools are not included in the default sandbox tool allowlist. You need to explicitly allow them:

{
  "tools": {
    "sandbox": {
      "tools": {
        "allow": ["group:openclaw", "mcp", "mcp_bridge_update"]
      }
    }
  }
}
  • group:openclaw — keeps all built-in OpenClaw tools
  • mcp — the MCP Bridge router tool
  • mcp_bridge_update — the plugin update tool

You can verify with openclaw sandbox explain --json — check that mcp appears in sandbox.tools.allow.

Alternative ways to apply this:

  • Control UI: Open http://localhost:18789/config → navigate to tools → sandbox → tools → allow → add mcp and mcp_bridge_update alongside group:openclaw.
  • CLI: openclaw config set tools.sandbox.tools.allow '["group:openclaw", "mcp", "mcp_bridge_update"]'

The gateway hot-reloads the config automatically.

Note: Without sandbox (sandbox.mode: "off"), no extra config is needed — plugin tools are available automatically.

Update

# Check for updates (via the agent)
mcp_bridge_update(check_only=true)

# Install update
openclaw plugins update @aiwerk/openclaw-mcp-bridge
openclaw gateway restart

Architecture

OpenClaw Agent
    │
    ├── mcp tool (router mode)
    │   └── @aiwerk/openclaw-mcp-bridge (this plugin)
    │       └── @aiwerk/mcp-bridge (core)
    │           ├── todoist (stdio)
    │           ├── github (stdio)
    │           └── notion (stdio)
    │
    └── other tools...

The plugin handles:

  • Tool registration with OpenClaw (registerTool / unregisterTool)
  • Lifecycle (activate / deactivate)
  • Update notifications (injected into tool responses)
  • OpenClaw config integration (openclaw.json)

The core handles:

  • MCP protocol (initialize, tools/list, tools/call)
  • Transport management (stdio, SSE, streamable-http)
  • Router / direct mode multiplexing
  • Schema conversion, reconnection, error handling

Standalone Usage

Don't use OpenClaw? Use the core package directly with Claude Desktop, Cursor, Windsurf, or any MCP client:

npm install -g @aiwerk/mcp-bridge
mcp-bridge init
mcp-bridge install todoist
mcp-bridge

See @aiwerk/mcp-bridge for details.

License

MIT — AIWerk

版本与发布记录

@aiwerk/openclaw-mcp-bridge 共发布 35 个版本,首次发布于 2026/03/10;过去 12 个月发布了 35 个版本。

版本发布日期距今
0.14.1latest2026/05/215 个月前
0.14.02026/05/046 个月前
0.13.62026/04/256 个月前
0.13.52026/04/017 个月前
0.13.42026/03/317 个月前
0.13.32026/03/307 个月前

关于 @aiwerk/openclaw-mcp-bridge 的常见问题

@aiwerk/openclaw-mcp-bridge 是什么?

OpenClaw MCP plugin — thin wrapper around @aiwerk/mcp-bridge for seamless MCP server integration

如何安装 @aiwerk/openclaw-mcp-bridge?

在项目目录运行 npm install @aiwerk/openclaw-mcp-bridge,或使用 pnpm add / yarn add / bun add。

@aiwerk/openclaw-mcp-bridge 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/aiwerk__openclaw-mcp-bridge 是否存在。

@aiwerk/openclaw-mcp-bridge 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@aiwerk/openclaw-mcp-bridge 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@aiwerk/openclaw-mcp-bridge 可以商用吗?

@aiwerk/openclaw-mcp-bridge 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@aiwerk/openclaw-mcp-bridge 的下载量有多少?

根据 npm 官方下载统计,@aiwerk/openclaw-mcp-bridge 在 2026/10/05 – 2026/11/03 这 30 天内被下载 3,255 次,日均约 109 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aiwerk/openclaw-mcp-bridge 还在维护吗?

最新版本 0.14.1 发布于 2026/05/21(5 个月前);至今共发布 35 个版本,其中过去 12 个月发布了 35 个;首次发布于 2026/03/10。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。