Rubber Duck

Data and AIDeveloper tools

Bridge to multiple LLMs and CLI agents: councils, debates, voting, and more.

Your AI app calls the Rubber Duck MCP server, which does the data and AI and developer tools work and sends the result back to the chat.

About Rubber Duck

Rubber Duck is a community MCP server from nesquikm, filed in our directory under data and ai and developer tools. Bridge to multiple LLMs and CLI agents: councils, debates, voting, and more.

Rubber Duck runs on your own machine: your AI app starts it with the command npx -y mcp-rubber-duck@1.18.0 and talks to it over standard input and output.

Rubber Duck is listed in the official MCP registry as io.github.nesquikm/rubber-duck, version 1.18.0.

At a glance

Publisher
nesquikm (community)
Runs
Locally on your machine
Install from
Node.js package on npm: mcp-rubber-duck
Written in
TypeScript
License
MIT
GitHub stars
184
Official MCP registry
io.github.nesquikm/rubber-duck

How to set up Rubber Duck

  1. Install Node.js on the machine that runs your AI app, because Rubber Duck starts with npx and downloads its package on first run.
  2. Check the Rubber Duck README for keys or settings; the registry lists none that Rubber Duck requires.
  3. Add Rubber Duck to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Rubber Duck tools to confirm the connection.
  5. Run one read-only task with Rubber Duck first, and keep your app asking before each tool call until the results look right.

Rubber Duck compared with similar servers

  • Reshapr by reshaprio has fewer GitHub stars than Rubber Duck (182 against 184); both are community servers, and both run locally.
  • Typst by johannesbrandenburger has more GitHub stars than Rubber Duck (188 against 184); both are community servers, and both run locally.
  • Ollama by rawveg has fewer GitHub stars than Rubber Duck (181 against 184); both are community servers, and both run locally.

Before you connect Rubber Duck

  • Give Rubber Duck its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Rubber Duck tool call until you trust what it does with them.
  • Treat text that Rubber Duck fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Rubber Duck on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Rubber Duck

How marketing and sales teams put Rubber Duck to work, by company size. Pick the size closest to yours and start Rubber Duck on one use case.

Small business

  • A small team can use Rubber Duck to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Owners can ask Rubber Duck to sort feedback, reviews or survey answers into themes and see what customers mention most.
  • A small business with a developer can use Rubber Duck to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Rubber Duck runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Rubber Duck to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Content and research teams can use Rubber Duck to analyze transcripts and surveys at scale and pull the quotes worth using.
  • Growth engineers can use Rubber Duck to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Start Rubber Duck on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Rubber Duck inside their own cloud and data boundary, so models and data stay where governance requires.
  • Large teams can use Rubber Duck in batch pipelines with evaluation and logging, so AI output is measured before it reaches customers.
  • Enterprise engineering teams can roll out Rubber Duck with repo scopes and audit logs, so agents work only where they are allowed.
  • Rubber Duck is a community server, so have security review the code and pin a version before Rubber Duck touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Rubber Duck README

From nesquikm/mcp-rubber-duck on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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!

