๐Ÿง  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.

MCPStarsNodeLicense

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.

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

Related MCP servers

License

MIT

MCP Server ยท Populars

MCP Server ยท New

    archetyx

    Telegram MCP Server

    Remote control AI coding assistants (Claude Code/Codex) via Telegram

    Community archetyx
    dtkmn

    MCP ZAP Server

    Give AI agents a safe, self-hosted OWASP ZAP operator for guided web security scans, findings, reports, and production guardrails.

    Community dtkmn
    dlt-hub

    dltHub AI Workbench

    MCP Server

    Community dlt-hub
    rasinmuhammed

    Misata

    High-performance open-source synthetic data engine. Uses LLMs for schema design and vectorized NumPy for deterministic, scalable generation.

    Community rasinmuhammed
    Silung

    Scholar Search MCP

    An MCP server for academic paper search that integrates with AI assistants (e.g., Claude Code, Cursor), enabling them to search and retrieve academic paper metadata.

    Community Silung