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

@fastmcp-me/ai-consultant-mcp

v1.0.0

Published

MCP server for consulting with AI models via OpenRouter

Readme

Add to Cursor Add to VS Code Add to Claude Add to ChatGPT Add to Codex Add to Gemini

AI Consultant MCP Server

A Model Context Protocol (MCP) server that enables AI agents to consult with multiple AI models through OpenRouter. Features intelligent model auto-selection, conversation history, caching, and robust error handling.

What is this?

This MCP server allows your AI assistant (like Claude Desktop) to consult with various AI models (GPT, Gemini, Grok, etc.) through a single interface. It automatically selects the best model for your task or lets you choose a specific one.

Quick Start

Installation from npm

npm install -g ai-consultant-mcp

Prerequisites

You'll need an OpenRouter API key. Get one at OpenRouter.

Configuration

Option 1: Using npm package (Recommended)

Edit your MCP client configuration file:

For Claude Desktop:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "ai-consultant": {
      "command": "npx",
      "args": ["-y", "ai-consultant-mcp"],
      "env": {
        "OPENROUTER_API_KEY": "your-openrouter-api-key"
      }
    }
  }
}

For other MCP clients:

Configure according to your client's documentation, using npx -y ai-consultant-mcp as the command.

Option 2: Running locally (Development)

  1. Clone the repository:
git clone https://github.com/filipkrayem/ai-consultant-mcp.git
cd ai-consultant-mcp
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Configure your MCP client:
{
  "mcpServers": {
    "ai-consultant": {
      "command": "node",
      "args": ["/absolute/path/to/ai-consultant-mcp/dist/index.js"],
      "env": {
        "OPENROUTER_API_KEY": "your-openrouter-api-key"
      }
    }
  }
}

Environment Variables

  • OPENROUTER_API_KEY (required): Your OpenRouter API key
  • VERBOSE_LOGGING (optional): Set to true or 1 to enable detailed logging. Default: false

Available Models

  • gemini-2.5-pro: Google's Gemini 2.5 Pro - general purpose tasks and quick questions
  • gpt-5-codex: OpenAI's GPT-5 Codex - coding tasks, debugging, and refactoring
  • grok-code-fast-1: xAI's Grok Code Fast 1 - code review, complex reasoning, and analysis

Features

  • 🤖 Multiple AI models - Access GPT, Gemini, Grok, and more through one interface
  • 🎯 Smart model selection - Automatically picks the best model for your task
  • 💬 Conversation history - Maintain context across multiple questions
  • Response caching - Reduces API calls and costs
  • 🔄 Automatic retries - Handles transient failures gracefully
  • 🛡️ Circuit breaker - Prevents cascading failures
  • 📊 Token tracking - Monitor usage for each consultation

Usage

Once configured, your AI assistant can use these tools:

  • consult_ai - Ask questions to AI models (auto-selects or specify a model)
  • list_models - See all available models and their capabilities

Simply ask your AI assistant to consult with AI models. For example:

  • "Consult this change with Grok and Codex"
  • "Have Grok review your code first"

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Links