MindBridge MCP 服务器⚡ 大脑活动所需的 AI 路由器
MindBridge 是您的 AI 指挥中心——一个模型上下文协议 (MCP) 服务器,旨在统一、组织和增强您的 LLM 工作流程。
忘记供应商锁定。忘记处理十几个 API。
MindBridge 将您的应用程序连接到任何模型,从 OpenAI 和 Anthropic 到 Ollama 和 DeepSeek,并让它们像专家顾问团队一样相互交谈。
需要极致速度?那就买个便宜的型号吧。
需要复杂的推理?请联系专家。
想要听取第二意见?MindBridge 内置了此功能。
这不仅仅是模型聚合,更是模型编排。
核心功能🔥
它的作用 | 为什么要使用它 |
多LLM支持 | 立即在 OpenAI、Anthropic、Google、DeepSeek、OpenRouter、Ollama(本地模型)和 OpenAI 兼容 API 之间切换。 |
推理引擎感知 | 智能路由到为深度推理而构建的模型,如 Claude、GPT-4o、DeepSeek Reasoner 等。 |
getSecondOpinion 工具 | 向多个模型询问相同的问题,以并排比较答案。 |
OpenAI兼容API层 | 将 MindBridge 放入任何需要 OpenAI 端点的工具中(Azure、Together.ai、Groq 等)。 |
自动检测提供商 | 只需添加您的密钥。MindBridge 会自动处理设置和发现。 |
极其灵活 | 通过环境变量、MCP 配置或 JSON 配置一切 — — 由您决定。 |
为什么选择 MindBridge?
“每个法学硕士都有自己擅长的领域。MindBridge 让他们能够协同工作。”
适合:
代理建造者
多模型工作流程
AI编排引擎
推理密集型任务
构建更智能的AI开发环境
LLM 支持的后端
厌倦了供应商围墙花园的人
安装🛠️
选项 1:从 npm 安装(推荐)
选项 2:从源安装
克隆存储库:
git clone https://github.com/pinkpixel-dev/mindbridge.git cd mindbridge安装依赖项:
chmod +x install.sh ./install.sh配置环境变量:
cp .env.example .env编辑
.env并为您想要使用的提供商添加 API 密钥。
配置⚙️
环境变量
服务器支持以下环境变量:
OPENAI_API_KEY:您的 OpenAI API 密钥ANTHROPIC_API_KEY:您的 Anthropic API 密钥DEEPSEEK_API_KEY:您的 DeepSeek API 密钥GOOGLE_API_KEY:您的 Google AI API 密钥OPENROUTER_API_KEY:您的 OpenRouter API 密钥OLLAMA_BASE_URL:Ollama 实例 URL(默认值: http://localhost:11434 )OPENAI_COMPATIBLE_API_KEY:(可选)OpenAI 兼容服务的 API 密钥OPENAI_COMPATIBLE_API_BASE_URL:OpenAI 兼容服务的基本 URLOPENAI_COMPATIBLE_API_MODELS:可用模型的逗号分隔列表
MCP 配置
为了与 Cursor 或 Windsurf 等 MCP 兼容 IDE 一起使用,您可以在mcp.json文件中使用以下配置:
将 API 密钥替换为您的实际密钥。对于与 OpenAI 兼容的配置,如果服务不需要身份验证,则可以删除api_key字段。
使用方法💫
启动服务器
具有自动重新加载的开发模式:
生产方式:
全局安装时:
可用工具
获取第二意见
{ provider: string; // LLM provider name model: string; // Model identifier prompt: string; // Your question or prompt systemPrompt?: string; // Optional system instructions temperature?: number; // Response randomness (0-1) maxTokens?: number; // Maximum response length reasoning_effort?: 'low' | 'medium' | 'high'; // For reasoning models }列出提供商
列出所有已配置的提供程序及其可用模型
无需参数
推理模型列表
列出针对推理任务优化的模型
无需参数
使用示例📝
开发🔧
npm run lint:运行 ESLintnpm run format:使用 Prettier 格式化代码npm run clean:清理构建工件npm run build:构建项目
贡献
欢迎 PR!帮助我们让 AI 工作流程更高效。
执照
MIT——做任何事都行,但不要作恶。
由Pink Pixel用❤️制作
Related MCP Servers
- Asecurity-licenseAqualityProvides integration with OpenRouter.ai, allowing access to various AI models through a unified interface.Last updated -5858Apache 2.0
- AsecurityAlicenseAqualityEnables AI agents to interact with multiple LLM providers (OpenAI, Anthropic, Google, DeepSeek) through a standardized interface, making it easy to switch between models or use multiple models in the same application.Last updated -16MIT License
- -security-license-qualityA unified Model Context Protocol Gateway that bridges LLM interfaces with various tools and services, providing OpenAI API compatibility and supporting both synchronous and asynchronous tool execution.Last updated -1
- -securityAlicense-qualityA middleware system that connects large language models (LLMs) with various tool services through an OpenAI-compatible API, enabling enhanced AI assistant capabilities with features like file operations, web browsing, and database management.Last updated -3MIT License