MindBridge

AI 与智能体

by pinkpixel-dev

通过连接任意模型统一 LLM 工作流,可在多家提供商间灵活切换,发挥各自优势,避免 vendor lock-in。

什么是 MindBridge

通过连接任意模型统一 LLM 工作流,可在多家提供商间灵活切换,发挥各自优势,避免 vendor lock-in。

核心功能 (3 个工具)

getSecondOpinion

Get responses from various LLM providers

listProviders

List all configured LLM providers and their available models

listReasoningModels

List all available models that support reasoning capabilities

README

MseeP.ai Security Assessment Badge

<p align="center"> <img src="https://res.cloudinary.com/di7ctlowx/image/upload/v1744269194/logo_ghalxq.png" alt="Mindbridge Logo" width="400"> </p>

MindBridge MCP Server ⚡ The AI Router for Big Brain Moves

smithery badge

MindBridge is your AI command hub — a Model Context Protocol (MCP) server built to unify, organize, and supercharge your LLM workflows.

Forget vendor lock-in. Forget juggling a dozen APIs.
MindBridge connects your apps to any model, from OpenAI and Anthropic to Ollama and DeepSeek — and lets them talk to each other like a team of expert consultants.

Need raw speed? Grab a cheap model.
Need complex reasoning? Route it to a specialist.
Want a second opinion? MindBridge has that built in.

This isn't just model aggregation. It's model orchestration.


Core Features 🔥

What it doesWhy you should use it
Multi-LLM SupportInstantly switch between OpenAI, Anthropic, Google, DeepSeek, OpenRouter, Ollama (local models), and OpenAI-compatible APIs.
Reasoning Engine AwareSmart routing to models built for deep reasoning like Claude, GPT-4o, DeepSeek Reasoner, etc.
getSecondOpinion ToolAsk multiple models the same question to compare responses side-by-side.
OpenAI-Compatible API LayerDrop MindBridge into any tool expecting OpenAI endpoints (Azure, Together.ai, Groq, etc.).
Auto-Detects ProvidersJust add your keys. MindBridge handles setup & discovery automagically.
Flexible as HellConfigure everything via env vars, MCP config, or JSON — it's your call.

Why MindBridge?

"Every LLM is good at something. MindBridge makes them work together."

Perfect for:

  • Agent builders
  • Multi-model workflows
  • AI orchestration engines
  • Reasoning-heavy tasks
  • Building smarter AI dev environments
  • LLM-powered backends
  • Anyone tired of vendor walled gardens

Installation 🛠️

Option 1: Install from npm (Recommended)

bash
# Install globally
npm install -g @pinkpixel/mindbridge

# use with npx
npx @pinkpixel/mindbridge

Installing via Smithery

To install mindbridge-mcp for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @pinkpixel-dev/mindbridge-mcp --client claude

Option 2: Install from source

  1. Clone the repository:

    bash
    git clone https://github.com/pinkpixel-dev/mindbridge.git
    cd mindbridge
    
  2. Install dependencies:

    bash
    chmod +x install.sh
    ./install.sh
    
  3. Configure environment variables:

    bash
    cp .env.example .env
    

    Edit .env and add your API keys for the providers you want to use.

Configuration ⚙️

Environment Variables

The server supports the following environment variables:

  • OPENAI_API_KEY: Your OpenAI API key
  • ANTHROPIC_API_KEY: Your Anthropic API key
  • DEEPSEEK_API_KEY: Your DeepSeek API key
  • GOOGLE_API_KEY: Your Google AI API key
  • OPENROUTER_API_KEY: Your OpenRouter API key
  • OLLAMA_BASE_URL: Ollama instance URL (default: http://localhost:11434)
  • OPENAI_COMPATIBLE_API_KEY: (Optional) API key for OpenAI-compatible services
  • OPENAI_COMPATIBLE_API_BASE_URL: Base URL for OpenAI-compatible services
  • OPENAI_COMPATIBLE_API_MODELS: Comma-separated list of available models

MCP Configuration

For use with MCP-compatible IDEs like Cursor or Windsurf, you can use the following configuration in your mcp.json file:

json
{
  "mcpServers": {
    "mindbridge": {
      "command": "npx",
      "args": [
        "-y",
        "@pinkpixel/mindbridge"
      ],
      "env": {
        "OPENAI_API_KEY": "OPENAI_API_KEY_HERE",
        "ANTHROPIC_API_KEY": "ANTHROPIC_API_KEY_HERE",
        "GOOGLE_API_KEY": "GOOGLE_API_KEY_HERE",
        "DEEPSEEK_API_KEY": "DEEPSEEK_API_KEY_HERE",
        "OPENROUTER_API_KEY": "OPENROUTER_API_KEY_HERE"
      },
      "provider_config": {
        "openai": {
          "default_model": "gpt-4o"
        },
        "anthropic": {
          "default_model": "claude-3-5-sonnet-20241022"
        },
        "google": {
          "default_model": "gemini-2.0-flash"
        },
        "deepseek": {
          "default_model": "deepseek-chat"
        },
        "openrouter": {
          "default_model": "openai/gpt-4o"
        },
        "ollama": {
          "base_url": "http://localhost:11434",
          "default_model": "llama3"
        },
        "openai_compatible": {
          "api_key": "API_KEY_HERE_OR_REMOVE_IF_NOT_NEEDED",
          "base_url": "FULL_API_URL_HERE",
          "available_models": ["MODEL1", "MODEL2"],
          "default_model": "MODEL1"
        }
      },
      "default_params": {
        "temperature": 0.7,
        "reasoning_effort": "medium"
      },
      "alwaysAllow": [
        "getSecondOpinion",
        "listProviders",
        "listReasoningModels"
      ]
    }
  }
}

Replace the API keys with your actual keys. For the OpenAI-compatible configuration, you can remove the api_key field if the service doesn't require authentication.

Usage 💫

Starting the Server

Development mode with auto-reload:

bash
npm run dev

Production mode:

bash
npm run build
npm start

When installed globally:

bash
mindbridge

Available Tools

  1. getSecondOpinion

    typescript
    {
      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
    }
    
  2. listProviders

    • Lists all configured providers and their available models
    • No parameters required
  3. listReasoningModels

    • Lists models optimized for reasoning tasks
    • No parameters required

Example Usage 📝

typescript
// Get an opinion from GPT-4o
{
  "provider": "openai",
  "model": "gpt-4o",
  "prompt": "What are the key considerations for database sharding?",
  "temperature": 0.7,
  "maxTokens": 1000
}

// Get a reasoned response from OpenAI's o1 model
{
  "provider": "openai",
  "model": "o1",
  "prompt": "Explain the mathematical principles behind database indexing",
  "reasoning_effort": "high",
  "maxTokens": 4000
}

// Get a reasoned response from DeepSeek
{
  "provider": "deepseek",
  "model": "deepseek-reasoner",
  "prompt": "What are the tradeoffs between microservices and monoliths?",
  "reasoning_effort": "high",
  "maxTokens": 2000
}

// Use an OpenAI-compatible provider
{
  "provider": "openaiCompatible",
  "model": "YOUR_MODEL_NAME",
  "prompt": "Explain the concept of eventual consistency in distributed systems",
  "temperature": 0.5,
  "maxTokens": 1500
}

Development 🔧

  • npm run lint: Run ESLint
  • npm run format: Format code with Prettier
  • npm run clean: Clean build artifacts
  • npm run build: Build the project

Contributing

PRs welcome! Help us make AI workflows less dumb.


License

MIT — do whatever, just don't be evil.


Made with ❤️ by Pink Pixel

常见问题

MindBridge 是什么?

通过连接任意模型统一 LLM 工作流,可在多家提供商间灵活切换,发挥各自优势,避免 vendor lock-in。

MindBridge 提供哪些工具?

提供 3 个工具,包括 getSecondOpinion、listProviders、listReasoningModels

相关 Skills

Claude接口

by anthropics

Universal
热门

面向接入 Claude API、Anthropic SDK 或 Agent SDK 的开发场景,自动识别项目语言并给出对应示例与默认配置,快速搭建 LLM 应用。

想把Claude能力接进应用或智能体,用claude-api上手快、兼容Anthropic与Agent SDK,集成路径清晰又省心

AI 与智能体
未扫描137.2k

RAG架构师

by alirezarezvani

Universal
热门

聚焦生产级RAG系统设计与优化,覆盖文档切块、检索链路、索引构建、召回评估等关键环节,适合搭建可扩展、高准确率的知识库问答与检索增强应用。

面向RAG落地,把知识库、向量检索和生成链路系统串联起来,做架构设计时更清晰,也更少踩坑。

AI 与智能体
未扫描15.4k

多智能体架构

by alirezarezvani

Universal
热门

聚焦多智能体系统架构设计,梳理 Supervisor、Swarm、分层和 Pipeline 等模式,覆盖角色定义、通信协作与性能评估,适合规划稳健可扩展的 AI agent 编排方案。

帮你系统解决多智能体应用的架构设计与协同编排难题,适合构建复杂 AI 工作流,成熟度高、社区认可也很亮眼。

AI 与智能体
未扫描15.4k

相关 MCP Server

知识图谱记忆

编辑精选

by Anthropic

热门

Memory 是一个基于本地知识图谱的持久化记忆系统,让 AI 记住长期上下文。

帮 AI 和智能体补上“记不住”的短板,用本地知识图谱沉淀长期上下文,连续对话更聪明,数据也更可控。

AI 与智能体
85.9k

顺序思维

编辑精选

by Anthropic

热门

Sequential Thinking 是让 AI 通过动态思维链解决复杂问题的参考服务器。

这个服务器展示了如何让 Claude 像人类一样逐步推理,适合开发者学习 MCP 的思维链实现。但注意它只是个参考示例,别指望直接用在生产环境里。

AI 与智能体
85.9k

PraisonAI

编辑精选

by mervinpraison

热门

PraisonAI 是一个支持自反思和多 LLM 的低代码 AI 智能体框架。

如果你需要快速搭建一个能 24/7 运行的 AI 智能体团队来处理复杂任务(比如自动研究或代码生成),PraisonAI 的低代码设计和多平台集成(如 Telegram)让它上手极快。但作为非官方项目,它的生态成熟度可能不如 LangChain 等主流框架,适合愿意尝鲜的开发者。

AI 与智能体
7.8k

评论