Second Opinion (Code Assistant)

by politwit1984

11 stars
216 downloads
Not rated
GitHub

About

Synthesizes insights from multiple AI sources to provide enhanced coding assistance with automatic language detection and git-aware context gathering.

Details

Author
politwit1984
Repository
joewilsonai/second-opinion-mcp-server
GitHub stars
11
Downloads
216
Categories
Developer Tools, Other, AI, Design, Infrastructure, Frontend, Knowledge Base

- 🌐 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Second Opinion (Code Assistant)
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 /absolute/path/to/second-opinion-mcp-server/build/index.js
    Environment
    • GEMINI_API_KEY your-gemini-api-key
    • PERPLEXITY_API_KEY your-perplexity-api-key
    • STACK_EXCHANGE_KEY your-stack-exchange-key

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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.

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.

| 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 |

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

Linux

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

Macos

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

Windows

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

<div align="center">

🧠 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

</div>

---

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

- πŸ” mcp-perplexity-server (⭐ 14) β€” Perplexity-only, lighter weight
- πŸ™ github-meta-mcp-server β€” Natural-language GitHub repo management

License

MIT

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.