npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

second-opinion-mcp-server

v0.4.1

Published

MCP server that queries multiple AI models via OpenRouter for second opinions on any question

Readme

second-opinion-mcp-server

CI License: MIT Node.js

An MCP server that queries multiple AI models in parallel via OpenRouter, giving your AI agent a "second opinion" on any question.

Quick Start

  1. Get an API key from OpenRouter
  2. Add to your MCP client config:
{
  "mcpServers": {
    "second-opinion": {
      "command": "npx",
      "args": ["-y", "second-opinion-mcp-server"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-..."
      }
    }
  }
}

To run from a local clone instead, build first then point to the dist entry:

{
  "mcpServers": {
    "second-opinion": {
      "command": "node",
      "args": ["/path/to/second_opinion/dist/index.js"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-..."
      }
    }
  }
}

Tools

get_second_opinion

Sends a query to multiple AI models in parallel and returns all responses as formatted Markdown.

Input:

  • query (string, required) — The question or prompt to send to all models
  • context (string, optional) — Additional context prepended to the query
  • system_prompt (string, optional) — System prompt sent to all models
  • models (string[], optional) — Override configured models for this request
  • max_tokens (number, optional) — Max response tokens per model
  • temperature (number, optional) — Sampling temperature (0-2)

review_code

Send code to multiple AI models for review with a specific focus area.

Input:

  • code (string, required) — The code to review
  • language (string, optional) — Programming language
  • focus (enum, required) — Review focus: security, performance, style, or bugs
  • models (string[], optional) — Override configured models
  • max_tokens (number, optional) — Max response tokens per model

compare_approaches

Compare two or more technical approaches by sending them to multiple AI models.

Input:

  • question (string, required) — The decision or problem to evaluate
  • approaches (string[], required, min 2) — The approaches to compare
  • models (string[], optional) — Override configured models

fact_check

Fact-check a claim across multiple AI models, prioritizing search-augmented models.

Input:

  • claim (string, required) — The claim to fact-check
  • models (string[], optional) — Override configured models

follow_up

Drill deeper into a previous second-opinion response. Send the markdown from a prior tool call as context, then ask a follow-up question.

Input:

  • previous_responses (string, required) — The markdown output from a prior second-opinion tool call
  • question (string, required) — The follow-up question to ask
  • system_prompt (string, optional) — System prompt sent to all models
  • models (string[], optional) — Override configured models
  • max_tokens (number, optional) — Max response tokens per model
  • temperature (number, optional) — Sampling temperature (0-2)

list_models

Return configured models with pricing, context length, and capabilities.

Input: none

Output: JSON array where each entry includes: id, name, context_length, max_completion_tokens, modality, input_cost_per_token, output_cost_per_token.

Resources

second-opinion://config

Returns server configuration as JSON (models, timeout, default temperature/max_tokens).

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | OPENROUTER_API_KEY | Yes | - | Your OpenRouter API key | | SECOND_OPINION_MODELS | No | See below | Comma-separated model IDs | | SECOND_OPINION_TIMEOUT | No | 30000 | Per-model timeout in ms | | SECOND_OPINION_TEMPERATURE | No | - | Default sampling temperature (0-2) | | SECOND_OPINION_MAX_TOKENS | No | - | Default max response tokens |

Default Models

  • openai/gpt-5.2
  • google/gemini-3-pro-preview
  • x-ai/grok-4.1-fast
  • perplexity/sonar-reasoning-pro

Override with SECOND_OPINION_MODELS:

"env": {
  "OPENROUTER_API_KEY": "sk-or-...",
  "SECOND_OPINION_MODELS": "openai/gpt-4o,meta-llama/llama-3-70b-instruct"
}

Development

npm install
npm run build
npm test
OPENROUTER_API_KEY=sk-or-... node dist/index.js

License

MIT