AI Consultant (OpenRouter)

AI Consultant (OpenRouter)

filipkrayem

AI Consultant (OpenRouter) delivers intelligent consultations, multi-model support, and reliable conversation management

Integrates with OpenRouter's API to provide AI consultation capabilities across multiple models with intelligent model selection, conversation history management, and enterprise-grade reliability features.

1292 views1Local (stdio)

About AI Consultant (OpenRouter)

AI Consultant (OpenRouter) is a community-built MCP server published by filipkrayem that provides AI assistants with tools and capabilities via the Model Context Protocol. AI Consultant (OpenRouter) delivers intelligent consultations, multi-model support, and reliable conversation management It is categorized under ai ml, developer tools.

How to install

You can install AI Consultant (OpenRouter) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

AI Consultant (OpenRouter) is released under the NOASSERTION license.

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

Alternatives

Related Skills

Browse all skills
ui-design-system

UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.

18
ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".

6
openrouter-function-calling

Implement function/tool calling with OpenRouter models. Use when building agents or structured outputs. Trigger with phrases like 'openrouter functions', 'openrouter tools', 'openrouter agent', 'function calling'.

5
api-documenter

Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.

4
openai-knowledge

Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.

4
cli-builder

Guide for building TypeScript CLIs with Bun. Use when creating command-line tools, adding subcommands to existing CLIs, or building developer tooling. Covers argument parsing, subcommand patterns, output formatting, and distribution.

3