Skip to main content
Glama
Second Opinion MCP Server

Second Opinion MCP Server

by joewilsonai

🧠 Second Opinion MCP Server

Stuck on a problem? Get a second opinion from a different model.

An MCP server that combines Gemini, Perplexity, and Stack Overflow to give Claude (or any MCP client) a multi-source second take on tough coding problems.

MCP Stars Node License


Why

When Claude gets stuck β€” or just confidently wrong β€” the fastest unblocker is a different model with different training. This server makes that one tool call away:

  • 🟦 Google Gemini for an alternative model perspective

  • πŸŸͺ Perplexity for fresh web-grounded analysis

  • 🟧 Stack Overflow for accepted answers from real engineers

You stay in your Claude conversation. The second opinion comes to you.

Related MCP server: Enhanced Gemini MCP Server

Features

  • 🌐 Multi-source synthesis β€” combines insights from three different sources into one answer

  • πŸ”€ Automatic language detection from file extensions

  • πŸ“‹ Code snippet extraction and clean formatting

  • πŸ“„ Markdown report generation for solutions

  • 🧠 Git-aware context gathering β€” includes nearby files when relevant

  • ⚑ Single tool call β€” no need to context-switch between chat apps

Install

git clone https://github.com/joewilsonai/second-opinion-mcp-server
cd second-opinion-mcp-server
npm install
npm run build

Configure in Claude Desktop

Edit your claude_desktop_config.json:

{
  "mcpServers": {
    "second-opinion": {
      "command": "node",
      "args": ["/absolute/path/to/second-opinion-mcp-server/build/index.js"],
      "env": {
        "GEMINI_API_KEY": "your-gemini-api-key",
        "PERPLEXITY_API_KEY": "your-perplexity-api-key",
        "STACK_EXCHANGE_KEY": "your-stack-exchange-key"
      }
    }
  }
}

Restart Claude Desktop.

Required environment variables

Variable

Source

Notes

GEMINI_API_KEY

aistudio.google.com

Required

PERPLEXITY_API_KEY

perplexity.ai/settings/api

Required

STACK_EXCHANGE_KEY

stackapps.com/apps/oauth/register

Optional β€” falls back to anonymous

Usage

Once installed, just ask Claude:

"Get a second opinion on this race condition I'm hitting in our worker pool."

Claude will call the tool, pass your code + context, and synthesize a response from all three sources.

Stack

  • TypeScript + Node.js 18+

  • @modelcontextprotocol/sdk

  • @google/generative-ai (Gemini)

  • Perplexity API

  • Stack Exchange API

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides instant access to a searchable knowledge base of 16,000+ community-driven troubleshooting solutions for common coding problems. Includes community feedback and smart ranking to help AI assistants find the most effective solutions.
      -
    • A
      license
      C
      quality
      D
      maintenance
      Integrates Google's Gemini AI with Claude Code to provide advanced development assistance including code analysis, implementation planning, technical explanations, debugging support, and strategic development guidance.
      10
      192 npm
      7
      MIT