Mindbridge MCP server

Bridges multiple LLM providers including OpenAI, Anthropic, Google, DeepSeek, OpenRouter, and Ollama through a unified interface, enabling comparison of responses and leveraging specialized reasoning capabilities across different models.
Back to servers
Setup instructions
Provider
Pink Pixel
Release date
Apr 10, 2025
Language
TypeScript
Package
Stats
2.4K downloads
16 stars

MindBridge is an AI command hub that unifies your LLM workflows through a Model Context Protocol (MCP) server. It connects your applications to multiple AI models from different providers, allowing you to choose the right model for each task and enabling models to collaborate like a team of experts.

Installation Options

Install from npm

# Install globally
npm install -g @pinkpixel/mindbridge

# Use with npx
npx @pinkpixel/mindbridge

Install via Smithery

For automatic installation with Claude Desktop:

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

Install from Source

git clone https://github.com/pinkpixel-dev/mindbridge.git
cd mindbridge
chmod +x install.sh
./install.sh

After installation, configure your environment:

cp .env.example .env

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

Configuration

Environment Variables

MindBridge supports various environment variables for different AI providers:

  • 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: 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 MCP-compatible IDEs like Cursor or Windsurf, create an mcp.json file:

{
  "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"
      ]
    }
  }
}

Usage

Starting the Server

# Development mode with auto-reload
npm run dev

# Production mode
npm run build
npm start

# When installed globally
mindbridge

Available Tools

getSecondOpinion

This tool allows you to get opinions from different models.

Parameters:

  • provider: LLM provider name
  • model: Model identifier
  • prompt: Your question or prompt
  • systemPrompt?: Optional system instructions
  • temperature?: Response randomness (0-1)
  • maxTokens?: Maximum response length
  • reasoning_effort?: 'low', 'medium', or 'high' (for reasoning models)

listProviders

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

listReasoningModels

Lists models optimized for reasoning tasks. No parameters required.

Example Usage

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
}

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "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"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "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"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "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"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later