LLM Council MCP
OfficialClick on "Install 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., "@LLM Council MCPGet a second opinion from Gemini on this architecture decision."
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.
LLM Council MCP
An MCP server that lets Claude Code consult external LLMs (GPT, Gemini) through multi-turn sessions. Get a second opinion, run parallel consultations, or do web-grounded research — all without leaving your Claude Code workflow.
Why?
Claude Code is powerful, but sometimes you want to:
Get a second opinion on architecture decisions from GPT or Gemini
Cross-reference answers by asking multiple models the same question
Web-grounded research using Gemini's Google Search or OpenAI's web search
Multi-turn conversations with external models while Claude orchestrates
This MCP server makes all of that possible with a simple tool interface.
Related MCP server: Senior Consult MCP
Tools
Tool | Description |
| Multi-turn chat with an external LLM. Auto-creates sessions. |
| Web-grounded research via LLM + live search. Stateless. |
| Inject context (files, docs) into a session without an LLM call. |
| List all active sessions with usage stats. |
| Delete a session and its history. |
| Clear conversation history, keep session config. |
Supported Providers
Provider | Default Model | Features |
OpenAI |
| Reasoning (low/medium effort), web search |
Gemini |
| Thinking levels, Google Search grounding |
Quick Start
1. Get API Keys
You need at least one:
OpenAI: platform.openai.com/api-keys
Gemini: aistudio.google.com/apikey
2. Add to Claude Code
Add this to your .mcp.json (in your home directory or project root):
{
"mcpServers": {
"llm-council": {
"command": "uvx",
"args": ["llm-council-mcp"],
"env": {
"OPENAI_API_KEY": "sk-...",
"GEMINI_API_KEY": "AI..."
}
}
}
}Alternative — install locally with uv:
{
"mcpServers": {
"llm-council": {
"command": "uv",
"args": ["--directory", "/path/to/llm-council-mcp", "run", "python", "-m", "llm_council_mcp"],
"env": {
"OPENAI_API_KEY": "sk-...",
"GEMINI_API_KEY": "AI..."
}
}
}
}3. Restart Claude Code
Claude Code will pick up the new MCP server on restart. You should see llm-council tools available.
Usage Patterns
Dispatching: Agent Teams or Background Subagents
Council tools are blocking calls (10-30s per response). Never call them from the main conversation. Two dispatch patterns:
Agent Teams (preferred in Claude Code): Use TeamCreate with one teammate per provider. Teammates can send real-time status updates via SendMessage -- errors surface immediately, results stream back as each provider responds.
Background Subagents (fallback): Use Agent with run_in_background=true, one per provider. Simpler but no intermediate status updates -- the caller only sees the final result.
User: "Ask GPT and Gemini what they think about this architecture"
Claude Code dispatches:
-> Teammate/Agent 1: calls council(provider="openai", ...)
-> Teammate/Agent 2: calls council(provider="gemini", ...)
Results arrive independently as each provider responds.One Agent Per Provider
When consulting multiple providers, always use separate agents -- one per provider. This ensures the faster provider's results arrive immediately without waiting for the slower one.
Session Management
Sessions persist across calls within a conversation:
# First call creates the session
council(session="arch-review", message="Review this design...", provider="openai")
# Follow-up uses the same session (conversation continues)
council(session="arch-review", message="What about error handling?")
# Inject context without an LLM call
council_inject(session="arch-review", content="<file contents>", label="schema.sql")
# Clean up when done
council_delete(session="arch-review")Web Research
# Stateless web-grounded research
council_research(query="What are the latest MCP server best practices?", provider="gemini")Configuration
Environment Variables
Variable | Required | Description |
| For OpenAI provider | OpenAI API key |
| For Gemini provider | Google AI Studio API key |
| No | Data directory (default: |
| No | Log directory (default: |
You only need the API key for the provider(s) you use. If you only use Gemini, you don't need an OpenAI key (and vice versa). The key is loaded lazily when the provider is first called.
Default System Prompt
Create $LLM_COUNCIL_DATA_DIR/config.json to set a default system prompt applied to all sessions:
{
"default_system_prompt": "You are a senior software architect. Be concise."
}Custom system prompts passed to council() are appended after the default.
Error Handling
Council tools return errors as MCP CallToolResult with isError: true instead of throwing exceptions. This ensures the calling agent always gets a parseable result it can relay to the user.
Error responses include structured fields:
{
"error": true,
"provider": "gemini",
"model": "gemini-3.1-pro-preview",
"error_type": "RuntimeError",
"phase": "headers",
"retryable": true,
"http_status": 503,
"message": "Gemini API error 503: This model is currently experiencing high demand."
}Field | Description |
| Exception class name ( |
| Where the failure occurred: |
| Whether the error is transient and safe to retry |
| HTTP status code if applicable (429, 503, etc.) |
Streaming
Both providers use streaming HTTP (SSE) internally. This means:
Instant error detection: HTTP errors (503, 429) surface immediately from response headers instead of hanging until a timeout fires.
No arbitrary timeouts: The connection stays alive as long as the provider is generating tokens. No risk of cutting off legitimate long responses.
Mid-stream resilience: If a connection drops after partial data, the error is reported with context about how much data was received.
Cost Tracking
Every council call returns usage stats including estimated cost:
{
"provider": "openai",
"model": "gpt-5.4",
"session": "review-gpt",
"response": "...",
"usage": {
"input_tokens": 1250,
"output_tokens": 890,
"reasoning_tokens": 2048,
"cost_usd": 0.021
}
}Session-level cost tracking is available via council_sessions.
Development
# Clone and install
git clone https://github.com/Envious-Labs-LLC/llm-council-mcp.git
cd llm-council-mcp
uv sync
# Run directly
uv run python -m llm_council_mcp
# Test with MCP Inspector
npx @modelcontextprotocol/inspector uv run python -m llm_council_mcpAdding a New Provider
Create
src/llm_council_mcp/providers/yourprovider.pyimplementingLLMProviderAdd pricing to
pricing.pyAdd model profiles to
model_profiles.pyRegister in
providers/__init__.py
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Envious-Labs-LLC/llm-council-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server