home / mcp / openclaw mcp server
Provides MCP-based bridge between OpenClaw and Claude to orchestrate AI workflows across systems.
Configuration
View docs{
"mcpServers": {
"freema-openclaw-mcp": {
"url": "https://mcp.your-domain.com",
"headers": {
"AUTH_ENABLED": "true",
"OPENCLAW_URL": "http://127.0.0.1:18789",
"MCP_CLIENT_ID": "openclaw",
"MCP_CLIENT_SECRET": "YOUR_SECRET",
"OPENCLAW_GATEWAY_TOKEN": "your-gateway-token"
}
}
}
}You can connect OpenClaw to Claude via a Model Context Protocol (MCP) server that acts as a bridge between your local or remote AI setup and Claude. This MCP server lets you orchestrate tasks across OpenClaw and Claude, enabling advanced interactions without relying solely on messaging channels.
Set up your MCP server so Claude can talk to OpenClaw. You can run the server locally for development or deploy it behind a reverse proxy for production. You will connect Claude Desktop or Claude.ai to your MCP server using the provided client credentials and the MCP endpoint.
Prerequisites you need before starting:
npx openclaw-mcpTo run the MCP server with authentication and remote access, enable authentication, set your OAuth client details, and expose the server via a public URL. Use these environment variables along with the MCP runner.
AUTH_ENABLED=true MCP_CLIENT_ID=openclaw MCP_CLIENT_SECRET=your-secret \
MCP_ISSUER_URL=https://mcp.your-domain.com \
CORS_ORIGINS=https://claude.ai OPENCLAW_GATEWAY_TOKEN=your-gateway-token \
npx openclaw-mcp --transport sse --port 3000In Claude Desktop, add a connector pointing to your local MCP or remote MCP URL. For local development, you typically run the MCP locally and register it under the Claude Desktop configuration. For remote usage, provide the MCP client credentials you configured above.
When running behind a reverse proxy, ensure MCP issuer URL is your public HTTPS URL so OAuth metadata does not advertise localhost. This prevents authentication failures for clients.
Send messages to OpenClaw and obtain responses via MCP integration.
Check the health status of the OpenClaw gateway.
Queue a chat message and receive a task_id immediately for long-running operations.
Poll for progress and results of asynchronous tasks.
List and filter all tasks by status or other criteria.
Cancel a pending long-running task if needed.