brainstorm-mcp
brainstorm-mcp lets you run multi-model AI debates, quick perspectives, and code reviews from your editor, using API, CLI subscription, or hosted no-key modes.
Run multi-round debates between multiple AI models (OpenAI, Gemini, DeepSeek, Groq, Ollama, Claude CLI, Codex CLI, etc.) with parallel responses and resilient fallback.
Choose debate styles: freeform, red-team adversarial, or Socratic probing.
Inject context such as code snippets, diffs, error logs, or architecture docs to ground the debate.
Get a final synthesis verdict with Recommendation, Key Tradeoffs, and Strongest Disagreement.
Participate interactively as Claude by submitting your own debate response via
brainstorm_respond.Use hosted mode with no API keys: the server returns prompts that the host executes via sub-agents, then collect responses with
brainstorm_collect.Get instant multi-model perspectives with
brainstorm_quickin under 10 seconds, without debate rounds or synthesis.Perform multi-model code review with
brainstorm_review, producing structured findings, severity ratings, file/line references, and a verdict.List configured providers, API key status, and auto-detected agent CLIs with
list_providers.Add new API or CLI providers at runtime with
add_provider.Use API providers billed per token, or CLI providers that run on existing subscriptions instead of API credits.
Run locally with in-memory sessions and a 10-minute TTL; no telemetry or persistent data storage by default.
Enables local LLMs to participate in multi-round brainstorming debates, allowing them to critique other models' ideas and refine their own positions within the debate workflow.
Integrates OpenAI models like GPT-4o, o3, and o4 to participate in structured brainstorming debates and serve as synthesizers for final consolidated outputs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@brainstorm-mcp brainstorm the best database architecture for a global fintech app"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
brainstorm-mcp
Ask one model a design question and you get one confident answer, with no signal about which parts it is unsure of. Ask three and the disagreement is the signal.
brainstorm-mcp runs multi-round debates between GPT, Gemini, DeepSeek, Claude and local Ollama models from inside your editor: they see and critique each other's answers across rounds, then you get a 3-bullet synthesis — recommendation, key tradeoffs, strongest disagreement. Also does instant quick mode, multi-model code review with verdicts, and red-team/Socratic styles. Hosted mode needs zero API keys.
Don't trust one AI. Make them argue.
Quick start (60 seconds)
claude mcp add brainstorm -- npx -y brainstorm-mcpThen ask Claude: "Brainstorm using opus, sonnet, and haiku about whether we should use GraphQL or REST."
That runs in hosted mode: no API keys, no provider accounts. The debate uses the models already available in your environment, and you get the 3-bullet synthesis at the end.
Demo

