OpenWork MCP Gateway
Your OpenWork org's skills, plugins, workflows, and connections through one OAuth MCP URL.
DIdifferent-ai/openwork25k59 new stars in the last 7 days
Bridge to multiple LLMs and CLI agents: councils, debates, voting, and more
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
samplingprimitive -- 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.
outputSchema on tools returning structured JSON for client-side validation (Cursor, VS Code/Copilot)2026-07-28 spec recommends now that server-side sampling is deprecated (SEP-2577)Any provider with an OpenAI-compatible API endpoint, including:
Command-line coding agents that run as local processes:
claude) -- Codex (codex) -- Gemini CLI (gemini) -- Grok CLI (grok) -- Aider (aider) -- CustomSee CLI Providers for full setup and configuration.
# 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.
npm install -g mcp-rubber-duck
git clone https://github.com/nesquikm/mcp-rubber-duck.git
cd mcp-rubber-duck
npm install
npm run build
npm start
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
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
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 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.notifications/progress on the response SSE stream.@modelcontextprotocol/server / client 2.4 (the final 2026-07-28 spec); Node.js 20+ is required.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.-32602 instead of an isError result.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 multiple model responses side-by-side, with latency indicators, token counts, model badges, and error states.
Have multiple ducks vote on options, displayed as a visual vote tally with bar charts, consensus badge, winner card, confidence bars, and collapsible reasoning.
Structured multi-round debate between ducks, shown as a round-by-round view with format badge, participant list, collapsible rounds, and synthesis section.
Usage analytics with summary cards, provider breakdown with expandable rows, token distribution bars, and estimated costs.
| 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
| 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
npm run dev # Development with watch mode
npm test # Run all tests
npm run lint # ESLint
npm run typecheck # Type check without emit
| 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 |
list_ducks({ check_health: true })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).
max_retries and timeout settings __
<(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:
MIT License - see LICENSE file for details
See CHANGELOG.md for a detailed history of changes and releases.
io.github.nesquikm/rubber-duckHappy Debugging with your AI Duck Panel!
Your OpenWork org's skills, plugins, workflows, and connections through one OAuth MCP URL.
DIdifferent-ai/openwork25k59 new stars in the last 7 days
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
TAtadata-org/fastapi_mcp12k
USDC-gated Base JSON-RPC: free 10 req/min, $0.50 per 10k. Failover, cache, /mcp, ledger.
COConway-Research/automaton8k48 new stars in the last 7 days
Next Generation Agentic Proxy for AI Agents and MCP servers
AGagentgateway/agentgateway6.6k165 new stars in the last 7 days
Federate MCP, A2A and REST APIs behind one endpoint with central governance.
IBIBM/mcp-context-forge4.9k42 new stars in the last 7 days
Control FreeCAD: create and edit 3D models, run Python scripts, and perform FEM analysis.
NEneka-nat/freecad-mcp3.6k95 new stars in the last 7 days