MCP Rubber Duck
Lets your AI agent ask several other AI models and CLI coding agents at once, then compare, vote and debate their answers.
180 stars on GitHubby nesquikmLicense MITUpdated 21 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add rubber-duck -- npx -y mcp-rubber-duck
What to fill in
| Name | What it is | Required |
|---|---|---|
OPENAI_API_KEY | OpenAI API key (starts with sk-) | No |
GEMINI_API_KEY | Google Gemini API key | No |
GROQ_API_KEY | Groq API key (starts with gsk_) | No |
DEFAULT_PROVIDER | Default LLM provider to use | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Ask all my ducks how to structure this database schema and show their answers side by side.
Have three ducks vote on whether I should use Postgres or MongoDB, with their reasoning.
What it is
MCP Rubber Duck connects your agent to several LLMs, called ducks, such as OpenAI, Gemini, Groq, Ollama and CLI agents like Claude Code, Codex or Aider. You can ask one duck, ask all of them, have them vote, judge each other or debate. It gives you different views on a problem.
What it can do
ask_duckandchat_with_duck: ask one model, with conversation memorycompare_ducksandduck_council: ask several or all models at onceduck_vote: voting with reasoning and confidenceduck_judge: have one duck rank others' answersduck_iterateandduck_debate: refine or debate between duckslist_ducksandlist_models: see providers and healthget_usage_stats: usage and estimated cost
When to use
- βΊWhen you want a second or third opinion on a design or bug from other models
- βΊWhen you need a decision and want several models to vote
- βΊWhen you want to compare how different providers answer the same question
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
askLets your agent ask a locally installed Claude or Gemini command line tool for a second opinion or review, and saves the answer as a file.multi-advisorHelps your agent consult multiple experts at once. It gathers different viewpoints to give a complete answer and aid decision-making.multi_agent_collaborationLets your agent bring in another specialized agent for expertise, a second opinion, or access to its files, and keep a two-way conversation going.Frequently asked questions
Is it free and open source?
Yes, it is MIT licensed. Each provider charges its own fees.
Which providers work?
Any OpenAI-compatible API, including OpenAI, Gemini, Groq, Together AI, Perplexity, Azure, Ollama and LM Studio, plus CLI agents.
Does it have failover?
Yes. It falls back to other providers if the primary fails.
Can ducks use other MCP tools?
Yes, through the MCP Bridge, with per-server approval controls.
Are there safety features?
A guardrails layer supports rate limiting, token limits, pattern blocking and PII redaction.
Any known issue?
OpenAI gpt-5.6 and gpt-6 models fail with the MCP Bridge. The readme advises gpt-5.4 for now.
If it does not work
- βΊCheck that the API key for the provider is set correctly and run list_ducks with check_health true.
- βΊFor local providers such as Ollama or LM Studio, make sure they are running.
- βΊUse gpt-5.4 or gpt-5.4-mini if gpt-5.6 or gpt-6 models fail with the MCP Bridge.
5 new skills a week. 1 minute to read.