Labsco
nesquikm logo

mcp-rubber-duck

โ˜… 170

from nesquikm

Query multiple LLMs in parallel from AI coding tools โ€” rubber duck debugging, but the ducks talk back.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

MCP Rubber Duck

An MCP (Model Context Protocol) server that acts as a bridge to query multiple LLMs -- both OpenAI-compatible HTTP APIs and CLI coding agents. Just like rubber duck debugging, explain your problems to various AI "ducks" and get different perspectives!

MCP Rubber Duck - AI ducks helping debug code

Why direct provider integration? MCP's sampling primitive -- a server borrowing the host's model -- was deprecated in the 2026-07-28 spec RC in favor of servers integrating directly with LLM provider APIs. Rubber Duck has always worked this way (it brings its own ducks), so it's aligned with where the protocol is heading -- no migration required.

Features

  • Universal OpenAI Compatibility -- Works with any OpenAI-compatible API endpoint
  • CLI Agent Support -- Use CLI coding agents (Claude Code, Codex, Gemini CLI, Grok, Aider) as ducks
  • Multiple Ducks -- Configure and query multiple LLM providers simultaneously
  • Conversation Management -- Maintain context across multiple messages
  • Duck Council -- Get responses from all your configured LLMs at once
  • Consensus Voting -- Multi-duck voting with reasoning and confidence scores
  • LLM-as-Judge -- Have ducks evaluate and rank each other's responses
  • Iterative Refinement -- Two ducks collaboratively improve responses
  • Structured Debates -- Oxford, Socratic, and adversarial debate formats
  • MCP Prompts -- 8 reusable prompt templates for multi-LLM workflows
  • Vision Input -- Send images alongside prompts to vision-capable models (docs)
  • Automatic Failover -- Falls back to other providers if primary fails
  • Health Monitoring -- Real-time health checks for all providers
  • Usage Tracking -- Track requests, tokens, and estimated costs per provider
  • MCP Bridge -- Connect ducks to other MCP servers for extended functionality (docs)
  • Guardrails -- Pluggable safety layer with rate limiting, token limits, pattern blocking, and PII redaction (docs)
  • Granular Security -- Per-server approval controls with session-based approvals
  • Interactive UIs -- Rich HTML panels for compare, vote, debate, and usage tools (via MCP Apps)
  • Tool Annotations -- MCP-compliant hints for tool behavior (read-only, destructive, etc.)
  • Structured Output -- outputSchema on tools returning structured JSON for client-side validation (Cursor, VS Code/Copilot)
  • Spec-Aligned by Design -- connects directly to provider APIs, the path the MCP 2026-07-28 spec recommends now that server-side sampling is deprecated (SEP-2577)

Supported Providers

HTTP Providers (OpenAI-compatible API)

Any provider with an OpenAI-compatible API endpoint, including:

  • OpenAI (GPT-5.1, o3, o4-mini)
  • Google Gemini (Gemini 3, Gemini 2.5 Pro/Flash)
  • Anthropic (via OpenAI-compatible endpoints)
  • Groq (Llama 4, Llama 3.3)
  • Together AI (Llama 4, Qwen, and more)
  • Perplexity (Online models with web search)
  • Anyscale, Azure OpenAI, Ollama, LM Studio, Custom

CLI Providers (Coding Agents)

Command-line coding agents that run as local processes:

  • Claude Code (claude) -- Codex (codex) -- Gemini CLI (gemini) -- Grok CLI (grok) -- Aider (aider) -- Custom

See CLI Providers for full setup and configuration.

Interactive UIs (MCP Apps)

Four tools -- compare_ducks, duck_vote, duck_debate, and get_usage_stats -- can render rich interactive HTML panels inside supported MCP clients via MCP Apps. Once this MCP server is configured in a supporting client, the UIs appear automatically -- no additional setup is required. Clients without MCP Apps support still receive the same plain text output (no functionality is lost). See the MCP Apps repo for an up-to-date list of supported clients.

Compare Ducks

Compare multiple model responses side-by-side, with latency indicators, token counts, model badges, and error states.

Compare Ducks interactive UI

Duck Vote

Have multiple ducks vote on options, displayed as a visual vote tally with bar charts, consensus badge, winner card, confidence bars, and collapsible reasoning.

Duck Vote interactive UI

Duck Debate

Structured multi-round debate between ducks, shown as a round-by-round view with format badge, participant list, collapsible rounds, and synthesis section.

Duck Debate interactive UI

Usage Stats

Usage analytics with summary cards, provider breakdown with expandable rows, token distribution bars, and estimated costs.

Usage Stats interactive UI

Available Tools

ToolDescription
ask_duckAsk a single question to a specific LLM provider
chat_with_duckConversation with context maintained across messages
clear_conversationsClear all conversation history
list_ducksList configured providers and health status
list_modelsList available models for providers
compare_ducksAsk the same question to multiple providers simultaneously
duck_councilGet responses from all configured ducks
get_usage_statsUsage statistics and estimated costs
duck_voteMulti-duck voting with reasoning and confidence
duck_judgeHave one duck evaluate and rank others' responses
duck_iterateIteratively refine a response between two ducks
duck_debateStructured multi-round debate between ducks
mcp_statusMCP Bridge status and connected servers
get_pending_approvalsPending MCP tool approval requests
approve_mcp_requestApprove or deny a duck's MCP tool request

Full reference with input schemas: Tools docs

Available Prompts

PromptPurposeRequired Arguments
perspectivesMulti-angle analysis with assigned lensesproblem, perspectives
assumptionsSurface hidden assumptions in plansplan
blindspotsHunt for overlooked risks and gapsproposal
tradeoffsStructured option comparisonoptions, criteria
red_teamSecurity/risk analysis from multiple anglestarget
reframeProblem reframing at different levelsproblem
architectureDesign review across concernsdesign, workloads, priorities
diverge_convergeDivergent exploration then convergencechallenge

Full reference with examples: Prompts docs

Development

npm run dev        # Development with watch mode
npm test           # Run all tests
npm run lint       # ESLint
npm run typecheck  # Type check without emit

Documentation

TopicLink
Setup guide (all tools)docs/setup.md
Full configuration referencedocs/configuration.md
Claude Desktop setupdocs/claude-desktop.md
All tools with schemasdocs/tools.md
Prompt templatesdocs/prompts.md
CLI coding agentsdocs/cli-providers.md
MCP Bridgedocs/mcp-bridge.md
Guardrailsdocs/guardrails.md
Docker deploymentdocs/docker.md
Provider-specific setupdocs/provider-setup.md
Usage examplesdocs/usage-examples.md
Architecturedocs/architecture.md
Roadmapdocs/roadmap.md

Changelog

See CHANGELOG.md for a detailed history of changes and releases.

Registry & Directory

Support


Happy Debugging with your AI Duck Panel!