SuperAPIAI Directory

brainstorm-mcp

github.com · AI developer platforms

Multi-round brainstorming debates between LLMs (GPT, Gemini, DeepSeek, Groq, Ollama and more) to explore ideas from diverse perspectives.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

Purpose

The core idea of brainstorm-mcp is this: ask a single model a design question, and you'll get only one confident answer with no signal of uncertainty; but ask three models, and the disagreement among them is itself a signal. This tool runs multiple rounds of debate inside your editor, letting GPT, Gemini, DeepSeek, Claude, and local Ollama models view and critique each other's answers, and finally returns a synthesis with 3 key points.

Main capabilities

  • Multi-round debate: Each model sees and critiques the others' answers across rounds.
  • 3-point synthesis verdict: Recommended approach, key trade-offs, strongest disagreement.
  • Parallel execution: All models respond simultaneously within each round.
  • Fault tolerance: A single model failure does not interrupt the entire debate.
  • Debate styles: Free-form, red team (adversarial), Socratic (question-based).
  • Context injection: The debate can be grounded in actual code, diffs, or architecture documents.
  • Claude as a participant: Claude can debate alongside external models and has the full conversation context.
  • brainstorm_quick: Get an instant multi-model perspective in 10 seconds.
  • brainstorm_review: Multi-model code review with structured findings, severity ratings, and a verdict.
  • Cross-platform: Supports macOS, Windows, and Linux.

How to use

Three run modes

  • Hosted mode: No API keys required. Uses the models already available in your environment (Claude Opus/Sonnet/Haiku) via subagents.
  • API mode: Calls model APIs directly, executing in parallel on OpenAI, Gemini, DeepSeek, Groq, and Ollama.
  • CLI mode: Debates through the agent CLIs you already have (claude, codex, etc.), thereby using your subscription rather than API credits.

Quick start

After installation, you can directly ask Claude: "Brainstorm using opus, sonnet, and haiku about whether we should use GraphQL or REST." This runs in hosted mode: no API keys, no vendor accounts, the debate uses the models already available in your environment, and you end up with a 3-point synthesis.

Configuration

  • Add to your project's .mcp.json or claude_desktop_config.json.
  • Hosted mode requires no API keys and works right after installation; the host (Claude Code) uses its own model access to execute the prompts.
  • Option 1: Environment variables (simplest): Known providers require no baseURL, and some providers with built-in default models also require no model to be specified. You can use provider:default to indicate a provider's default model. Environment variable detection includes 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.
  • Option 2: Configuration file (full control): Set BRAINSTORM_CONFIG to point to a JSON configuration.
  • Option 3: CLI providers (use your subscription instead of API credits): Any agent CLI found on PATH is automatically registered at startup with no configuration needed. Built-in adapters are supported;<provider>:default means letting the CLI use its already-configured model. CLI invocations run in a read-only sandbox with tools disabled, producing only text and never touching your repository. Provider-specific API key environment variables (ANTHROPIC_API_KEY, OPENAI_API_KEY) are stripped from the child process so the CLI falls back to your subscription login. You can pin models or add non-built-in CLIs via the configuration file; template placeholders include {{model}}、{{system}}、{{prompt}}、{{outfile}}. Setting "promptVia": "stdin" Can be passed a prompt through a pipe rather than as an argument.
  • 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 required token budget without temperature; inline in the reply <think>…</think> blocks are stripped. Any model id provided by a vendor can be used. brainstorm picks the request shape each model expects and retries with another shape when the API rejects it.

Usage examples

  • Example 1: Quick multi-model perspective: prompt "Use brainstorm_quick to compare Redis vs PostgreSQL for session storage". Call the brainstorm_quick tool. Each configured model responds independently in parallel, and within 10 seconds you get a side-by-side comparison including model name, response, elapsed time, and cost. If a model fails (rate limiting, timeout), the tool continues with the remaining models and shows which ones failed.
  • Example 2: Multi-model code review: prompt "Review this diff for security issues" (paste the git diff). Call the brainstorm_review tool. Output a structured verdict (approve / approve with warnings / needs changes), with a findings table: severity, category, file, line number, and suggested fix. Includes model agreement analysis—issues flagged by multiple models have higher confidence. If synthesis fails, still return the raw model reviews.
  • Example 3: Hosted-mode brainstorming (no API key): prompt "Brainstorm using opus, sonnet, and haiku about whether we should use GraphQL or REST". Call the brainstorm tool. The tool returns a prompt for each model; the host (Claude Code) spawns multiple subagents with different models, collects the responses, and feeds them back through brainstorm_collect. After all rounds finish, the synthesis model produces a 3-point verdict: recommended approach, key trade-offs, strongest disagreement. The session expires after 10 minutes; if no session is found, return a clear error message and prompt to create a new one.

Workflow

API/CLI mode: you ask Claude to brainstorm a topic → the tool sends the topic in parallel to all configured vendors (API vendors go over HTTP, CLI vendors spawn subprocesses) → Claude reads the responses and contributes its own view → the models see each other's responses andCross-round refinement → synthesizer produces the final verdict. Hosted mode: You have Claude brainstorm with a specified model (e.g., opus, sonnet, haiku) → the tool returns prompts without making API calls → Claude spawns multiple subagents with different models to execute the prompts → responses are collected and fed back for the next round → repeat until synthesis.

Use cases

  • Design/architecture decisions (e.g., GraphQL vs. REST trade-offs).
  • Brainstorming that requires multi-perspective checks and balances.
  • Multi-model code review, especially security review.
  • Adversarial (red team) or Socratic inquiry.
  • Users with paid CLI subscriptions who want to reuse their subscription instead of API credits.

Limitations and privacy

  • Runs entirely on your machine; no personal data, telemetry, or analytics are collected, stored, or transmitted.
  • In API mode, prompts are sent directly from your machine to your configured model provider (OpenAI, Gemini, DeepSeek, etc.) using your own API key. In CLI mode, prompts are passed to locally installed agent CLIs, which communicate with their respective providers under your existing subscription. In hosted mode, no external API calls are made.
  • Debate sessions exist only in memory with a 10-minute TTL. Nothing is written to disk unless you explicitly save the results.
  • See PRIVACY.md for the full privacy policy.

Related projects

Other agent infrastructure by the same author, designed to work together: saga-mcp (SQLite-based project tracker), yantrikdb-mcp (persistent cognitive memory), swarmcode (real-time channel between Claude Code instances on different machines), truenas-mcp (278 TrueNAS SCALE operations wrapped behind a layered tool), mcpier (self-hosted MCP control plane that keeps API keys away from clients).

Issue feedback:https://github.com/spranab/brainstorm-mcp/issues ; email: developer@pranab.co.in ; repository:https://github.com/spranab/brainstorm-mcp 。

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools