这是一个模型控制协议(MCP)服务器,允许同时交叉验证来自多个LLM提供商的响应。此服务器与Claude Desktop集成作为MCP服务器,提供统一的接口来查询不同的LLM API。
pip install uv安装)要通过Smithery自动安装Multi LLM Cross-Check Server用于Claude Desktop:
npx -y @smithery/cli install @lior-ps/multi-llm-cross-check-mcp-server --client claude
git clone https://github.com/lior-ps/multi-llm-cross-check-mcp-server.git
cd multi-llm-cross-check-mcp-server
uv venv
uv pip install -r requirements.txt
在Claude Desktop中配置:
在您的Claude Desktop配置目录中创建一个名为claude_desktop_config.json的文件,内容如下:
{
"mcp_servers": [
{
"command": "uv",
"args": [
"--directory",
"/multi-llm-cross-check-mcp-server",
"run",
"main.py"
],
"env": {
"OPENAI_API_KEY": "your_openai_key", // 从https://platform.openai.com/api-keys获取
"ANTHROPIC_API_KEY": "your_anthropic_key", // 从https://console.anthropic.com/account/keys获取
"PERPLEXITY_API_KEY": "your_perplexity_key", // 从https://www.perplexity.ai/settings/api获取
"GEMINI_API_KEY": "your_gemini_key" // 从https://makersuite.google.com/app/apikey获取
}
}
]
}
注意事项:
which uv或在Windows上运行where uv来获取它。一旦配置完成:
cross_check工具,请求“与其他LLM交叉检查”服务器返回一个字典,其中包含每个LLM提供商的响应:
{
"ChatGPT": { ... },
"Claude": { ... },
"Perplexity": { ... },
"Gemini": { ... }
}
欢迎贡献!请随时提交Pull Request。
本项目采用MIT许可证 - 详情见LICENSE文件。