Claude Bridge
An MCP server that enables collaboration between Claude Code and Z.ai's GLM models — use Claude Opus for planning while GLM handles implementation.
Combine the strengths of Claude Code and Z.ai's GLM in one workflow. This MCP server lets Opus handle high-level planning while GLM tackles implementation — coordinated through a shared task queue, running simultaneously in separate terminals. Run Claude Code with your Max subscription or API for architecture, and Claude Code with Z.ai (GLM) for execution — both working together at the same time.
Why This Exists
You have a Claude subscription but you're hitting limits. Getting a second Claude subscription is pricey — but a Z.ai subscription costs less and GLM codes just as well as Sonnet.
The question: How do you make Claude and GLM work together?
The answer: Claude Bridge. An MCP server that coordinates both through a shared task queue.
┌─────────────────────────┐ ┌─────────────────────────┐
│ Terminal 1 │ │ Terminal 2 │
│ Claude Opus │ │ Z.ai GLM │
│ (Architect) │ │ (Executor) │
│ │ Claude Bridge │ │
│ • Plans features │◄──────────────────►│ • Pulls tasks │
│ • Designs architecture│ (Shared Queue) │ • Writes code │
│ • Makes decisions │ │ • Reports back │
└─────────────────────────┘ └─────────────────────────┘
Quick Example
Terminal 1 (Opus): "Push a task to implement JWT authentication"
Terminal 2 (GLM): "Pull the next task" → implements → "Complete the task"
Terminal 1: "What did the executor complete?" → reviews results
Features
- Task Queue — Priority-based with dependencies and categories
- Shared State — Project focus and decisions visible to both
- Session Context — Resume where you left off
- Clarifications — Executor asks questions, Architect responds
- Token-Conscious — Designed to minimize Opus usage
Quick Start
# 1. Clone and build
git clone https://github.com/Joncik91/claude-bridge-server.git
cd claude-bridge-server
./setup.sh # or setup.bat on Windows
# 2. See GUIDE.md for:
# - Claude Code MCP configuration
# - Terminal profile setup (use-max / use-glm functions)
# - Project initialization
Requirements
- Node.js 18+
- Claude Code CLI
- Z.ai account with GLM access
- Two terminal windows
Documentation
GUIDE.md — Complete setup, terminal configuration, usage, and troubleshooting
Works with Other MCP Clients Too
While designed for Claude + GLM, the bridge is a standard MCP server — it works with any MCP-compatible CLI:
- Two Claude Code instances (different subscriptions)
- Gemini CLI
- OpenCode
- Qwen Code
- Any other MCP client
License
MIT — see LICENSE
Acknowledgments
- Built for Claude Code by Anthropic
- Designed for Z.ai GLM integration