Click to watch: 3 models debate, cross-examine, and produce a structured verdict — all inside Claude Code.
Related MCP server: roundtable-mcp
Features
Hosted mode — No API keys needed. Uses models in your environment (Claude Opus/Sonnet/Haiku) via sub-agents
API mode — Direct model API calls with parallel execution across OpenAI, Gemini, DeepSeek, Groq, Ollama
CLI mode — Debate through agent CLIs you already have (
claude,codex, and more) so debates run on your subscription instead of API creditsbrainstorm_quick — Instant multi-model perspectives in under 10 seconds
brainstorm_review — Multi-model code review with structured findings, severity ratings, and verdicts
Debate styles — Freeform, red-team (adversarial), and Socratic (probing questions)
Context injection — Ground debates in actual code, diffs, or architecture docs
3-bullet synthesis verdicts — Recommendation, Key Tradeoffs, Strongest Disagreement
Claude as participant — Claude debates alongside external models with full conversation context
Multi-round debates — Models see and critique each other's responses across rounds
Parallel execution — All models respond concurrently within each round
Resilient — One model failing doesn't abort the debate
Cross-platform — Works on macOS, Windows, and Linux
Install
The one-line command under Quick start is enough for hosted mode. Add provider keys to bring GPT, Gemini, DeepSeek, Groq or Ollama into the debate; per-client setup follows.
Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"brainstorm": {
"command": "npx",
"args": ["-y", "brainstorm-mcp"],
"env": {
"OPENAI_API_KEY": "sk-...",
"GEMINI_API_KEY": "AIza...",
"DEEPSEEK_API_KEY": "sk-..."
}
}
}
}Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"brainstorm": {
"command": "npx",
"args": ["-y", "brainstorm-mcp"],
"env": {
"OPENAI_API_KEY": "sk-...",
"DEEPSEEK_API_KEY": "sk-..."
}
}
}
}Manual Install
npm install -g brainstorm-mcp
brainstorm-mcpHosted mode requires no API keys — just install and go. The host (Claude Code) executes prompts using its own model access.
Configuration
Option 1: Environment Variables (simplest)
OPENAI_API_KEY=sk-...
GEMINI_API_KEY=AIza...
DEEPSEEK_API_KEY=sk-...Option 2: Config File (full control)
Set BRAINSTORM_CONFIG to point to a JSON config:
{
"providers": {
"openai": { "model": "gpt-6.1-sol", "apiKeyEnv": "OPENAI_API_KEY" },
"gemini": { "model": "gemini-3.8-flash", "apiKeyEnv": "GEMINI_API_KEY" },
"deepseek": { "model": "deepseek-flash", "apiKeyEnv": "DEEPSEEK_API_KEY" },
"ollama": { "model": "llama3.1", "baseURL": "http://localhost:11434/v1" }
}
}Known providers (openai, gemini, deepseek, groq, mistral, together, moonshot,
minimax, glm, qwen, xai) don't need a baseURL, and the ones with a built-in default model
(openai, gemini, deepseek, moonshot, minimax, glm, qwen, xai) don't need a model either.
Use provider:default (e.g. openai:default) to mean a provider's default model.
Env-var detection: OPENAI_API_KEY, GEMINI_API_KEY, DEEPSEEK_API_KEY, MOONSHOT_API_KEY,
MINIMAX_API_KEY, ZAI_API_KEY, DASHSCOPE_API_KEY (Qwen), XAI_API_KEY (Grok; GROK_API_KEY also works). Each also accepts
<PREFIX>_BASE_URL and <PREFIX>_DEFAULT_MODEL.
Provider | Default model |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reasoning models (GPT-5/6, o-series, Kimi K3, Gemini 3, DeepSeek V4, Grok 4+, GLM-5, MiniMax M3,
Qwen 3.5+) are sent the token budget they need and no temperature; inline <think>…</think> blocks
are stripped from replies.
Any model id the provider serves works, including OpenAI's GPT-6 (openai:gpt-6-astra) and the
gpt-5.x reasoning models: brainstorm picks the request shape each model expects and retries with
the other shape if the API rejects it.
Option 3: CLI Providers (use a subscription, not API credits)
If you already pay for Claude Code, Codex, Gemini CLI, and friends, brainstorm can shell out to
those CLIs instead of buying API credits. Any agent CLI found on your PATH is registered
automatically at startup — no configuration needed:
[brainstorm] Detected CLI provider(s) on PATH: claude, codex (subscription-based, no API cost)Use them like any other provider:
{ "topic": "GraphQL vs REST", "models": ["claude:sonnet", "codex:default", "openai:gpt-6.1-sol"] }Built-in adapters:
Provider | Command | Default model | Status |
|
|
| verified |
|
|
| verified |
|
|
| best-effort, verify locally |
|
|
| best-effort |
|
|
| best-effort |
|
|
| best-effort |
|
|
| best-effort |
|
|
| best-effort |
<provider>:default means "let the CLI use whatever model it's configured with". CLI calls run
with tools disabled and a read-only sandbox where the CLI supports it — they generate text, they
don't touch your repo. Provider-specific API key env vars (ANTHROPIC_API_KEY, OPENAI_API_KEY)
are stripped from the child process so the CLI falls back to your subscription login.
Env knobs:
Variable | Effect |
|
|
|
|
| Per-call timeout for CLI providers (default 300000) |
To pin a model or add a CLI that isn't built in, use the config file:
{
"providers": {
"claude": { "type": "cli", "model": "opus" },
"my-cli": {
"type": "cli",
"adapter": "custom",
"command": "some-agent-cli",
"args": ["run", "--model", "{{model}}", "--quiet", "{{prompt}}"],
"promptVia": "arg",
"model": "some-model"
}
}
}Template placeholders: {{model}}, {{system}}, {{prompt}}, {{outfile}}. A lone placeholder
that resolves to nothing drops out of the command line along with the flag introducing it, so
["--model", "{{model}}"] works even for provider:default. Set "promptVia": "stdin" to pipe
the prompt instead of passing it as an argument.
Coding-plan backends through the Claude CLI
Moonshot (Kimi), MiniMax, and Z.ai (GLM) sell coding-plan subscriptions that speak the Anthropic
API. Point the claude binary at one of them and that vendor joins the debate on the plan you
already pay for:
{
"providers": {
"moonshot": { "type": "cli", "backend": "moonshot", "model": "kimi-k3" },
"minimax": { "type": "cli", "backend": "minimax", "model": "MiniMax-M3" },
"glm": { "type": "cli", "backend": "glm", "model": "glm-5.3" }
}
}Backend | Endpoint | Token env var |
|
|
|
|
|
|
|
|
|
The token is read from your environment at call time — the config file holds the variable name,
never the secret. ANTHROPIC_API_KEY is stripped from the child so your Anthropic account is
never billed for these. Any CLI provider also accepts an "env" block to override the backend
manually; a value of "$NAME" indirects through the server's environment.
These vendors are reachable as plain metered APIs too — moonshot, minimax, glm and qwen
have known base URLs, so MOONSHOT_API_KEY alone is enough to register moonshot as an API
provider.
Tools
Tool | Description | Annotation |
| Multi-round debate between AI models (API or hosted mode) | readOnly |
| Instant multi-model perspectives — parallel, no rounds | readOnly |
| Multi-model code review with findings, severity, verdict | readOnly |
| Submit Claude's response in an interactive session | readOnly |
| Submit model responses in a hosted session | readOnly |
| Show configured providers, API key status, and detected CLIs | readOnly |
| Add a new API or CLI provider at runtime | non-destructive |
Usage Examples
Example 1: Quick Multi-Model Perspectives
Prompt: "Use brainstorm_quick to compare Redis vs PostgreSQL for session storage"
Tool called: brainstorm_quick
{ "topic": "Redis vs PostgreSQL for session storage in a Node.js app" }Output: Each configured model responds independently in parallel. You get a side-by-side comparison in under 10 seconds with model names, responses, timing, and cost.
Error handling: If a model fails (rate limit, timeout), the tool continues with remaining models and shows which ones failed.
Example 2: Multi-Model Code Review
Prompt: "Review this diff for security issues" (with a git diff pasted)
Tool called: brainstorm_review
{
"diff": "diff --git a/src/auth.ts ...",
"title": "Add JWT authentication middleware",
"focus": ["security", "correctness"]
}Output: A structured verdict (approve / approve with warnings / needs changes) with a findings table showing severity, category, file, line numbers, and suggestions. Includes model agreement analysis — issues flagged by multiple models have higher confidence.
Error handling: If synthesis fails, raw model reviews are still returned.
Example 3: Hosted Mode Brainstorm (No API Keys)
Prompt: "Brainstorm using opus, sonnet, and haiku about whether we should use GraphQL or REST"
Tool called: brainstorm
{
"topic": "GraphQL vs REST for our public API",
"models": ["opus", "sonnet", "haiku"],
"mode": "hosted",
"rounds": 2,
"style": "redteam"
}Output: The tool returns prompts for each model. The host (Claude Code) spawns sub-agents with different models, collects responses, and feeds them back via brainstorm_collect. After all rounds, a synthesis model produces a 3-bullet verdict: Recommendation, Key Tradeoffs, Strongest Disagreement.
Error handling: Sessions expire after 10 minutes. If a session is not found, a clear error message is returned with instructions to start a new one.
How It Works
API / CLI Mode
You ask Claude to brainstorm a topic
The tool sends the topic to all configured providers in parallel — HTTP for API providers, a spawned subprocess for CLI providers
Claude reads their responses and contributes its own perspective
Models see each other's responses and refine across rounds
A synthesizer produces the final verdict
Hosted Mode
You ask Claude to brainstorm with specific models (e.g., opus, sonnet, haiku)
The tool returns prompts — no API calls are made
Claude spawns sub-agents with different models to execute prompts
Responses are collected and fed back for the next round
Repeat until synthesis
Privacy Policy
brainstorm-mcp runs entirely on your machine and does not collect, store, or transmit any personal data, telemetry, or analytics.
In API mode, prompts are sent directly from your machine to the model providers you configure (OpenAI, Gemini, DeepSeek, etc.) using your own API keys. In CLI mode, prompts are passed to agent CLIs installed on your machine, which talk to their own vendors under your existing subscription. In hosted mode, no external API calls are made.
Debate sessions are stored in-memory only with a 10-minute TTL. No data is written to disk unless you explicitly save results.
Full privacy policy: PRIVACY.md
Support
Email: developer@pranab.co.in
Repository: https://github.com/spranab/brainstorm-mcp
Development
git clone https://github.com/spranab/brainstorm-mcp.git
cd brainstorm-mcp
npm install
npm run build
npm startRelated projects
Other agent infrastructure by the same author, built to be used together:
saga-mcp — SQLite-backed project tracker: once the debate settles, the decision goes somewhere durable.
yantrikdb-mcp — persistent cognitive memory so the agent remembers what you decided and why.
swarmcode — real-time channel between Claude Code instances on different machines.
truenas-mcp — 278 TrueNAS SCALE actions behind one hierarchical tool.
mcpier — self-hosted MCP control plane that keeps API keys off your clients.
License
MIT
Available Tools
7 toolsadd_providerA
Add a new AI provider for brainstorming. Supports any OpenAI-compatible API, or a locally installed agent CLI (kind='cli') that runs on an existing subscription instead of API credits.
Inputs: name (required), defaultModel (required), args, kind, +6 more.
brainstormARead-only
Run a multi-round brainstorming debate between multiple AI models. IMPORTANT: Before calling this tool, you MUST ask the user to choose a mode:
API mode — Calls configured providers. These are either HTTP APIs billed per token (OpenAI, Gemini, DeepSeek, ...) or locally installed agent CLIs such as 'claude' and 'codex', which run on the user's existing subscription at no API cost. Call list_providers to see which of each are available.
Hosted mode — No API keys needed. You execute prompts using sub-agents with models available in your environment (opus/sonnet/haiku, GPT, Gemini, etc.). Same model can be used multiple times — each run produces different perspectives.
Present these two options to the user with a one-liner explanation, then proceed based on their choice.
For API mode: set mode='api'. When participate=true (default), YOU also participate as a debater alongside external models via brainstorm_respond. For Hosted mode: set mode='hosted'. Ask the user which models to use, then spawn sub-agents for each model, collect responses, and call brainstorm_collect.
Inputs: topic (required), mode, style, models, +5 more.
brainstorm_collectARead-only
Submit collected model responses for a hosted brainstorm session. After receiving prompts from brainstorm (mode='hosted') or a previous brainstorm_collect call, execute each prompt by spawning a sub-agent for EACH model (use the model parameter to select the right model, e.g., model='sonnet' or model='haiku'). Collect all responses and submit them here. This tool returns either: (1) the next round's prompt to execute, (2) a synthesis prompt for a single model, or (3) the final formatted debate result when complete.
Inputs: responses (required), session_id (required).
brainstorm_quickARead-only
Get instant multi-model perspectives on any question — no debate rounds, no synthesis delay. Fires all models in parallel and returns a compact comparison. Under 10 seconds. Use this for quick second opinions, snap decisions, or when you want diverse perspectives fast. For deeper analysis with multiple rounds and synthesis, use the brainstorm tool instead.
Inputs: topic (required), style, models, context.
brainstorm_respondARead-only
Submit YOUR (Claude's) response for the current round of an interactive brainstorm session. After the brainstorm tool returns external models' responses, call this tool with your substantive contribution. Read all responses carefully and engage with specific points — agree, disagree, build upon, or challenge ideas. Do not just summarize. After your response, the next round runs automatically (or synthesis if final round).
Inputs: response (required), session_id (required).
brainstorm_reviewARead-only
Multi-model code review. Pass a diff and get structured findings with severity, file/line references, and a verdict (approve / approve with warnings / needs changes). Multiple models review independently, then findings are synthesized and deduplicated. Use this for PR reviews, code audits, or pre-commit checks.
Inputs: diff (required), focus, title, models, +2 more.
list_providersARead-only
List all configured AI providers and their default models for brainstorming. Includes locally installed agent CLIs (claude, codex, ...) which run on an existing subscription instead of metered API credits.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct role: the main brainstorm tool handles debate setup, with dedicated helpers for API (brainstorm_respond) and hosted (brainstorm_collect) modes. Brainstorm_quick is a fast parallel mode, brainstorm_review is code-specific, and list/add_provider manage providers. No overlapping purposes.
All tools follow a consistent snake_case verb_noun pattern. Core brainstorming actions are prefixed with 'brainstorm_', while provider management uses list_providers and add_provider. Naming is predictable and clear.
Seven tools is well-scoped for a brainstorming server. It covers the core debate workflow (main, respond, collect), a quick alternative, a specialized code review mode, and provider management, without unnecessary bloat or missing essentials.
The surface covers the full brainstorming workflow—multi-round debate, quick requests, code review, and provider setup. Minor gaps exist in provider management (no update/delete) and no explicit session management, but these are non-critical and easily worked around.
Maintenance
Related MCP Connectors
Multi-model AI debates: GPT-4o, Claude, Gemini & 200+ models discuss, then synthesize insight.
Convene a panel of expert AI personas to debate any decision from every side.
Join a lab where AI agents from different people debate in turns and refute each other.
Five AI models debate your decision blind, then give one recommendation and the strongest objection.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceOrchestrates multiple AI models (Gemini, OpenAI, Claude, local models) within a single conversation context, enabling collaborative workflows like multi-model code reviews, consensus building, and CLI-to-CLI bridging for specialized tasks.-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude to orchestrate multi-model AI roundtable discussions between GPT-4o, Gemini, Grok, and DeepSeek through independent responses and cross-critique rounds. It supports various discussion presets such as debate, brainstorm, and consensus to facilitate diverse perspectives and synthesis.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to facilitate structured multi-model debates that synthesize multiple perspectives into clear categories like ground truths and blind spots. It provides tools for running real-time debates, checking model health, and managing history via the Model Context Protocol.42 npm1MIT
- AlicenseAqualityDmaintenanceFacilitates structured multi-agent debates with arguments, rebuttals, and judgments across multiple rounds, enabling diverse AI personas to engage in formal debate and collaborative problem-solving.137 npm17MIT