nan-council
Allows adding Google Gemini models to the council and querying them in parallel for answers, votes, and debates.
Allows adding local Ollama models to the council and querying them in parallel for answers, votes, and debates without API keys.
Allows adding OpenAI GPT models to the council and querying them in parallel for answers, votes, and debates.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
nan-council
Multi-AI council — run multiple AI models in parallel, compare, vote, debate.
Send one question, get answers from GPT-4o, Claude, Llama, Gemini, and more simultaneously. See where they agree, where they disagree, and make better decisions.
Install
npm install -g nan-councilOr use directly:
npx nan-councilRelated MCP server: OpenRouter MCP
Quick Start
1. Add models to your council
# Add cloud models (need API keys)
nan-council add gpt-4o # uses $OPENAI_API_KEY
nan-council add claude # uses $ANTHROPIC_API_KEY
nan-council add gemini # uses $GOOGLE_API_KEY
# Add local models (free, no API key)
nan-council add llama3 # needs Ollama running
nan-council add deepseek # needs Ollama running
# Add fast inference
nan-council add groq # uses $GROQ_API_KEYModels are saved permanently to ~/.nan-council/config.json — add once, never again.
2. Ask the council
nan-council ask "What's the best way to handle auth in a Node.js API?"All configured models answer in parallel. You see side-by-side responses with agreement analysis.
3. Vote on decisions
nan-council vote "Should we use PostgreSQL or MongoDB?" --options "PostgreSQL,MongoDB"Each model votes with confidence scores and reasoning.
MCP Server (for Claude Code / AI clients)
nan-council works as an MCP server. Add it to your Claude Code config:
{
"mcpServers": {
"nan-council": {
"command": "npx",
"args": ["-y", "nan-council", "serve"]
}
}
}Then just tell Claude:
"Add GPT-4o to my council"
"Ask the council about the best database for this project"
"Have the council vote on SQL vs NoSQL"
"Run a debate on monolith vs microservices"
The LLM figures out the provider, model, and API key automatically.
MCP Tools
Tool | Description |
| Add a model (persists permanently) |
| Remove a model |
| List configured models |
| Ask all models in parallel |
| Structured voting with confidence |
| Multi-round debate |
| Check provider availability |
CLI Commands
nan-council init # Setup wizard
nan-council add <model> # Add a model
nan-council remove <model> # Remove a model
nan-council list # List configured models
nan-council ask "question" # Ask the council
nan-council vote "question" # Structured vote
nan-council models # List all known models
nan-council health # Check provider health
nan-council serve # Start MCP serverSupported Providers
Provider | Models | API Key Env | Cost |
OpenAI | gpt-4o, gpt-4o-mini, o1, o3-mini |
| Paid |
Anthropic | claude-sonnet-4, claude-opus-4, claude-haiku-4.5 |
| Paid |
gemini-2.0-flash, gemini-1.5-pro |
| Paid | |
Mistral | mistral-large, mistral-small |
| Paid |
Groq | llama-3.1-70b, mixtral-8x7b |
| Paid (cheap) |
Ollama | llama3, mistral, phi3, qwen2.5, deepseek | None (local) | Free |
Don't have any API keys?
Use Ollama — it's free and runs locally:
# Install Ollama: https://ollama.ai
ollama pull llama3.1
ollama pull mistral
nan-council add llama3
nan-council add mistral-local
nan-council ask "Your question here"Adding custom providers
Drop a .js file in ~/.nan-council/providers/:
// ~/.nan-council/providers/my-custom.js
module.exports = {
name: 'my-custom',
displayName: 'My Custom LLM',
capabilities: ['streaming'],
models: [{ id: 'custom-v1', contextWindow: 4096 }],
create(config) {
return {
async *stream(req) { /* yield { text, done } */ },
async complete(req) { /* return ProviderResponse */ },
async healthCheck() { return { ok: true, latencyMs: 0 }; },
estimateCost() { return 0; },
};
}
};nan-forget Integration
If you have nan-forget installed, nan-council automatically:
Searches prior decisions for relevant context before prompting
Saves council decisions to long-term memory (provenance:
debate, 0.85 confidence)Tracks model reliability over time
No configuration needed — nan-council detects nan-forget automatically.
How Consensus Works
Agreement Detection (automatic with ask)
Extracts key phrases from each response, computes overlap similarity, and classifies as:
Unanimous (>50% overlap)
Strong (>30% overlap)
Partial (>15% overlap)
Split (<15% overlap)
Structured Voting (with vote)
Each model votes in JSON format with confidence (1-10) and reasoning. Winner determined by vote count, tie-broken by average confidence.
Multi-Round Debate (with debate)
Models see each other's responses across rounds and can rebut. A synthesizer model combines all perspectives at the end.
Config
Config is stored at ~/.nan-council/config.json:
{
"providers": [
{ "name": "openai", "model": "gpt-4o", "apiKey": "$OPENAI_API_KEY" },
{ "name": "claude", "model": "claude-sonnet-4-20250514", "apiKey": "$ANTHROPIC_API_KEY" },
{ "name": "ollama", "model": "llama3.1", "baseUrl": "http://localhost:11434" }
],
"defaults": {
"council": ["openai", "claude", "ollama"],
"timeout": 60000,
"maxConcurrent": 10
}
}API keys use $ENV_VAR syntax — the actual key is read from your environment at runtime.
Programmatic API
import { runCouncil, detectAgreement } from 'nan-council';
const result = await runCouncil({
prompt: 'What database should I use?',
models: ['gpt-4o', 'claude'],
});
const agreement = detectAgreement(result.responses);
console.log(agreement.summary);License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect MCP clients to 2,000+ AI models without managing provider API keys.
AI model routing on your own vendor keys: pick the best model per prompt, or route and run it.
ModelsLab v8 generation APIs: discover models, providers and endpoints, then run them.
Discover, compare, route, and execute machine-accessible capabilities for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceLets MCP clients route prompts and tasks to user-selected AI providers and models for coding, reasoning, planning, agentic analysis, image generation, and deep research, with configurable fallback order.-
- FlicenseNot gradedqualityCmaintenanceEnables chatting with AI models, listing and filtering models, retrieving model details and credit balance, and checking generation costs and provider statistics.-
- AlicenseNot gradedqualityAmaintenanceEnables supported AI clients to discover, inspect, and run over 2,000 models and APIs, with OAuth authorization, cost visibility, and rollback support.556,724 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to send chat requests to free frontier models through automatic provider cascading, manage provider connections and free-model catalog listings, and inspect live session, egress-lane, and provider health without choosing providers directly.0-