AI Consultant (OpenRouter)
FreeNot checkedIntegrates with OpenRouter's API to provide AI consultation capabilities across multiple models with intelligent model selection, conversation history managemen
About
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.
README
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)
- Clone the repository:
git clone https://github.com/filipkrayem/ai-consultant-mcp.git
cd ai-consultant-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
- 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 keyVERBOSE_LOGGING(optional): Set totrueor1to 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
Install AI Consultant (OpenRouter) in Claude Desktop, Claude Code & Cursor
unyly install ai-consultant-openrouterInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add ai-consultant-openrouter -- npx -y ai-consultant-mcpStep-by-step: how to install AI Consultant (OpenRouter)
FAQ
Is AI Consultant (OpenRouter) MCP free?
Yes, AI Consultant (OpenRouter) MCP is free — one-click install via Unyly at no cost.
Does AI Consultant (OpenRouter) need an API key?
No, AI Consultant (OpenRouter) runs without API keys or environment variables.
Is AI Consultant (OpenRouter) hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install AI Consultant (OpenRouter) in Claude Desktop, Claude Code or Cursor?
Open AI Consultant (OpenRouter) on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare AI Consultant (OpenRouter) with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
