Skip to main content
Glama

mcp-nvidia-nim

TypeScript MCP (Model Context Protocol) server for orchestrating Large Language Models (LLMs), Deep Reasoning, Multimodal Vision, and Code Engineering via the NVIDIA NIM Cloud API.

TypeScript pnpm MCP CI License: MIT


🎯 Overview

mcp-nvidia-nim connects AI assistants and agents (Google Antigravity, Claude Desktop, Cursor, Roo-Code, etc.) directly to the official NVIDIA NIM cloud catalog. It features built-in 40 RPM sliding-window rate limiting (matching NVIDIA's free tier quota), intelligent model alias resolution, automatic fallback chains for zero-downtime model failover, proactive catalog health checks, and seamless support for local and remote image inputs.

🌟 Verified Model Highlights

  • 🧠 Ultra-Scale Reasoning & Architecture: nvidia/nemotron-3-ultra-550b-a55b (550 billion parameters) and nvidia/nemotron-3-nano-omni-30b-a3b-reasoning.

  • πŸ’» Software Engineering & Code Review: poolside/laguna-xs-2.1 (Poolside's code specialist model) and mistralai/mistral-large-4-1t-a52b.

  • πŸ‘οΈ Large-Scale Multimodal Vision: meta/llama-3.2-90b-vision-instruct and nvidia/nemotron-3.5-super-vl-120b-a12b.

  • ⚑ High Throughput & Low Latency: nvidia/nemotron-3.5-lightning-30b-a3b and minimaxai/minimax-m3.1-flash.

  • πŸ“„ Document & Data Extraction: nvidia/nemotron-parse-2.0 (OCR, table, and markdown parser).

  • 🌐 Technical Multilingual Translation: nvidia/riva-translate-4b-instruct-v2.


Related MCP server: NVIDIA NIM MCP Server

πŸ› οΈ MCP Tools Reference

Tool Name

Description

Default Model / Fallback

nim_query_model

Direct prompt query against any NVIDIA NIM model

mistral $\rightarrow$ reasoning

nim_deep_reason

In-depth architectural advisory, logic, and tradeoffs

nemotron-ultra (550B) $\rightarrow$ reasoning $\rightarrow$ mistral

nim_review_code

Technical code and git diff review (security, bugs, performance)

code (poolside/laguna-xs-2.1) $\rightarrow$ mistral

nim_analyze_vision

Multimodal visual inspection for diagrams, wireframes, and screenshots

vision (meta/llama-3.2-90b-vision-instruct) $\rightarrow$ super-vl

nim_extract_document

Semantic extraction and formatting into markdown, json, or table

parse (nvidia/nemotron-parse-2.0) $\rightarrow$ mistral

nim_health_check

Proactive ping probe across models to detect outages or deprecations

β€”

nim_status

Real-time rate limiter telemetry (40 RPM window), metrics, and catalog

β€”


πŸ›‘οΈ Automatic Fallback Chains (Resilience Architecture)

NVIDIA cloud endpoints can occasionally change, undergo maintenance, or deprecate specific model function UUIDs. To ensure your AI agents never break in production, mcp-nvidia-nim implements automatic failover:

Requested: [code] (poolside/laguna-xs-2.1)
           └── (HTTP 404 / 403 / Timeout) ──> Automatic Failover ──> [mistralai/mistral-large-4-1t-a52b]

Fallback Matrix:

  • Code Engineering (code): poolside/laguna-xs-2.1 $\rightarrow$ mistralai/mistral-large-4-1t-a52b $\rightarrow$ nvidia/nemotron-3-nano-omni-30b-a3b-reasoning

  • Ultra Reasoning (ultra): nvidia/nemotron-3-ultra-550b-a55b $\rightarrow$ nvidia/nemotron-3-nano-omni-30b-a3b-reasoning $\rightarrow$ mistralai/mistral-large-4-1t-a52b

  • Multimodal Vision (vision): meta/llama-3.2-90b-vision-instruct $\rightarrow$ nvidia/nemotron-3.5-super-vl-120b-a12b

  • Speed & Agility (fast): nvidia/nemotron-3.5-lightning-30b-a3b $\rightarrow$ minimaxai/minimax-m3.1-flash

  • Document Parsing (parse): nvidia/nemotron-parse-2.0 $\rightarrow$ mistralai/mistral-large-4-1t-a52b

When a fallback triggers, the response seamlessly includes an advisory notice informing the caller of the redirection.


πŸ₯ On-Demand Health Diagnostics & Quota Guardrails (nim_health_check)

Model health checks are designed to be strictly reactive and on-demand, ensuring that the 40 RPM quota is dedicated exclusively to productive coding and analysis tasks:

  • Strictly Reactive Trigger: AI agents never run health checks proactively or on periodic routines. Diagnostic probes are executed only when a fallback chain fails or when you explicitly ask the agent to test endpoint health.

  • Quota Reservation Floor (NVIDIA_MIN_RPM_RESERVE=15): Probes automatically yield if available slots drop below 15 in the current 60s sliding window. Active agent queries always take strict priority over diagnostics.

  • TTL Cache (NVIDIA_HEALTHCHECK_CACHE_TTL_MS=600000): Health reports are cached for 10 minutes. Repeated calls return instantaneous cached results with zero RPM cost.

  • Passive Health Telemetry (0 RPM Cost): Every regular model invocation (nim_query_model, nim_deep_reason, nim_review_code, etc.) passively updates model status in the health cache in real-time.

  • Selective Probing: Targeted probes can evaluate individual models (models: ["poolside/laguna-xs-2.1"]) or the 4 core anchor models, minimizing quota footprint.

  • Manual Force Override: Call nim_health_check(force: true) to bypass cache and safety floor when an immediate live diagnostic is required.

  • Disable Toggle: Set NVIDIA_HEALTHCHECK_ENABLED=false to completely disable synthetic background probes.

Status Categorization:

  • 🟒 Healthy (latency $< 3000\text{ms}$, HTTP 200)

  • 🟑 Degraded (latency $\ge 3000\text{ms}$, HTTP 200)

  • πŸ”΄ Unavailable (HTTP 404, 403, 500, or timeout)


πŸš€ Getting Started

1. Prerequisites

  • Node.js >= 20.x (tested on Node 20, 22, 24)

  • pnpm >= 10.x

  • NVIDIA NIM API Key (nvapi-... from build.nvidia.com)

2. Installation & Setup

git clone https://github.com/luizGDpulz/mcp-nvidia-nim.git
cd mcp-nvidia-nim

# Install dependencies
pnpm install

# Configure environment variables
cp .env.example .env
chmod 600 .env
# Edit .env and paste your NVIDIA_API_KEY

3. Build & Test

# Compile TypeScript to dist/
pnpm build

# Run unit test suite
pnpm test

βš™οΈ Environment Configuration (.env)

# NVIDIA NIM API Key
NVIDIA_API_KEY=nvapi-your-key-here

# Base URL (official endpoint)
NVIDIA_BASE_URL=https://integrate.api.nvidia.com/v1

# Rate limit per minute (standard free tier is 40 RPM)
NVIDIA_RATE_LIMIT_RPM=40

# Default model for standard queries
NVIDIA_DEFAULT_MODEL=mistralai/mistral-large-4-1t-a52b

# Quota Guardrails & Telemetry Protection
NVIDIA_HEALTHCHECK_ENABLED=true
NVIDIA_MIN_RPM_RESERVE=15
NVIDIA_HEALTHCHECK_CACHE_TTL_MS=600000

πŸ”Œ MCP Client Configuration (e.g. Antigravity / Claude Desktop)

Add the server to your MCP configuration file (~/.gemini/config/mcp_config.json or claude_desktop_config.json):

{
  "mcpServers": {
    "nvidia-nim": {
      "command": "node",
      "args": [
        "/home/ubuntu/dev/mcp-nvidia-nim/dist/index.js"
      ]
    }
  }
}

🏷️ Model Aliases

When calling nim_query_model, you can pass handy shorthand aliases in the model parameter:

  • ultra $\rightarrow$ nvidia/nemotron-3-ultra-550b-a55b

  • reasoning $\rightarrow$ nvidia/nemotron-3-nano-omni-30b-a3b-reasoning

  • fast / lightning $\rightarrow$ nvidia/nemotron-3.5-lightning-30b-a3b

  • flash $\rightarrow$ minimaxai/minimax-m3.1-flash

  • mistral $\rightarrow$ mistralai/mistral-large-4-1t-a52b

  • code / laguna $\rightarrow$ poolside/laguna-xs-2.1

  • vision $\rightarrow$ meta/llama-3.2-90b-vision-instruct

  • super-vl $\rightarrow$ nvidia/nemotron-3.5-super-vl-120b-a12b

  • parse $\rightarrow$ nvidia/nemotron-parse-2.0

  • translate $\rightarrow$ nvidia/riva-translate-4b-instruct-v2

  • guard $\rightarrow$ nvidia/llama-3.1-nemotron-safety-guard-8b-v3


πŸ›‘οΈ Sliding Window Rate Limiting (FIFO 40 RPM)

The server enforces an in-memory sliding window rate limiter:

  • Uses a chained asynchronous FIFO queue (mutexChain) ensuring strict sequential slot reservation without race conditions under parallel bursts.

  • If the 40 requests/min threshold is reached, subsequent requests automatically sleep and wait for the earliest slot to expire before executing.

  • Gracefully handles upstream 429 Too Many Requests status codes with exponential backoff and retry.


πŸ“„ License

Distributed under the MIT License.

Available Tools

11 tools
nim_analisar_visaoC

Alias para nim_analyze_vision (compatibilidade com versΓ΅es anteriores)

Inputs: pergunta (required), imagem_url_ou_arquivo (required), modelo.

nim_analyze_visionC

Analyzes images, architecture diagrams, screenshots, and wireframes using large multimodal models (Llama 3.2 90B Vision or Nemotron Super VL 120B)

Inputs: prompt (required), image_url_or_path (required), model.

nim_consultar_modeloB

Alias para nim_query_model (compatibilidade com versΓ΅es anteriores)

Inputs: prompt (required), modelo, max_tokens, temperature, +1 more.

nim_deep_reasonA

Leverages NVIDIA large-scale reasoning models (Nemotron-3 Ultra 550B or Nemotron-3 Omni Reasoning) for deep system architecture, complex logic, and tradeoff analysis

Inputs: problem (required), mode, context.

nim_extract_documentB

Processes and structures raw dumps from PDFs, tables, unorganized notes, or OCR using Nemotron Parse 2.0

Inputs: raw_content (required), target_format.

nim_extrair_documentoC

Alias para nim_extract_document (compatibilidade com versΓ΅es anteriores)

Inputs: conteudo_bruto (required), formato_desejado.

nim_query_modelB

Executes a direct prompt query against any NVIDIA NIM model (e.g. Nemotron Ultra 550B, Mistral Large, MiniMax Flash, etc.)

Inputs: prompt (required), model, max_tokens, temperature, +1 more.

nim_raciocinar_profundoC

Alias para nim_deep_reason (compatibilidade com versΓ΅es anteriores)

Inputs: problema (required), modo, contexto.

nim_review_codeC

Audits source code or git diffs using software engineering specialist models (Poolside Laguna XS or Mistral Large)

Inputs: code_or_diff (required), focus, model, language.

nim_revisar_codigoC

Alias para nim_review_code (compatibilidade com versΓ΅es anteriores)

Inputs: codigo_ou_diff (required), foco, modelo, linguagem.

nim_statusA

Reports rate limiting status (40 RPM quota), available slots, execution telemetry, and supported model catalog and aliases

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 11 tools

    Disambiguation2/5

    Half the tool set consists of explicit aliases (Portuguese names) that duplicate the English tools exactly, making it impossible to infer any selection difference. The six unique capabilities are distinct, but the aliases create multiple unclear boundaries and invite misselection.

    Naming Consistency3/5

    All names use a consistent nim_ prefix and snake_case, which is readable. However, the set mixes English and Portuguese conventions, and the alias pairs introduce duplicate naming patterns rather than a single predictable scheme.

    Tool Count3/5

    Eleven tools is a reasonable raw count, but five are redundant aliases, leaving only six unique capabilities. The aliases inflate the surface without adding functionality, making the count feel heavier than necessary.

    Completeness4/5

    The unique tools cover the core NIM lifecycle: status/quota inspection, general query, deep reasoning, code review, vision analysis, and document extraction. Minor gaps exist (e.g., no explicit model listing beyond status), but agents can work around them.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers