0A

0xakuti/ai-council-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

33 stars 8 forks 质量 68 趋势 11MIT

多AI共识MCP服务器,并行查询多个AI模型(OpenAI、Claude、Gemini、自定义API),并综合响应以减少偏见并提高准确性。

概览

:并行查询多个AI模型,综合响应以提高准确性,并通过集合决策减少AI偏见。 AI Council 是一个强大的 MCP(模型上下文协议)服务器,通过同时咨询多个 AI 模型,利用“众人的智慧”。通过结合 OpenAI、Claude、Gemini 及任何兼容 OpenAI API 的洞察,获得更可靠、全面的答案。 人工智能委员会通过以下方式改变你与人工智能的互动方式: - : 同时查询多个 AI 模型(非顺序查询) - : 使用匿名代号防止综合偏见 - : 一个模型将所有响应综合生成一个全面的答案 - : 支持OpenAI、OpenRouter及任何兼容OpenAI的API- : 当单个模型失败时,优雅地退化 :研究问题、复分析、创意项目、技术决策,以及任何多重AI视角带来价值的任务。 - Python 3。

概述(AI 翻译)

多AI共识工具:并行查询多个AI模型,综合响应以提高准确性,并通过集合决策减少AI偏见。

AI Council 是一个强大的 MCP(模型上下文协议)服务器,通过同时咨询多个 AI 模型,利用“众人的智慧”。通过结合 OpenAI、Claude、Gemini 及任何兼容 OpenAI API 的洞察,获得更可靠、全面的答案。

✨ 什么是人工智能委员会?

人工智能委员会通过以下方式改变你与人工智能的互动方式:

  • ** 🔄 并行处理**:同时查询多个AI模型(非顺序查询)
  • ** 🎯 偏见减少**:使用匿名代号防止综合偏见
  • ** ⚡ 智能综合**:一个模型将所有响应综合成一个全面的答案
  • ** 🔧 通用兼容性**:支持OpenAI、OpenRouter及任何兼容OpenAI的API。
  • ** 🛡️ 稳健错误处理**:单个模型失败时的优雅降级

完美适合:研究问题、复杂分析、创意项目、技术决策,以及任何多重AI视角带来价值的任务。

📋 要求

  • Python 3.10+
  • UV 已安装(安装指南)
  • 另一种说法:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

AI Council MCP Server

Multi-AI Consensus Tool: Query multiple AI models in parallel, synthesize responses for better accuracy, and reduce AI bias through ensemble decision-making.

AI Council is a powerful MCP (Model Context Protocol) server that harnesses the “wisdom of crowds” by consulting multiple AI models simultaneously. Get more reliable, comprehensive answers by combining insights from OpenAI, Claude, Gemini, and any OpenAI-compatible API.

✨ What is AI Council?

AI Council transforms how you interact with AI by:

  • 🔄 Parallel Processing: Queries multiple AI models simultaneously (not sequentially)
  • 🎯 Bias Reduction: Uses anonymous code names to prevent synthesis bias
  • ⚡ Smart Synthesis: One model synthesizes all responses into a comprehensive answer
  • 🔧 Universal Compatibility: Works with OpenAI, OpenRouter, and any OpenAI-compatible API
  • 🛡️ Robust Error Handling: Graceful degradation when individual models fail

Perfect for: Research questions, complex analysis, creative projects, technical decisions, and any task where multiple AI perspectives add value.

📋 Requirements

  • Python 3.10+
  • uv installed (installation guide)
  • alternatively:
    • pipx installed (installation guide), update config
        "command": "pipx",
        "args": ["run", "ai-council"]
      
    • or manual install wiht pip install ai-council, and update config
      "command": "ai-council",
      "args": []
      

🚀 Quick Start

  1. Get your OpenRouter api key

Cursor IDE Setup

  1. Open Cursor Settings → MCP
  2. Add new MCP server and set your api key:
{
  "ai-council": {
    "command": "uvx",
    "args": ["ai-council"],
    "env": {
      "OPENROUTER_API_KEY": "..."
    }
  }
}

Claude Desktop Setup

  1. Edit ~/.claude_desktop_config.json and set your api key:
{
  "mcpServers": {
    "ai-council": {
      "command": "uvx",
      "args": ["ai-council"],
      "env": {
        "OPENROUTER_API_KEY": "..."
      }
    }
  }
}

That’s it! Ask any complex question and the AI Council tool will automatically engage multiple models.

By default it will use OpenRouter with Claude Sonnet 4, Gemini 2.5 Pro, and DeepSeek V3.

CLI Arguments

Use command-line arguments for quick setup, add any of these to the args in you mcp config:

Available CLI Arguments:

  • --openai-api-key: Your OpenAI API key
  • --openrouter-api-key: Your OpenRouter API key
  • --max-models: Maximum models to query (default: 3)
  • --parallel-timeout: Timeout in seconds (default: 60)
  • --log-level: Logging level (DEBUG, INFO, WARNING, ERROR)
  • --config: Path to custom config file

⚙️ Advanced Configuration

For advanced setups, create a config.yaml file and link to it with --config path/to/config.yaml:

# config.yaml
在 GitHub 查看完整 README

安装

uvx ai-council
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ai-council": { "command": "uvx", "args": ["ai-council"], "env": { "OPENROUTER_API_KEY": "..." } } } }