Council MCP
Integrates with the Google Gemini API to send prompts to Gemini models as council members and return their independent answers.
Integrates with Ollama cloud to send prompts to configured Ollama-hosted models as council members, with optional fallback routing.
Integrates with the OpenAI API to send prompts to GPT models as council members and return their independent answers.
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.
Council MCP
An MCP server that puts a question in front of a council of frontier AI models and returns every member's answer.
It is built for agents that run on smaller or local models. When such an agent is stuck, faces a decision that is costly to get wrong, or wants its work reviewed, it calls the council and gets independent answers from several stronger models.
It runs on Cloudflare Workers. You deploy your own copy, with your own API keys.
How it works
An agent calls
ask_councilwith a prompt.The server sends the prompt to every council member at the same time.
Each member answers on its own. Members do not see each other's answers.
The agent gets all the answers back, each under the member's name.
The default council:
Id | Member | Provider | Key needed |
| Claude Fable 5.2 | Anthropic |
|
| GPT-6.2 Astra | OpenAI |
|
| Gemini 4 Neon |
| |
| Kimi K3.1 Pro | Ollama cloud, then Fireworks |
|
You do not need every key. A member whose key is missing is left out, so two keys give you a two-member council.
Related MCP server: any-model-plugin
The tools
Tool | Arguments | Returns |
|
| Every member's answer, or a ticket |
|
| The answers for that ticket, or a note that the council is still working |
Things a calling agent should know. The tool descriptions tell it all of this:
The members see only the prompt. They cannot see the agent's conversation, read files, search the web or ask questions. The prompt has to carry everything they need.
Answers can take minutes.
ask_councilwaits up to 50 seconds. If the council has not finished, it returns a ticket, andcollect_councilfetches the answers when they are ready.A failed member does not sink the call. The other answers still come back, with a note naming who failed and why. A member is dropped after 5 minutes.
There is one round. To have the council review its own answers, the agent sends the answers back in a new
ask_councilcall.Each call costs money. It runs several expensive models at once.
Set it up
You need a Cloudflare account, Node.js 22 or later, and at least one provider API key.
git clone https://github.com/mike-nott/council-mcp.git
cd council-mcp
npm install
npx wrangler login1. Create your access token
Every MCP client must send this token. Generate one and keep it somewhere safe:
echo "council_$(openssl rand 32 | base64 | tr '+/' '-_' | tr -d '=\n')"2. Deploy
npm run deployWrangler creates the D1 database for the cost record on the first deploy. If it asks for a database id instead, run npx wrangler d1 create council and add the database_id it prints to the [[d1_databases]] block in wrangler.toml.
The deploy prints your server's address, which looks like https://council-mcp.<your-subdomain>.workers.dev.
3. Add your secrets
Set the access token, then a key for each provider you want on the council:
echo "<your token>" | npx wrangler secret put MCP_AUTH_TOKEN
echo "<key>" | npx wrangler secret put ANTHROPIC_API_KEY
echo "<key>" | npx wrangler secret put OPENAI_API_KEY
echo "<key>" | npx wrangler secret put GEMINI_API_KEY
echo "<key>" | npx wrangler secret put OLLAMA_API_KEY
echo "<key>" | npx wrangler secret put FIREWORKS_API_KEYSecrets are stored by Cloudflare. They are never written to this repository. .env.example lists each key and where to get it.
4. Connect a client
The MCP endpoint is your server's address plus /mcp. The client must send the token as a bearer token.
Claude Code:
claude mcp add --transport http council https://council-mcp.<your-subdomain>.workers.dev/mcp \
--header "Authorization: Bearer <your token>"Most other clients take a JSON entry like this one. The exact key names vary by client, so check its documentation:
{
"mcpServers": {
"council": {
"type": "http",
"url": "https://council-mcp.<your-subdomain>.workers.dev/mcp",
"headers": { "Authorization": "Bearer <your token>" }
}
}
}Change the council
Everything about the council lives in src/config.ts. Edit it, then run npm run deploy.
A member looks like this:
{
id: 'kimi',
name: 'Kimi K3.1 Pro',
routes: [
{ provider: 'ollama', model: 'kimi-k3.1-pro', price: { input: 2, cachedInput: 0.2, output: 10 } },
{
provider: 'fireworks',
model: 'accounts/fireworks/models/kimi-k3p1-pro',
price: { input: 2, cachedInput: 0.2, output: 10 }
}
]
}idis what a caller passes inmembersto pick this member.nameis the heading above the member's answer.routesare the ways to reach the model, tried in order. The second route is used only if the first fails. One route is enough.provideris one ofanthropic,openai,google,ollamaorfireworks. Each reads its key from the secret named in the table above.modelis the model id that provider uses.priceis in US dollars per million tokens. It is used only for the cost record, so update it when you change a model.priceChangesholds announced changes with their start dates.options(optional) are extra provider settings, such as{ effort: 'high' }on Anthropic or{ reasoningEffort: 'high' }on OpenAI. With no options, each model uses its own default thinking level.
To swap a model, change model and price. To add a member, add an entry. To remove one, delete its entry.
The same file holds three timings:
Setting | Default | Meaning |
| 50 | How long a tool call waits before returning a ticket |
| 300 | How long a member has to answer |
| 3600 | How long uncollected answers are kept |
Many MCP clients give up on a tool call after about a minute, which is why the wait is 50 seconds. If your client waits longer, raise it.
To add a provider that is not in the list, add it to Provider in src/config.ts and to the three maps at the top of src/models.ts. A provider with an OpenAI-compatible API needs only its base URL.
The cost record
Every model call writes one row to a D1 table: the time, member, provider, model, token counts, cost, duration and any error.
npm run costs # calls, tokens and cost per member per day
npm run errors # the 50 most recent failuresCosts are worked out from the prices in src/config.ts, so they are estimates. Your providers' own billing pages are the final word.
What is stored
Prompts are sent to each provider and are never stored by this server.
Answers are held only until the caller has received them. Answers waiting on a ticket are deleted once collected, or after one hour if nobody collects them.
The cost record holds no prompt or answer text.
Your prompts do go to each model provider, under that provider's own data terms.
Run it locally
cp .env.example .dev.vars # then fill in the values
npm run dev # serves http://localhost:8787/mcp
npm test
npm run typecheck.dev.vars and .env are git-ignored. Local runs call the real model providers and cost real money.
A quick check that the server is up:
curl -s http://localhost:8787/mcp \
-H "Authorization: Bearer <your token>" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'How it is built
src/index.tsis the Worker. It checks the token and speaks MCP over HTTP, with no MCP SDK.src/session.tsis a Durable Object, one per council call. It keeps the model calls running after the first tool call has returned a ticket, and holds the answers until they are collected.src/models.tscalls the models through the AI SDK.src/record.tswrites the cost record.
If the server is redeployed while a council is running, the members that had not finished are reported as failed. Nothing is retried.
Licence
MIT. See LICENSE.
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
Commission a multi-model AI spec committee from your agent; get rubric-scored, build-ready specs.
A second opinion for AI agents: one prompt across several live Gonka models + roles, one call.
AI model routing on your own vendor keys: pick the best model per prompt, or route and run it.
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables multi-LLM deliberation via a council of panel members, judges responses for consensus and contradictions, and returns analysis to the calling model.34MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to delegate tasks, run adversarial reviews, and manage background jobs across multiple models and providers via anymodel_* tools.Apache 2.0
- 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.15 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables LLM hosts to delegate, fan out, and panel tasks across Claude Code, Codex, Grok, and OpenAI-compatible workers, with optional write access controlled by server flags.Apache 2.0