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.
# Install globally
npm install -g @pinkpixel/mindbridge
# Use with npx
npx @pinkpixel/mindbridge
For automatic installation with Claude Desktop:
npx -y @smithery/cli install @pinkpixel-dev/mindbridge-mcp --client claude
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.
MindBridge supports various environment variables for different AI providers:
OPENAI_API_KEY
: Your OpenAI API keyANTHROPIC_API_KEY
: Your Anthropic API keyDEEPSEEK_API_KEY
: Your DeepSeek API keyGOOGLE_API_KEY
: Your Google AI API keyOPENROUTER_API_KEY
: Your OpenRouter API keyOLLAMA_BASE_URL
: Ollama instance URL (default: http://localhost:11434)OPENAI_COMPATIBLE_API_KEY
: API key for OpenAI-compatible servicesOPENAI_COMPATIBLE_API_BASE_URL
: Base URL for OpenAI-compatible servicesOPENAI_COMPATIBLE_API_MODELS
: Comma-separated list of available modelsFor 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"
]
}
}
}
# Development mode with auto-reload
npm run dev
# Production mode
npm run build
npm start
# When installed globally
mindbridge
This tool allows you to get opinions from different models.
Parameters:
provider
: LLM provider namemodel
: Model identifierprompt
: Your question or promptsystemPrompt?
: Optional system instructionstemperature?
: Response randomness (0-1)maxTokens?
: Maximum response lengthreasoning_effort?
: 'low', 'medium', or 'high' (for reasoning models)Lists all configured providers and their available models. No parameters required.
Lists models optimized for reasoning tasks. No parameters required.
{
"provider": "openai",
"model": "gpt-4o",
"prompt": "What are the key considerations for database sharding?",
"temperature": 0.7,
"maxTokens": 1000
}
{
"provider": "openai",
"model": "o1",
"prompt": "Explain the mathematical principles behind database indexing",
"reasoning_effort": "high",
"maxTokens": 4000
}
{
"provider": "deepseek",
"model": "deepseek-reasoner",
"prompt": "What are the tradeoffs between microservices and monoliths?",
"reasoning_effort": "high",
"maxTokens": 2000
}
{
"provider": "openaiCompatible",
"model": "YOUR_MODEL_NAME",
"prompt": "Explain the concept of eventual consistency in distributed systems",
"temperature": 0.5,
"maxTokens": 1500
}
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.
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.
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"
]
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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