- Home
- MCP servers
- Second Opinion
Second Opinion
- typescript
15
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"politwit1984-second-opinion-mcp-server": {
"command": "node",
"args": [
"/path/to/second-opinion-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"
}
}
}
}You use the Second Opinion MCP Server to get AI-powered coding assistance that blends insights from Gemini, Stack Exchange, and Perplexity to deliver context-rich solutions, language-aware analysis, and well-formatted code results.
How to use
To use the Second Opinion MCP Server, connect your MCP client to the local server instance. You can request detailed solutions for coding problems, receive explanations that reference multiple sources, and obtain Markdown-formatted reports suitable for integration into your workflow. The tool focuses on translating your goal, any error messages, and relevant code context into actionable guidance. It supports code snippet extraction and automatic language detection from file extensions, making it easy to reason about code across languages.
How to install
Prerequisites: Node.js and npm must be available on your system.
- Install dependencies
npm install
- Build the server
npm run build
- Configure environment variables in MCP settings
{
"mcpServers": {
"second-opinion": {
"command": "node",
"args": ["/path/to/second-opinion-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"
}
}
}
}
Additional sections
Configuration and security notes: The server runs as a local process that you start with the specified command. Provide your API keys and tokens in the environment to enable Gemini, Perplexity, and Stack Exchange integrations. The same keys are used to power the AI-driven insights and the data sources combined to form the final guidance.
Troubleshooting and notes
If you encounter connection errors, verify that the MCP server process is running and that the configured path to the built index.js is correct. Ensure your API keys are valid and not expired. For best results, keep the dependencies up to date and re-build after any dependency changes.
Available tools
get_second_opinion
The server provides a single tool that returns AI-powered insights and solutions for coding problems based on multiple data sources.