
Brainstorm Mcp
io.github.spranab由 GitHub 帳號 spranab 發布v1.8.0更新於 Oct 24, 2026
Multi-model AI brainstorming debates with code review and quick perspectives
概覽
一個本機 MCP 伺服器,讓多個 AI 模型進行多輪辯論並給出簡短綜合結論,另提供快速多模型觀點與程式碼審查。
- 可以做什麼
- 在多個模型之間進行多輪辯論,支援自由、紅隊或蘇格拉底式風格,可注入程式碼或 diff 作為脈絡,最後給出建議、關鍵取捨與最大分歧三點結論。平行取得多個模型的即時觀點,不進行多輪。進行多模型程式碼審查,輸出問題、嚴重程度與通過或需修改的結論。把 Claude 自己的回答與託管工作階段中的模型回答回填到辯論中。列出已設定的提供者與偵測到的代理 CLI,並可在執行時新增提供者。
- 適用情境
- 適合在單一模型的回答顯得過度自信、希望把分歧當作訊號時使用,也適合架構或設計決策,以及從多個角度審查程式碼變更。若只想使用目前環境中既有的模型,託管模式不需要任何 API 金鑰。
- 執行需求
- 透過 npx 或全域 npm 安裝後在本機執行(需要 Node.js)。託管模式不需要金鑰。API 模式需要提供者金鑰,例如 OPENAI_API_KEY、GEMINI_API_KEY 或 DEEPSEEK_API_KEY 等,透過環境變數或 BRAINSTORM_CONFIG 指向的設定檔設定。CLI 模式使用 PATH 中偵測到的代理 CLI。使用 API 提供者需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Brainstorm Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
brainstorm-mcp
[npm] [npm downloads] [license] [IdeaCred] [Product Hunt]
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)
Then 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.
[brainstorm-mcp — Claude Opus vs GPT-5.4 vs DeepSeek debating]
Demo
Click to watch: 3 models debate, cross-examine, and produce a structured verdict — all inside Claude Code.
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 credits - brainstorm_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:
Claude Desktop
Add to claude_desktop_config.json:
Manual Install
Hosted 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)
Option 2: Config File (full control)
Set BRAINSTORM_CONFIG to point to a JSON config:
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.
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:
Use them like any other provider:
Built-in adapters:
<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:
To pin a model or add a CLI that isn't built in, use the config file:
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:
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
Usage Examples
Example 1: Quick Multi-Model Perspectives
Prompt: "Use brainstorm_quick to compare Redis vs PostgreSQL for session storage"
Tool called: brainstorm_quick
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
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
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
- Issues: https://github.com/spranab/brainstorm-mcp/issues
- Email: [email protected]
- Repository: https://github.com/spranab/brainstorm-mcp
Development
Related 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
來源:README.md,提交 0c12976
工具
0版本歷史
3- v1.8.0最新Sep 30, 2026
- v1.7.0Sep 26, 2026
- v1.5.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分