Skip to content

Unified (ask-llm-mcp)

All providers in one MCP server. Auto-detects which CLIs are installed and registers only the available tools. One install, all providers.

Installation

Run in your terminal:

bash
# Project scope (current project only)
claude mcp add ask-llm -- npx -y ask-llm-mcp

# User scope (all projects)
claude mcp add --scope user ask-llm -- npx -y ask-llm-mcp

Or install globally:

bash
npm install -g ask-llm-mcp

Prerequisites

  1. Node.js v20.0.0 or higher
  2. At least one provider installed and authenticated:

How It Works

On startup, the unified server:

  1. Checks for CLI availability via which (Gemini, Codex)
  2. Checks for HTTP availability via health endpoints (Ollama)
  3. Dynamically imports and registers tools from available providers
  4. Exposes only the tools for providers that are actually installed

Tools

All tools from installed providers are registered. If you have all three:

ToolProviderPurpose
ask-geminiGeminiPrompts via Gemini CLI
ask-gemini-editGeminiStructured code edits
fetch-chunkGeminiLarge response chunks
ask-codexCodexPrompts via Codex CLI
ask-ollamaOllamaPrompts via local Ollama
pingAllConnection test per provider

Key Features

  • Single server for all providers
  • Auto-detection of installed CLIs
  • Dynamic tool registration based on availability
  • Graceful degradation if a provider is unavailable

npm

Released under the MIT License.