divergent-mcp
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., "@divergent-mcp brainstorm 10 novel ways to make a neighborhood library more used"
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.
divergent-mcp
Divergent ideation over OpenRouter: ask for N ideas on a topic and get a set drawn from many model families, each pushed off its default answer by a different creative lens, then deduplicated and selected for both novelty and usefulness.
It ships as a CLI (divergent) and a stdio MCP server (divergent-mcp).
Why
One prompt to one model returns that model's most likely ideas. Asking again, or asking for more, mostly returns variations on them. This tool widens the search in three ways and then narrows it without averaging the interesting ideas away:
Many models. Calls fan out in parallel across families (Anthropic, Google, OpenAI, DeepSeek, Qwen, Mistral, Llama, GLM, Cohere, Grok). Different training data gives different defaults.
Many lenses. Each call gets a different prompt strategy and jittered sampling settings (temperature, top_p, presence and frequency penalties), in small batches.
Selection that protects wildcards. Ideas are clustered, scored for novelty and utility separately, and a share of the output is reserved for the most novel ideas that clear a low utility bar.
Related MCP server: council
Install
Needs Python 3.10+ and uv.
git clone https://github.com/garland3/divergent-mcp.git
cd divergent-mcp
uv sync
export OPENROUTER_API_KEY=... # never put the key in a file in this repoCLI
uv run divergent ideas "ways to make a neighborhood library more used"
uv run divergent ideas "names for a sourdough bakery" -n 12 --spice 3 --budget medium
uv run divergent ideas "onboarding for a CLI tool" -c "no network access" -c "under 5 minutes"
uv run divergent ideas "reduce meeting load" --json --trace > run.json
uv run divergent plan "reduce meeting load" -n 10 -b high # free: shows the planned calls
uv run divergent models -b medium # the model pool right now
uv run divergent strategies # the lensesOption | Meaning |
| Ideas to return, 1-30 (default 8) |
| 0 conventional, 1 mild, 2 adventurous (default), 3 wild |
|
|
| A requirement every idea must satisfy; repeatable |
| Background text for the models |
| Use these OpenRouter model ids instead of the pool; repeatable |
| Restrict to these lenses; repeatable |
| Seed for the plan (model/lens pairing, sampling jitter) |
| Hard cap on generation calls |
| Skip LLM judging; novelty is structural only, utility unknown |
| Lexical dedup only |
| Overall time limit in seconds (default 90) |
| Full result as JSON; add one record per model call |
Output marks each idea * wildcard, + solid, or balanced, with novelty and utility
from 0 to 1 and the model and lens that produced it. The last line reports calls, model
families, raw and unique idea counts, cost and time.
A low run for 8 ideas makes 6 generation calls, one embeddings call and one judge
call, takes roughly 15-25 seconds and costs about one cent. medium and high use
premium models, take 30-60 seconds and cost around five cents for 8 ideas, more as n
grows. The reported cost covers completed calls only; a call cancelled for being too slow
may still be billed by the provider.
MCP server
uv run divergent-mcp --stdio # serve (stdio is the default)
uv run divergent-mcp --list-toolsTool | What it does |
| Run the pipeline. Arguments: |
| Preview the calls a run would make. Spends nothing, needs no key |
| The lenses, their weight at each spice level, and the budget profiles |
| The model pool a budget resolves to right now, with prices |
Client configuration (the key comes from the client's environment):
{
"mcpServers": {
"divergent": {
"command": "/path/to/divergent-mcp/.venv/bin/divergent-mcp",
"args": ["--stdio"],
"env": { "OPENROUTER_API_KEY": "${OPENROUTER_API_KEY}" }
}
}
}The topic, context and constraints are sent to external model providers through OpenRouter. Do not use it for text that must stay private.
How it works
plan -> fan out -> dedup -> judge -> score -> selectPlan. The budget sets the number of calls and the batch size, oversampling the request 3-5x. Calls are spread over a shuffled pool with one model per family, and over lenses in proportion to their weight at the chosen spice level.
Lenses.
Lens | The push |
| None: the model's own best ideas. Dominant at spice 0, absent at spice 3 |
| Sample from the tails: each idea must have a stated probability below a threshold (0.30 down to 0.05 with spice) |
| A random constraint that rules out the usual solutions |
| Reverse the assumption everyone makes, or design the worst idea and flip it |
| Answer as an expert from an unrelated field, using that field's mechanisms |
| Imagine the idea as a patent claim, a recall notice, a recipe, then distil it |
| Map the working structure of an unrelated thing onto the topic |
| Change size, speed, audience or budget by orders of magnitude |
Fan out. All calls run concurrently. Sampling parameters are fitted to what each model accepts according to the OpenRouter catalogue, and reasoning is turned down as far as each model allows (left at default, some small models spend the whole token budget thinking). A call rejected with HTTP 400 is retried at low reasoning effort, then as a plain request. After 25 to 45 seconds, depending on budget, the run stops waiting once 60% of calls are back, so one slow model does not hold it. Replies are parsed forgivingly: code fences, surrounding prose and partly broken JSON are all handled.
Dedup. Ideas are embedded through OpenRouter and compared by cosine after
subtracting the pool mean, which removes what all ideas share because they are about the
same topic. Ideas above the threshold join one cluster. If embeddings fail, a built-in
TF-IDF comparison is used instead. How many separate calls produced a cluster is kept as
support.
Judge. One or two judge models from different families rate each unique idea for novelty and utility on separate 1-10 scales, with instructions not to let one leak into the other.
Score. Novelty blends the judge rating (55%) with two structural signals: how isolated the idea is from its nearest neighbours in the pool, and how few independent calls arrived at it. Utility is the judge rating.
Select. A spice-dependent share of the slots (10% to 50%) goes to the most novel ideas whose utility clears a low floor: these are the wildcards. The remaining slots are filled by a geometric blend of novelty and utility. Both passes penalise similarity to ideas already chosen. A single blended score would let well-rounded ideas crowd out strange ones; reserving slots is what keeps them.
Every stage degrades rather than fails: no catalogue means the built-in model list is
used unchecked, no embeddings means lexical dedup, no judge means structural novelty with
utility reported as unknown. The result's warnings say which of these happened.
Configuration
Variable | Purpose |
| Required to generate. Read from the environment only |
| Comma-separated model ids that replace the default pool |
| Embedding model (default |
| Duplicate threshold on centred embedding cosine (default 0.40); retune if you change the embedding model |
| Overall time limit per run in seconds (default 90) |
| API base (default |
Model ids on OpenRouter change often. The preferred ids live in
src/divergent_mcp/models.py; when one disappears from the catalogue, the newest
general-purpose model from the same vendor within the tier's price cap is used instead.
Development
uv sync --extra dev
uv run pytest -q # 52 tests against a fake OpenRouter; no network, no key
uv run ruff check .
# Optional live smoke test, well under one cent:
DIVERGENT_LIVE=1 OPENROUTER_API_KEY=... uv run pytest -m live -qLicense
MIT
Available Tools
4 toolsgenerate_ideasB
Brainstorm n distinct ideas on a topic using many models and creative lenses in parallel.
Returns ranked ideas, each with a title, the idea, its twist, a kind (wildcard, balanced or solid), novelty and utility scores from 0 to 1, and which models and lenses produced it, plus run statistics including cost. Show wildcards to the user as such: they are kept for their novelty, not their safety.
Inputs: topic (required), n, seed, spice, +6 more. Returns: object
list_modelsA
Show the model pool a budget resolves to right now, one model per family, with prices.
Inputs: budget, refresh. Returns: object
list_strategiesB
List the creative lenses, how each is weighted at every spice level, and the budgets.
Inputs: no named parameters. Returns: object
plan_ideationA
Preview what generate_ideas would do, without calling any model or spending credit.
Returns the planned calls (model, lens, lens detail, sampling settings), the judges and the resolved model pool with prices.
Inputs: topic (required), n, seed, spice, +4 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct role: generate_ideas executes, plan_ideation is an explicit dry-run preview, list_strategies exposes lenses/budgets, and list_models exposes the model pool. The dry-run vs. execute pair is the only potential confusion, but descriptions make the distinction explicit ('without calling any model or spending credit').
All four tools follow a clean verb_noun snake_case pattern: generate_ideas, plan_ideation, list_strategies, list_models. Two 'list_' tools and two action tools with no stylistic drift.
Four tools is small but well-matched to a focused idea-generation service, and each earns its place (execute, preview, inspect lenses, inspect models). It sits just under the typical 3-15 sweet spot in spirit but nothing feels missing or padded.
The core workflow is covered end-to-end: preview cost/plan, discover strategies and models, then generate ranked ideas. Minor gaps exist — no way to deepen/refine a chosen idea, retrieve past runs, or save/export results — but agents can work around these within a session.
Maintenance
Related MCP Connectors
Creative ideation session, delivered per API call as an atom service on Conduit Atoms.
Commission a multi-model AI spec committee from your agent; get rubric-scored, build-ready specs.
Generate images, videos and music with model discovery, cost estimates and asynchronous results.
Put a decision to a council of top AI models and get one brief: verdict, splits, risks, next steps.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables multi-round brainstorming debates between multiple AI models like GPT, DeepSeek, and Ollama to produce synthesized final outputs. Users can orchestrate parallel model interactions where AI agents critique and refine each other's ideas to reach a consolidated conclusion.7160 npm74MIT
- AlicenseNot gradedqualityDmaintenanceEnables calling multiple AI models in parallel and synthesizing their drafts into a single stronger answer through any OpenAI-compatible endpoint.MIT
- AlicenseNot gradedqualityBmaintenanceEnables orchestrating a panel of frontier AI models that independently propose, critique, revise, and converge on a single agreed answer to a problem, using existing vendor subscriptions or API keys.20 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables users to map the clichéd answers LLMs give to a prompt, generate and remix ideas away from them using structured creativity techniques, and measure originality and usefulness with embedding-based scoring and web-prevalence checks.162 npm1MIT