Skip to main content

LLM Council MCP Server

Multi-LLM deliberation with anonymized peer review -- as an MCP tool.

PyPI License: MIT

Quick Start

1. Install

uvx llm-deliberate-mcp
# or
pip install llm-deliberate-mcp

2. Get an API Key

Get an OpenRouter API key (provides access to all major LLM providers).

3. Add to Your MCP Client

{
  "mcpServers": {
    "llm-deliberate": {
      "command": "uvx",
      "args": ["llm-deliberate-mcp"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-..."
      }
    }
  }
}

How It Works

User Question
    |
    v
Stage 1: 4 LLMs answer independently (parallel)
    |
    v
Stage 2: Models peer-review anonymized responses
    |       (Response A, B, C, D -- no model names)
    v
Stage 3: Chairman synthesizes the best final answer
    |
    v
Final Answer + Metrics + Rankings

When Deliberation Helps (and When It Doesn't)

Works best for:

  • Architecture decisions with genuine tradeoffs
  • Complex problems requiring multiple perspectives
  • Code review and design critique
  • Strategic planning and risk assessment
  • Security review of authentication flows

Works poorly for:

  • Simple factual questions (use a single model)
  • Calculations and data lookups (use a single model)
  • Tasks under time pressure (30-90 sec overhead)
  • Repetitive/routine tasks

Honesty note: Research (DeliberationBench, Jan 2026) shows that for simple QA tasks, a single strong model outperforms multi-model deliberation. LLM Council is designed for complex decisions where multiple perspectives add genuine value.

Configuration

  • OPENROUTER_API_KEY (required)
  • COUNCIL_MODELS (optional, comma-separated)
  • CHAIRMAN_MODEL (optional)
  • COUNCIL_TIMEOUT (optional, seconds)
  • COUNCIL_MAX_TOKENS (optional)

Client Configuration Examples

Claude Desktop

{
  "mcpServers": {
    "llm-deliberate": {
      "command": "uvx",
      "args": ["llm-deliberate-mcp"],
      "env": {"OPENROUTER_API_KEY": "sk-or-v1-your-key-here"}
    }
  }
}

Claude Code

{
  "mcpServers": {
    "llm-deliberate": {
      "command": "uvx",
      "args": ["llm-deliberate-mcp"],
      "env": {"OPENROUTER_API_KEY": "sk-or-v1-your-key-here"}
    }
  }
}

Cursor

{
  "mcpServers": {
    "llm-deliberate": {
      "command": "uvx",
      "args": ["llm-deliberate-mcp"],
      "env": {"OPENROUTER_API_KEY": "sk-or-v1-your-key-here"}
    }
  }
}

Generic MCP client (Python)

import asyncio
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client

async def main():
    server_params = StdioServerParameters(
        command="uvx",
        args=["llm-deliberate-mcp"],
        env={"OPENROUTER_API_KEY": "sk-or-v1-your-key-here"},
    )

    async with stdio_client(server_params) as (read, write):
        async with ClientSession(read, write) as session:
            await session.initialize()
            result = await session.call_tool(
                "council_deliberate",
                arguments={"prompt": "Should we use microservices or a monolith?"},
            )
            print(result)

asyncio.run(main())

API Reference

  • council_deliberate(prompt, models=None, chairman=None, depth="standard", contract_stack=None)
  • council_status()
  • council_configure(stage1_models=None, stage2_models=None, chairman_model=None, timeout_seconds=None)

Cost Transparency

Each deliberation uses roughly 10-15 API calls and typically costs about $0.03-$0.15 depending on model mix and prompt length. Responses include cost_estimate_usd.

Self-Learning

Deliberation metadata is stored locally in ~/.llm-council/deliberations.db for pattern learning. No learning data is sent externally.

Metadata

Release files for llm-deliberate-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-deliberate-mcp 0.1.0
File Size Uploaded Provenance
llm_deliberate_mcp-0.1.0.tar.gz 21.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-deliberate-mcp 0.1.0
File Interpreter ABI Platform
llm_deliberate_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 47.3 kB

Release files / llm_deliberate_mcp-0.1.0.tar.gz

Download URL llm_deliberate_mcp-0.1.0.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ee9085afeee66ac431448f23c1f0e3279fccb4b14afab1d426d28e9227969246
BLAKE2b-256 checksum
How to use checksums
b06441a97468e2e0c7f969ae83f05769002c0b0a9ca4421b56c25b9ff0e894ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 18, 2026.

Transparency log

Release files / llm_deliberate_mcp-0.1.0-py3-none-any.whl

Download URL llm_deliberate_mcp-0.1.0-py3-none-any.whl
Size 25.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d3746435e9434716984d3551482b1ee471c29f5537950325e4cad6675db8378
BLAKE2b-256 checksum
How to use checksums
a2b25429dda2de8cf87f7a70bb819b1f8574a6132acc4fe6fecb7b03dbeae43b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 18, 2026.

Transparency log

Security for llm-deliberate-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for llm_deliberate_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page