pal-mcp-server: Run Claude, Gemini, and Codex as One Team

pal-mcp-server: Run Claude, Gemini, and Codex as One Team

BeehiveInnovations' pal-mcp-server lets your coding CLI delegate to any other model — Gemini, GPT, Grok, Ollama — through a single MCP interface. Here's how to set it up and where the seams show.

What you will learn

  • What pal-mcp-server actually does: one MCP bridge that lets Claude Code, Gemini CLI, or Codex CLI call other models as tools.
  • How to install it and wire in Gemini, OpenAI, OpenRouter, Azure, Grok, or a local Ollama model.
  • A concrete example of delegating a task from Claude Code to a cheaper or longer-context model.
  • The one thing that makes it different: cross-CLI, cross-provider delegation without leaving your terminal.
  • Where it falls short: configuration sprawl, latency stacking, and the usual MCP debugging pain.

What is pal-mcp-server, and why would you want it?

You already have a favorite coding CLI. Maybe it's Claude Code. Maybe you've been flirting with Gemini CLI for its huge context window, or Codex CLI because it's fast and cheap. The problem is that each one is a silo: Claude Code can't ask Gemini to summarize a 200-page spec, and Gemini CLI can't hand a tricky refactor to GPT-4o without you copy-pasting between terminals.

BeehiveInnovations/pal-mcp-server is a Python-based MCP server that fixes that. It exposes other models — Gemini, OpenAI, OpenRouter, Azure OpenAI, Grok, Ollama, or any custom OpenAI-compatible endpoint — as tools your primary CLI can call. The project's own tagline puts it plainly: "The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one."

This is not a new idea in the abstract — model routing has been around since the first API wrapper — but doing it inside the MCP protocol means your existing CLI doesn't need to know anything about the other providers. It just sees tools. That's the useful part.

How do you install and configure it?

The repo is Python, so the usual pattern applies. Clone it, set up a virtual environment, install dependencies, and point your MCP client at the server. The exact commands depend on whether you run it via uv, pip, or a container, so check the README for the current invocation — but the shape is always the same:

git clone https://github.com/BeehiveInnovations/pal-mcp-server
cd pal-mcp-server
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# then register the server with your MCP client, e.g. claude mcp add ...

Configuration is where the real work lives. You'll need API keys for whichever providers you want to expose, and you'll typically set them as environment variables. The project supports a long list — Gemini, OpenAI, OpenRouter, Azure, Grok, Ollama, and custom endpoints — so you can start with one and add others later. If you're running Ollama locally, you point it at your local endpoint and skip the API key entirely.

Once registered, your CLI discovers the tools automatically. In Claude Code, for example, you'd see new tools appear that let you ask another model a question, hand off a chunk of work, or request a second opinion.

pal-mcp-server: Run Claude, Gemini, and Codex as One Team

What does it look like in practice?

Say you're in Claude Code working on a large refactor. You've got a 150-page internal design doc that you need summarized before you touch anything. Claude's context is good, but you'd rather not burn it on summarization when Gemini can do it for less.

With pal-mcp-server configured with a Gemini key, you can ask Claude Code to delegate: something like "Use the Gemini tool to summarize the design doc in docs/design.md and return the key constraints." Claude calls the MCP tool, the server forwards the request to Gemini, and the summary comes back as a tool result. You never leave the terminal, and Claude's context stays clean for the actual coding.

The same pattern works in reverse. If you're in Gemini CLI and want a second opinion from GPT-4o on a tricky function, you add an OpenAI key and expose that tool. The server is the switchboard; your CLI is just one of the callers.

If you're already comfortable juggling multiple agents, this fits naturally alongside patterns like Ordewell's ordered multi-agent plans or cc-switch's desktop switcher for Claude Code and Codex. The difference is that pal-mcp-server keeps everything inside the MCP protocol rather than asking you to switch apps.

What makes it different — and where does it fall short?

The differentiator is breadth. Plenty of tools let you call OpenAI from Claude. Fewer let you call OpenRouter, Azure, Grok, Ollama, and a custom endpoint from any of the three major coding CLIs. The repo's star count — north of 11,000 — suggests people were waiting for exactly this kind of glue.

But glue has seams. First, configuration sprawl is real: every provider has its own key, base URL, and model naming quirks. You'll spend more time in env files than you'd like. Second, latency stacks. If Claude calls Gemini, which calls something else, you're paying for every hop. Third, MCP itself is still rough around the edges — tool discovery failures and unclear error messages are common across the ecosystem, and this server is not immune.

The project is young and moving fast, so expect breaking changes. It's also worth noting that this is a community project, not an official integration from Anthropic or Google. If you need guaranteed support, look elsewhere. If you want a practical way to stop copy-pasting between terminals, it's worth the setup time.

For a related take on keeping agents isolated while they work, see coi's approach to per-agent machines. And if you're moving prompts off expensive models entirely, the Ollama migration notes pair well with pal-mcp-server's local-model support.

The bottom line: pal-mcp-server is the most direct way I've seen to make your coding CLI provider-agnostic without rewriting your workflow. It's not polished, but it's useful today — and that's more than most MCP servers can claim.

Source and attribution

GitHub
BeehiveInnovations/pal-mcp-server: The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.

Discussion

Add a comment

0/5000
Loading comments...