Labsco
PoliTwit1984 logo

Second Opinion MCP Server

โ˜… 16

from PoliTwit1984

An AI-powered coding assistant that combines insights from Gemini, Stack Overflow, and Perplexity AI to help solve programming problems.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

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


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

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

VariableSourceNotes
GEMINI_API_KEYaistudio.google.comRequired
PERPLEXITY_API_KEYperplexity.ai/settings/apiRequired
STACK_EXCHANGE_KEYstackapps.com/apps/oauth/registerOptional โ€” falls back to anonymous

Stack

  • TypeScript + Node.js 18+
  • @modelcontextprotocol/sdk
  • @google/generative-ai (Gemini)
  • Perplexity API
  • Stack Exchange API