Second Opinion MCP Server

Get instant second opinions from 17 AI platforms and 800,000+ models

README.md

🤖 Second Opinion MCP

🎯 Get instant second opinions from 17 AI platforms and 800,000+ models

OpenAI • Gemini • Grok • Claude • HuggingFace • DeepSeek • OpenRouter • Mistral • Together AI • Cohere • Groq • Perplexity • Replicate • AI21 Labs • Stability AI • Fireworks AI • Anyscale


🚀 What it does

This MCP server allows Claude to consult other AI models for different perspectives on:

  • Coding problems - Compare approaches across models
  • Creative writing - Get diverse style feedback
  • Problem solving - Validate logic and reasoning
  • Cross-model analysis - See how different AIs tackle the same task
  • Group discussions - Host AI debates with multiple models
  • Custom model access - Use any HuggingFace model via Inference API

✨ Version 5.0 Features & Improvements

🎭 **NEW: AI Personality System**

  • 5 Distinct Personalities: honest, freind, coach, wise, creative
  • Intelligent Model Matching: Each personality uses models best suited for their character
  • Always Available: Works with any configured AI provider

🧠 **NEW: Intelligent Model Selection**

  • Quality-Based Ranking: 34+ models ranked by capability (Grok-4 → Gemini Pro → GPT-4.1)
  • Smart Defaults: Automatically selects the best available model
  • Personality Optimization: Different models for different personality types

🏗️ **NEW: Modular Architecture**

  • 5 Clean Files: Replaced 51k+ token monolith with maintainable modules
  • Professional Structure: client_manager.py, ai_providers.py, conversation_manager.py, mcp_server.py, main.py
  • JSON Configuration: Easy model priority updates via model_priority.json

🚀 Major Platform Integrations

  • 🎭 Replicate: Access to open-source models including Llama 2, CodeLlama, Mistral, and more
  • 🌟 AI21 Labs: Jamba 1.5 models with advanced reasoning capabilities
  • 🎨 Stability AI: StableLM models including code-specialized variants
  • 🔥 Fireworks AI: Ultra-fast inference for popular open-source models
  • 🚀 Anyscale: Ray-powered LLM serving with enterprise-grade reliability

🆕 Enhanced Existing Platform Support

  • 🤖 Mistral AI: Direct access to Mistral's latest models including mistral-large-latest and codestral-latest
  • 🔗 Together AI: Access to 200+ open-source models with fast inference
  • 🧠 Cohere: Enterprise-grade language models with Command R+ and Command R
  • ⚡ Groq Fast: Ultra-fast inference API for lightning-quick responses
  • 🔍 Perplexity AI: Web-connected AI with real-time search capabilities

🔧 Previous Bug Fixes (v3.0)

  • Fixed HuggingFace Models: Completely rebuilt HuggingFace integration with advanced retry logic, better model format detection, and comprehensive error handling
  • Fixed Gemini Blank Responses: Enhanced Gemini conversation handling to prevent empty responses in long chats with smart fallback and retry mechanisms
  • Improved Error Handling: Better error messages with helpful suggestions for troubleshooting

🤖 HuggingFace Integration (Enhanced)

Access any of the 800,000+ models on HuggingFace Hub via their Inference API with improved reliability:

  • meta-llama/Llama-3.1-8B-Instruct - Fast and reliable
  • meta-llama/Llama-3.1-70B-Instruct - Powerful reasoning
  • mistralai/Mistral-7B-Instruct-v0.3 - Efficient French-developed model
  • Qwen/Qwen2.5-7B-Instruct - Alibaba's latest model

🧠 DeepSeek Models

Get opinions from DeepSeek's powerful reasoning models:

  • deepseek-chat (DeepSeek-V3) - Fast and efficient
  • deepseek-reasoner (DeepSeek-R1) - Advanced reasoning

🤔 Grok 4 Thinking

Access xAI's thinking models with enhanced reasoning:

  • grok-4 - Latest flagship model
  • grok-3-thinking - Step-by-step reasoning model, last gen
  • grok-3-mini - Lightweight thinking model with reasoning_effort c

Tools 2

get_second_opinionConsults multiple AI models to provide alternative perspectives or feedback on a given prompt.
run_ai_debateInitiates a group discussion or debate between multiple AI models on a specific topic.

Environment Variables

OPENAI_API_KEYAPI key for OpenAI models
ANTHROPIC_API_KEYAPI key for Anthropic models
HUGGINGFACE_API_KEYAPI key for HuggingFace Inference API

Try it

Get a second opinion on this code snippet from a 'coach' personality to improve its efficiency.
Compare how DeepSeek-R1 and GPT-4o would approach solving this logic puzzle.
Host a debate between three different AI models regarding the future of renewable energy.
Ask for a creative writing critique of my draft from a 'wise' AI personality.

Frequently Asked Questions

What are the key features of Second Opinion MCP?

Access to 17 AI platforms and over 800,000 models via HuggingFace and other providers.. AI Personality System with 5 distinct personas: honest, friend, coach, wise, and creative.. Intelligent model selection based on quality ranking and personality optimization.. Support for multi-AI group discussions and debates.. Modular architecture with easy-to-update model priority configurations..

What can I use Second Opinion MCP for?

Developers comparing coding approaches across different LLMs to find the most efficient solution.. Writers seeking diverse stylistic feedback by consulting multiple AI personas.. Researchers validating logic and reasoning by cross-referencing answers from multiple models.. Teams hosting AI-led debates to explore complex topics from various technical perspectives..

How do I install Second Opinion MCP?

Install Second Opinion MCP by running: git clone https://github.com/ProCreations-Official/second-opinion && cd second-opinion && pip install -r requirements.txt

What MCP clients work with Second Opinion MCP?

Second Opinion MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Second Opinion MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare