Skip to main content
Glama

Ask GPT-5.2-Codex, Gemini & 200+ Models — Without Leaving Claude Code

License Node Claude OpenRouter GitHub stars

   ➜      ➜   

Get instant second opinions, code reviews, and architecture feedback directly inside Claude.

No context switching. No copy-paste. Just ask.

Uses your own OpenRouter API key — no middleman, no telemetry, you're in control.

30-Second Install • See It Work • Examples • Uninstall


This project was reviewed and improved by GPT-5.2-Codex via OpenRouter — proving the tool works! See the contribution details.

  • Instant code review from GPT-5.2-Codex without leaving Claude

  • Compare approaches across different LLMs in one conversation

  • Catch edge cases by getting a second opinion in seconds

  • Stay in flow — no tab switching, no context loss

"Ask GPT-5.2-Codex to review this function" — that's it. Claude handles the rest.

This MCP server lets Claude query 200+ models via OpenRouter — all in the same conversation.

Related MCP server: AI Consultant MCP Server

🎯 How It Works

flowchart TD
    A["🧑‍💻 You + Claude Code"] -->|"Ask GPT-5.2-Codex to review"| B["🌉 Claude Hub<br/>MCP Bridge"]
    B --> C["🔀 OpenRouter API"]
    C --> D["GPT-5.2 Codex"]
    C --> E["Gemini 2.5"]
    C --> F["DeepSeek R1"]
    C --> G["...200+ models"]
    D & E & F & G --> H["📨 Response via Claude"]
    H --> I["✅ You get the answer"]

Just ask naturally — Claude handles the rest:

You: "Write a function to parse CSV files"

Claude: [writes the function]

You: "Ask GPT-5.2-Codex if there's a better approach"
      ~~~~~~~~~~~~~~ ← just name the model you want

Claude: [calls OpenRouter API → GPT-5.2-Codex]

Claude: "GPT-5.2-Codex suggests using a streaming parser for large files..."

You: "Good idea, let's update it"

Claude: [updates the code]

No special commands needed. Just say "ask GPT-5.2-Codex", "have Gemini review", "get DeepSeek's opinion" — Claude figures out which model to call.

✨ Features

Feature

Description

200+ Models

GPT-5.2-Codex, Gemini, DeepSeek, Llama, Mistral, and more

Same Session

No switching apps or copying code

Your Context

Other models see what you're working on

Quick Access

Just ask Claude to get another opinion

📋 Prerequisites

Requirement

Where to get it

Claude Code CLI

claude.ai/download (requires Pro subscription)

Node.js 18+

nodejs.org

OpenRouter Account

openrouter.ai (free tier available)

OpenRouter API Key

openrouter.ai/keys

🚀 Quick Start

Option A: Download ZIP (no git needed)

  1. Download: Click here to download ZIP

  2. Extract the ZIP file (you'll get Claude_GPT_MCP-main folder)

  3. Open terminal in that folder:

    • Windows: Right-click folder → "Open in Terminal"

    • Mac: Right-click folder → "New Terminal at Folder"

    • Linux: Right-click → "Open Terminal Here"

  4. Run the installer:

    ./setup.sh

    Windows users may need: bash setup.sh

Option B: Clone with git

git clone https://github.com/stefans71/Claude_GPT_MCP.git
cd Claude_GPT_MCP
./setup.sh

Option C: Install on a VPS/Remote Server

1. SSH into your VPS and navigate to your home directory (or wherever Claude Code is installed)

ssh user@your-server.com
cd ~

2. Run this one-liner:

curl -sL https://github.com/stefans71/Claude_GPT_MCP/archive/refs/heads/main.tar.gz | tar -xz && cd Claude_GPT_MCP-main && ./setup.sh

That's it! This downloads, extracts, and runs setup in one command. No git required.

3. Restart Claude Code and you're ready.

VPS Notes:

  • Your OpenRouter API key is stored in ~/.claude.json (passed directly to the MCP server)

  • For Docker/containerized Claude: set OPENROUTER_API_KEY as an environment variable


The installer handles everything:

  • ✓ Installs dependencies

  • ✓ Prompts for your OpenRouter API key

  • ✓ Configures Claude Code automatically

Restart Claude Code and you're ready.

💬 Examples

Get a Second Opinion

"Ask GPT-5.2-Codex to review this function"
"What would Gemini do differently here?"
"Have DeepSeek check this for edge cases"

Compare Approaches

"Ask GPT-5.2-Codex and Gemini how they'd implement this"
"Get Claude and GPT-5.2-Codex's opinion on this architecture"

Specialized Tasks

"Ask GPT-5.2-Codex to optimize this algorithm"
"Have DeepSeek explain this regex"
"Get Gemini's take on this SQL query"

Explore Models

"What models are available?"
"Show me models good for coding"
"Set my default to GPT-5.2-Codex"

🔧 Management

Check Your Setup

./setup.sh --show-key   # View API key (masked)
./setup.sh --help       # All options

Change API Key

./setup.sh --set-key

Or just ask Claude: "Change my OpenRouter API key"

What Gets Removed?

Component

Removed?

Details

OpenRouter from Claude

Yes

Only the "openrouter" entry in ~/.claude.json — your other Claude settings stay intact

Your API key

Optional

You choose — the script asks before removing

The folder

Manual

You delete it yourself after uninstalling

Important: This only removes OpenRouter. Your other Claude Code settings and API keys for other services are untouched.


Using the Uninstaller Script

1. Open your terminal

  • Windows: Open PowerShell or Command Prompt

  • Mac: Open Terminal (Applications → Utilities → Terminal)

  • Linux: Open your terminal

2. Navigate to where you installed it

If you downloaded the ZIP:

cd ~/Downloads/Claude_GPT_MCP-main    # or wherever you extracted it

If you cloned with git:

cd Claude_GPT_MCP    # or wherever you cloned it

3. Run the uninstaller

./setup.sh --uninstall

4. Follow the prompts

  • It will ask to remove OpenRouter from Claude Code → Yes

  • It will ask to remove your API key → Your choice (Yes = removes the OPENROUTER_API_KEY line from your shell config)

5. Restart Claude Code


Delete the Files (Optional)

After running the uninstaller, you can delete the folder:

# First, exit the folder
cd ..

# Then delete it
rm -rf Claude_GPT_MCP-main    # if you used ZIP
rm -rf Claude_GPT_MCP         # if you used git

Windows users: Just delete the folder normally in File Explorer.


This works for both ZIP downloads and git clones.

Step 1: Remove OpenRouter from Claude Code config

Open ~/.claude.json in a text editor:

# Mac/Linux
nano ~/.claude.json

# Windows (in PowerShell)
notepad $env:USERPROFILE\.claude.json

Find and delete ONLY the "openrouter": { ... } section. Keep everything else.

Before:

{
  "mcpServers": {
    "openrouter": {
      "command": "node",
      "args": ["/path/to/dist/index.js"]
    },
    "other-server": { ... }
  }
}

After:

{
  "mcpServers": {
    "other-server": { ... }
  }
}

Step 2: Remove API key (optional)

Open your shell config:

# Mac
nano ~/.zshrc

# Linux
nano ~/.bashrc

Find and delete the line:

export OPENROUTER_API_KEY="sk-or-..."

Step 3: Delete the folder

# Mac/Linux
rm -rf /path/to/Claude_GPT_MCP

# Windows - just delete the folder in File Explorer

📁 Where Things Live

File

What it does

~/.claude.json

Claude Code config + your API key (in env section)

~/.config/openrouter-mcp/config.json

Your preferences (default model, favorites) + API key backup

🐛 Troubleshooting

"OPENROUTER_API_KEY not set"

./setup.sh --set-key

MCP not loading

claude --mcp-debug

Model not found

"What models are available?"

Built With

Built with Multi-Model Collaboration

This project practices what it preaches. GPT-5.2-Codex reviewed and improved this codebase via OpenRouter, demonstrating real multi-model workflows:

Reviewed by GPT-5.2-Codex

Improvements Made

setup.sh

Fixed macOS compatibility, improved error handling, added config backups

package.json

Added missing metadata, keywords, proper exports

README.md

Made more enticing, added trust/security section

This is exactly how the tool is meant to be used — Claude writes code, another model reviews it, and you get better results.

Privacy & Security

  • Your API key stays local — stored only on your machine

  • Direct to OpenRouter — requests go straight to OpenRouter, not through any middleman

  • No telemetry — we don't collect any data

  • Open source — inspect the code yourself

Cost

OpenRouter offers a free tier with many models available at no cost. Pay-per-use pricing for premium models. See openrouter.ai/models for current pricing.


Available Tools

8 tools
add_favoriteB

Add a model to your favorites list

Inputs: model (required).

add_shortcutC

Add a custom model shortcut for easier access

Inputs: model_id (required), shortcut (required).

ask_modelA

Ask a question to any model available on OpenRouter. Use this to get a second opinion, compare approaches, or leverage different model strengths.

Inputs: prompt (required), model, context.

get_configA

Get current OpenRouter MCP configuration (default model, favorites, shortcuts)

Inputs: no named parameters.

list_modelsB

List available models from OpenRouter with pricing info

Inputs: limit, filter.

remove_favoriteB

Remove a model from your favorites list

Inputs: model (required).

set_api_keyB

Store your OpenRouter API key in the config file (alternative to environment variable)

Inputs: api_key (required).

set_default_modelC

Set the default model for ask_model queries

Inputs: model (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools target clearly distinct operations: querying a model (ask_model), listing models (list_models), and config management (get/set). The only mild overlap is add_shortcut versus add_favorite, since both organize model access, but descriptions distinguish them adequately.

    Naming Consistency5/5

    Every name follows a clean snake_case verb_noun pattern (ask_model, list_models, set_default_model, get_config, add_favorite, remove_favorite). Verb choices are consistent within their families.

    Tool Count5/5

    Eight tools is well-scoped for an OpenRouter integration covering querying, discovery, and configuration. Each tool maps to a distinct capability without padding.

    Completeness3/5

    Favorites have both add and remove, but shortcuts only have add_shortcut with no remove_shortcut, creating an asymmetric gap. Config is readable via get_config but there is no general update, and there is no way to unset the default or list shortcuts directly.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Gives Claude access to multiple AI models (Gemini, OpenAI, OpenRouter, Ollama) for enhanced development capabilities including extended reasoning, collaborative development, code review, and advanced debugging.
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI agents to consult with multiple AI models (GPT, Gemini, Grok, etc.) through OpenRouter with intelligent auto-selection, conversation history, and caching. Allows your AI assistant to seek expert opinions from specialized models for different tasks like coding, analysis, or general questions.
      2
      1
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Gives Claude Desktop access to multiple AI models (Gemini, OpenAI, OpenRouter, Ollama) for enhanced development capabilities including extended reasoning, collaborative development, code review, debugging, and large context analysis with conversation threading.
      40 npm
      1
      -