🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ask-llm/mcp

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ask-llm/mcp

Unified MCP server for multi-LLM consultation — registers tools from all available providers (Gemini, Codex, Claude, Ollama, Antigravity) behind runtime availability checks

Source
npmnpm
Version
0.5.2
Version published
Weekly downloads
116
-67.23%
Maintainers
1
Weekly downloads
 
Created
Source

Ask LLM MCP (Unified)

npm version npm downloads License: MIT

All LLM providers in one MCP server — auto-detects what's installed

A unified MCP server that auto-detects installed LLM providers (Gemini, Codex, Claude, Ollama, Antigravity) and registers only the available tools. One install, all providers. Works with Claude Code, Codex CLI, Cursor, Warp, Copilot, and 40+ other MCP clients.

Part of the Ask LLM monorepo.

Quick Start

Claude Code

claude mcp add ask-llm -- npx -y @ask-llm/mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "ask-llm": {
      "command": "npx",
      "args": ["-y", "@ask-llm/mcp"]
    }
  }
}

Prerequisites

  • Node.js v20.0.0 or higher
  • At least one provider installed:

How It Works

On startup, the unified server:

  • Checks CLI availability (Gemini, Codex, Claude, Antigravity)
  • Checks 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

The orchestrator exposes a single ask-llm tool (not one tool per provider — ADR-029, for token efficiency); you pick the provider per call. When any provider is installed it registers:

ToolPurpose
ask-llmRoute a prompt to a provider via the provider param (gemini, codex, claude, ollama, antigravity); optional sessionId for multi-turn
multi-llmDispatch one prompt to multiple providers in parallel; structured per-provider report
get-usage-statsPer-session token totals + per-provider/model breakdowns (in-memory)
diagnoseEnvironment diagnostics — provider CLI presence + versions
pingConnection test

Claude is intentionally suppressed when the MCP host is already Claude Code because Claude Code rejects nested Claude sessions. It is auto-detected normally from Codex and other clients.

Documentation

Full docs at lykhoyda.github.io/ask-llm

License

MIT

Keywords

mcp

FAQs

Package last updated on 14 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts