Overview
What is Second Opinion MCP Server?
An MCP server that provides AI-powered assistance for coding problems by combining insights from Google's Gemini AI, Stack Overflow accepted answers, and Perplexity AI analysis. It is for developers seeking multi-source solutions with context from code files and the web.
How to use Second Opinion MCP Server?
Install dependencies with npm install, build with npm run build, then configure the server in MCP settings with API keys for Gemini, Perplexity, and optionally Stack Exchange. Invoke the single tool get_second_opinion, passing a required goal and optional error, code, solutionsTried, and filePath.
Key features of Second Opinion MCP Server
- Combines Gemini AI, Stack Overflow, and Perplexity AI insights.
- Automatic language detection from file extensions.
- Code snippet extraction and formatting.
- Markdown report generation for solutions.
- Git-aware file context gathering.
Use cases of Second Opinion MCP Server
- Debugging a tricky React state bug with opinions from multiple sources.
- Getting a structured, multi‑perspective solution for a coding error.
- Understanding best practices for a specific language or framework.
- Generating a formatted report of a problem and its solutions.
FAQ from Second Opinion MCP Server
What data sources does Second Opinion MCP Server use?
It uses Google's Gemini AI, Stack Overflow accepted answers, and Perplexity AI analysis.
What API keys are required?
You need GEMINI_API_KEY, PERPLEXITY_API_KEY. STACK_EXCHANGE_KEY is optional (anonymous access used if omitted).
How do I configure the server?
Set the three environment variables in your MCP settings JSON under the second-opinion server entry, then run the built index.js.
Does the server access local files?
Yes, it accepts an optional filePath parameter and uses Git-aware file context gathering when a file path is provided.
Where can I find known issues?
See the errors.md file referenced in the repository for current issues and workarounds.