Purpose
MCP Rubber Duck is an MCP (Model Context Protocol) server used to throw a question at multiple large language models simultaneously, drawing on the idea of "rubber duck debugging" to obtain answers from different perspectives. It can serve both as a bridge layer for OpenAI-compatible HTTP APIs and to query local CLI coding agents as "ducks."
Main Capabilities
- General OpenAI compatibility: can connect to any OpenAI-compatible API endpoint.
- CLI agent support: can use CLI coding agents such as Claude Code, Codex, Gemini CLI, Grok, and Aider as ducks.
- Multiple ducks: can configure and query multiple LLM providers simultaneously.
- Conversation management: maintains context across multiple messages.
- Duck Council: obtains answers from all configured LLMs at once.
- Consensus voting: multiple ducks vote, with reasoning and confidence scores.
- LLM-as-Judge: lets the ducks evaluate and rank each other.
- Iterative refinement: two ducks collaborate to improve an answer.
- Structured debate: supports Oxford-style, Socratic, and adversarial debate formats.
- MCP prompts: provides 8 reusable multi-LLM workflow prompt templates.
- Visual input: can send images to vision-capable models.
- Automatic failover: falls back to other providers when the primary provider fails.
- Health monitoring: real-time health checks for all providers.
- Usage tracking: counts requests, token counts, and estimated costs by provider.
- MCP bridge: connects ducks to other MCP servers to extend functionality.
- Guardrails: pluggable security layer supporting rate limiting, token caps, pattern blocking, and PII redaction.
- Fine-grained security: per-server approval control, with session-based approval support.
- Interactive UI: provides rich HTML panels for the compare, vote, debate, and usage tools through MCP Apps.
- Tool annotations: MCP-compliant tool behavior hints (read-only, destructive, etc.).
- Structured output: outputSchema on tools returns structured JSON for client validation (Cursor, VS Code/Copilot).
- Specification alignment: directly connects to provider APIs, aligning with the MCP 2026-07-28 specification on the server sideRecommended direction after being deprecated (SEP-2577).
Supported Providers
HTTP providers (OpenAI-compatible APIs): any provider with an OpenAI-compatible API endpoint, including Anthropic (via an OpenAI-compatible endpoint), Groq, Together AI, Perplexity, Anyscale, Azure OpenAI, Ollama, LM Studio, and custom endpoints. CLI providers (coding agents): command-line coding agents that run as local processes, including Claude Code (claude), Codex (codex), Gemini CLI (gemini), Grok CLI (grok), Aider (aider), and custom agents.
Usage
Prerequisites: Node.js 20 or later; an API Key for at least one HTTP provider, or a locally installed CLI coding agent. Installation: can be installed from NPM or from source. Configuration: create a .env file or config/config.json; key environment variables are detailed in the configuration documentation. Client integration: for Claude Desktop, refer to the Claude Desktop configuration; for tools such as Cursor, VS Code, and Windsurf, refer to the Setup Guide. Interactive UI: the four tools compare_ducks, duck_vote, duck_debate, and get_usage_stats can render rich interactive HTML panels in clients that support MCP Apps, appearing automatically after configuration with no additional setup required; clients that do not support MCP Apps still receive the same plain-text output, with no impact on functionality.
Use Cases
- When multiple models are needed to provide different perspectives on the same question.
- When multi-model voting, mutual review, or structured debate is needed to assist decision-making.
- When you want to manage multiple LLM providers in a unified way and track usage and costs.
- When you want to bring local CLI coding agents into a unified query entry point.
Limitations
- Requires Node.js 20 or later.
- Requires an API Key for at least one HTTP provider, or a locally installed CLI coding agent.
- For the specific list of supported clients, configuration details, and the complete input schemas for tools and prompts, please refer to the official documentation; this material does not provide pricing or billing information.