openclaw-agent-mcp-bridge
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., "@openclaw-agent-mcp-bridgelist my available OpenClaw agents"
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.
openclaw-agent-mcp-bridge
openclaw-agent-mcp-bridge connects MCP-compatible development tools to a local
OpenClaw installation. It provides a small, bounded interface for inspecting
agents and sessions and, when explicitly enabled, for requesting controlled work
from a preconfigured OpenClaw agent.
It is designed for local use, personal automation, and experimenting with workflows between your IDE and OpenClaw.
Status
Experimental Community Preview.
Validated with OpenClaw 2026.9.3.
Read-only by default.
Mutating tools are disabled by default.
Not yet a stable release; interfaces may change.
Related MCP server: swarm-mcp
Why this project
OpenClaw's official openclaw mcp serve focuses on routed channel
conversations. This bridge fills a different gap: it lets an MCP-compatible IDE
or client inspect your local OpenClaw agents and sessions as bounded
metadata, and — only when you opt in — hand a single, well-scoped instruction to
a specific local agent. The goal is a minimal, predictable surface you can wire
into your own tools.
What it provides
Four read-only, metadata-only tools for agents and sessions.
Two optional, opt-in tools for requesting work from a preconfigured agent.
Strict input validation, bounded output, and sanitized logging.
A local-only design: the bridge speaks MCP over stdio and opens no network listener.
How it works
The bridge runs as an MCP stdio server. Your MCP client launches it, and it talks to your local OpenClaw installation through documented interfaces:
MCP client ──stdio──► openclaw-agent-mcp-bridge ──► local OpenClaw (Gateway / CLI)Read-only history is served through the OpenClaw Gateway. The optional mutating
tools invoke the official openclaw agent command for a single turn against a
preconfigured, local, loopback agent.
Requirements
Node.js >= 22
OpenClaw installed, with a local Gateway available
An MCP-compatible client
Quick start
Install dependencies from the lockfile:
npm ciRun the server:
node src/server/main.mjsRegister it in your MCP client (placeholders shown — use your own absolute path):
{ "command": "node", "args": ["<ABSOLUTE_PATH_TO_REPOSITORY>/src/server/main.mjs"] }
The bridge communicates over MCP stdio and does not open a network listener. With no extra configuration, only the four read-only tools are available.
Available tools
Read-only (available by default)
openclaw_agents_list— list configured agents (id and model only).openclaw_sessions_list— list session metadata (agentId, key, model).openclaw_session_get— get metadata for a single session by key.openclaw_session_messages_list— list a session's message-history metadata. It returns onlyroleand an optionaltimestamp— never message content, previews, sizes, or attachments — paginated via an opaque cursor (Gateway-mandatory).
Experimental and opt-in
These two tools are disabled by default and are only registered when the full local configuration is present:
openclaw_agent_turn— synchronous. Keeps the MCP call open until the model finishes and returns the textual response to the client. Use it when the client needs the response.openclaw_agent_dispatch— asynchronous, fire-and-forget. Returns only{ status: "started", jobId, source }when the official process is started. It does not return or persist the textual response and has no automatic retrieval mechanism. Use it only for work whose effect is externally verifiable.
openclaw_session_messages_list returns metadata only; it does not return the
textual response produced by openclaw_agent_dispatch.
Choosing turn vs dispatch
Choose
openclaw_agent_turnwhen you need the model's textual answer back in the client. It is synchronous and keeps the MCP call open until completion.Choose
openclaw_agent_dispatchwhen the useful outcome is an external, verifiable effect (for example, controlled changes in a repository) rather than a textual reply. It returns immediately at process start and does not deliver the response.
Security model
Local MCP stdio only; the bridge creates no network listener.
Read-only by default; mutating tools require explicit opt-in and an explicit, preconfigured destination on a local/loopback Gateway.
Strict input schemas; bounded output; sanitized logging.
No credential storage: OpenClaw remains responsible for authentication, tool policy, approvals, and provider quotas.
The optional tools write the caller's prompt to a short-lived, user-private temporary file with best-effort cleanup.
A target
sessionKeymay appear briefly in the OS process list while a turn runs.openclaw_agent_dispatchdoes not persist the response.
See SECURITY.md and docs/THREAT_MODEL.md
for details.
Current limitations
Validated only against OpenClaw 2026.9.3.
Mutating use is local/loopback/single-operator only.
No remote or multi-user support.
openclaw_agent_dispatchdoes not return a textual result.Cancellation and survival after an abrupt shutdown have documented limitations.
Not a stable release.
Compatibility
Validated against OpenClaw 2026.9.3 on Node.js 22+. Behavior may differ on other OpenClaw versions and should be re-validated when you upgrade.
Development and validation
Common commands:
npm ci # install from the lockfile
npm run check # syntax check + test suite
npm run security:scan # secret / personal-data scan
npm run package:inspectLive, read-only validation against a local Gateway is documented in
docs/LIVE_VALIDATION.md. Release gates are described
in docs/RELEASE_POLICY.md, and the repository
security baseline in
docs/REPOSITORY_SECURITY_STANDARD.md.
Architecture and the tool surface are described in
docs/ARCHITECTURE.md.
Roadmap
A per-message
messageIdinopenclaw_session_messages_list(deferred until a stable, opaque source id is available).Optional message content/preview in history reads (deferred).
A stable or remote-capable agent turn (deferred; requires additional transport, cancellation, and audit work).
These items are not implemented in the current phase.
Contributing
Contributions are welcome. Read CONTRIBUTING.md, the
CODE_OF_CONDUCT.md, and SUPPORT.md.
Project ownership and decisions are documented in
GOVERNANCE.md, and public changes in
CHANGELOG.md. Keep contributions within the project's
read-only-by-default, opt-in-mutation design.
Security reporting
Please report security concerns privately as described in
SECURITY.md. Do not include credentials, session keys, local
paths, or message content in a report.
License and trademark notice
This is an independent, unofficial project. It is not affiliated with, endorsed by, or sponsored by the OpenClaw Foundation, AWS/Kiro, Anthropic, or OpenAI. Product names and trademarks belong to their respective owners and are used only to describe interoperability. OpenClaw and Kiro must be obtained and licensed separately.
The bridge is distributed under the MIT License. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for task-first delegation to remote workstations and workers.
Discover MCP servers, A2A agents, and shared agent knowledge through a read-only MCP gateway.
AgencyAI's public MCP for service discovery and AI-readiness assessment.
MCP Server for an Agent Task Marketplace
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables delegation of immediate conversational messages and long-running background tasks to OpenClaw agents. It allows users to spawn research or monitoring tasks, check execution status, and manage active agent sessions within MCP-compatible clients.-
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to connect to Swarm, providing access to Space memory, work coordination, artifacts, evaluations, context packs, and agent execution tools.10 npmApache 2.0

agentkit-meshofficial
AlicenseAqualityFmaintenanceEnables agent-to-agent discovery and delegation via MCP, with tools for registering agents, discovering them by keyword matching, and delegating tasks over HTTP.46 npm1MIT- AlicenseNot gradedqualityCmaintenanceEnables interaction with OpenClaw agents via MCP, supporting natural language queries and session management.55 npm3MIT