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-mcpOr install globally:
bash
npm install -g ask-llm-mcpPrerequisites
- Node.js v20.0.0 or higher
- At least one provider installed and authenticated:
- Gemini CLI for
ask-geminitools - Codex CLI for
ask-codextools - Ollama running locally for
ask-ollamatools
- Gemini CLI for
How It Works
On startup, the unified server:
- Checks for CLI availability via
which(Gemini, Codex) - Checks for HTTP availability via health endpoints (Ollama)
- Dynamically imports and registers tools from available providers
- Exposes only the tools for providers that are actually installed
Tools
All tools from installed providers are registered. If you have all three:
| Tool | Provider | Purpose |
|---|---|---|
ask-gemini | Gemini | Prompts via Gemini CLI |
ask-gemini-edit | Gemini | Structured code edits |
fetch-chunk | Gemini | Large response chunks |
ask-codex | Codex | Prompts via Codex CLI |
ask-ollama | Ollama | Prompts via local Ollama |
ping | All | Connection 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
- Package: ask-llm-mcp
- Binary:
ask-llm-mcp