Why direct provider integration? MCP's sampling primitive -- a server borrowing the host's model -- was deprecated in the 2026-07-28 spec 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 (github.com/nesquikm/mcp-rubber-duck/blob/master/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 (github.com/nesquikm/mcp-rubber-duck/blob/master/docs))
  • Guardrails -- Pluggable safety layer with rate limiting, token limits, pattern blocking, and PII redaction (docs (github.com/nesquikm/mcp-rubber-duck/blob/master/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
  • Google Gemini
  • Anthropic (via OpenAI-compatible endpoints)
  • Groq (fast inference for open-weight models)
  • Together AI (broad open-weight model catalog)
  • Perplexity (online models with web search)
  • 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.

Quick Start

# Install globally
npm install -g mcp-rubber-duck

# Or use npx directly in Claude Desktop config
npx mcp-rubber-duck

Using Claude Desktop? Jump to Claude Desktop Configuration. Using Cursor, VS Code, Windsurf, or another tool? See the Setup Guide.

Installation

Prerequisites
  • Node.js 20 or higher
  • npm or yarn
  • At least one API key for an HTTP provider, or a CLI coding agent installed locally
Install from NPM
npm install -g mcp-rubber-duck
Install from Source
git clone https://github.com/nesquikm/mcp-rubber-duck.git
cd mcp-rubber-duck
npm install
npm run build
npm start

Configuration

Create a .env file or config/config.json. Key environment variables:

Variable Description
OPENAI_API_KEY OpenAI API key
GEMINI_API_KEY Google Gemini API key
GROQ_API_KEY Groq API key
OPENAI_DEFAULT_MODEL OpenAI model (default: gpt-5.4)
GEMINI_DEFAULT_MODEL Gemini model (default: gemini-3.8-flash)
GROQ_DEFAULT_MODEL Groq model (default: openai/gpt-oss-120b)
DEFAULT_PROVIDER Default provider key: openai, google, groq, ollama, or a custom name
DEFAULT_TEMPERATURE Default temperature (e.g., 0.7)
LOG_LEVEL debug, info, warn, error
MCP_SERVER Set to true for MCP server mode
MCP_BRIDGE_ENABLED Enable MCP Bridge (ducks access external MCP servers)
MCP_TRANSPORT Server transport: stdio (default) or http
MCP_HTTP_HOST HTTP bind host (default: 127.0.0.1)
MCP_HTTP_PORT HTTP port, an integer 1-65535 (default: 3000)
MCP_HTTP_TOKEN Bearer token required on HTTP requests
MCP_HTTP_ALLOWED_ORIGINS Comma-separated extra origins allowed to call the HTTP endpoint
MCP_HTTP_ALLOWED_HOSTS Comma-separated extra Host header values (hostnames) the HTTP endpoint accepts
CUSTOM_{NAME}_* Custom HTTP providers
CLI_{AGENT}_ENABLED Enable CLI agents (CLAUDE, CODEX, GEMINI, GROK, AIDER)

Full reference: Configuration docs

Transports

The server speaks MCP over stdio by default, which is what Claude Desktop, Claude Code and most MCP hosts launch. Clients on the 2026-07-28 protocol and on 2025-11-25 are both served from the same binary.

Streamable HTTP is opt-in. Set MCP_TRANSPORT=http and the server answers POST /mcp on MCP_HTTP_HOST:MCP_HTTP_PORT (127.0.0.1:3000 by default), statelessly, in both protocol eras:

MCP_TRANSPORT=http MCP_HTTP_TOKEN=$(openssl rand -hex 32) npx mcp-rubber-duck
  • Token. When MCP_HTTP_TOKEN is set, every request needs Authorization: Bearer <token>; anything else gets 401. Binding to anything other than loopback (127.x, localhost, ::1) without a token refuses to start.
  • Host and Origin. A request whose Host is not localhost, MCP_HTTP_HOST itself, or a hostname listed in MCP_HTTP_ALLOWED_HOSTS gets 403, and so does one whose Origin is not localhost or listed in MCP_HTTP_ALLOWED_ORIGINS; both lists are comma-separated hostnames. Requests with no Origin (non-browser clients) are served. When binding 0.0.0.0 (as in Docker), add the hostname clients use to MCP_HTTP_ALLOWED_HOSTS; otherwise only clients that reach the server as localhost pass.
  • Progress streams as notifications/progress on the response SSE stream.
Breaking changes in 2.0
  • MCP SDK v2. Built on @modelcontextprotocol/server / client 2.4 (the final 2026-07-28 spec); Node.js 20+ is required.
  • Background tasks are 2026-07-28 only. duck_iterate and duck_debate return a task (the io.modelcontextprotocol/tasks extension) only when the client declares that extension. Clients on 2025-11-25, and 2026-07-28 clients without it, get the ordinary synchronous result. tasks/cancel now really aborts the work.
  • Unknown tool calls return the JSON-RPC error -32602 instead of an isError result.
  • No MCP logging capability is advertised (deprecated in 2026-07-28); logs go to stderr.

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.

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 Debate

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

Usage Stats

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

Available Tools

Tool Description
ask_duck Ask a single question to a specific LLM provider
chat_with_duck Conversation with context maintained across messages
clear_conversations Clear all conversation history
list_ducks List configured providers and health status
list_models List available models for providers
compare_ducks Ask the same question to multiple providers simultaneously
duck_council Get responses from all configured ducks
get_usage_stats Usage statistics and estimated costs
duck_vote Multi-duck voting with reasoning and confidence
duck_judge Have one duck evaluate and rank others' responses
duck_iterate Iteratively refine a response between two ducks
duck_debate Structured multi-round debate between ducks
mcp_status MCP Bridge status and connected servers
get_pending_approvals Pending MCP tool approval requests
approve_mcp_request Approve or deny a duck's MCP tool request

Full reference with input schemas: Tools docs

Available Prompts

Prompt Purpose Required Arguments
perspectives Multi-angle analysis with assigned lenses problem, perspectives
assumptions Surface hidden assumptions in plans plan
blindspots Hunt for overlooked risks and gaps proposal
tradeoffs Structured option comparison options, criteria
red_team Security/risk analysis from multiple angles target
reframe Problem reframing at different levels problem
architecture Design review across concerns design, workloads, priorities
diverge_converge Divergent exploration then convergence challenge

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 (github.com/nesquikm/mcp-rubber-duck/blob/master/docs)

Topic Link
Setup guide (all tools) docs/setup.md
Full configuration reference docs/configuration.md
Claude Desktop setup docs/claude-desktop.md
All tools with schemas docs/tools.md
Prompt templates docs/prompts.md
CLI coding agents docs/cli-providers.md
MCP Bridge docs/mcp-bridge.md
Guardrails docs/guardrails.md
Docker deployment docs/docker.md
Provider-specific setup docs/provider-setup.md
Usage examples docs/usage-examples.md
Architecture docs/architecture.md
Roadmap docs/roadmap.md

Troubleshooting

Provider Not Working
  1. Check API key is correctly set
  2. Verify endpoint URL is correct
  3. Run health check: list_ducks({ check_health: true })
  4. Check logs for detailed error messages
OpenAI gpt-5.6 / gpt-6 Models Fail With the MCP Bridge

OpenAI's Chat Completions API rejects function tools for the gpt-5.6 and gpt-6 families (400 Function tools with reasoning_effort are not supported ... use /v1/responses). They work for plain calls, but with MCP_BRIDGE_ENABLED=true the ducks attach tools and those requests fail. Use gpt-5.4 (the default) or gpt-5.4-mini until Responses API support lands (#166).

Connection Issues
  • For local providers (Ollama, LM Studio), ensure they're running
  • Check firewall settings for local endpoints
  • Verify network connectivity to cloud providers
Rate Limiting
  • Configure failover to alternate providers
  • Adjust max_retries and timeout settings
  • See Guardrails for rate limiting configuration

Contributing

     __
   <(o )___
    ( ._> /
     `---'  Quack! Ready to debug!

We love contributions! Whether you're fixing bugs, adding features, or teaching our ducks new tricks, we'd love to have you join the flock.

Check out our Contributing Guide to get started.

Quick start for contributors:

  1. Fork the repository
  2. Create a feature branch
  3. Follow our conventional commit guidelines
  4. Add tests for new functionality
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Acknowledgments

  • Inspired by the rubber duck debugging method
  • Built on the Model Context Protocol (MCP)
  • Uses OpenAI SDK for HTTP provider compatibility
  • Supports CLI coding agents (Claude Code, Codex, Gemini CLI, Grok, Aider)

Changelog

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

Registry & Directory

Support

Happy Debugging with your AI Duck Panel!

Questions about Rubber Duck

What is the Rubber Duck MCP server?

Bridge to multiple LLMs and CLI agents: councils, debates, voting, and more. Rubber Duck is maintained by nesquikm on GitHub at nesquikm/mcp-rubber-duck, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Rubber Duck MCP server?

Add Rubber Duck to your AI app's MCP config with the command npx -y mcp-rubber-duck@1.18.0. In Claude Code, run claude mcp add --transport stdio rubber-duck -- npx -y mcp-rubber-duck@1.18.0. To run Rubber Duck this way you need Node.js installed.

Does Rubber Duck need an API key?

The registry lists no required keys for Rubber Duck. Check the Rubber Duck README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Rubber Duck an official MCP server?

No. Rubber Duck is a community server maintained by nesquikm. Community servers can be excellent; read the code and the open issues before you give Rubber Duck access to company data.

What license is Rubber Duck under?

Rubber Duck is released under the MIT license, according to its GitHub repository. The license covers the code of Rubber Duck; the service it connects to has its own terms.