mcp-nvidia-nim
mcp-nvidia-nim is an MCP server that connects AI assistants and agents to NVIDIA NIM cloud models for text queries, deep reasoning, code review, vision analysis, and document extraction.
Query any NVIDIA NIM model directly with
nim_query_model, including aliases, system prompts, temperature, and token limits.Run deep architectural, logical, and tradeoff analysis with
nim_deep_reasonusing Nemotron Ultra/Omni models.Audit source code or git diffs with
nim_review_code, focused on bugs/security, performance, architecture, or general review.Analyze images, diagrams, screenshots, and wireframes with
nim_analyze_visionfrom URLs, local paths, or base64 data URIs.Extract and structure raw PDF/OCR/table/notes content into markdown, JSON, or tables with
nim_extract_document.Inspect rate-limit status, available slots, telemetry, model catalog, and aliases with
nim_status.Use Portuguese compatibility alias tools such as
nim_consultar_modelo,nim_raciocinar_profundo, andnim_revisar_codigo.Benefit from 40 RPM sliding-window rate limiting and automatic fallback chains for resilient model failover.
Integrates with the NVIDIA NIM Cloud API to run LLM prompts, deep reasoning, code review, multimodal vision analysis, document extraction, and translation across NVIDIA-hosted models, with model alias resolution and built-in rate limiting.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-nvidia-nim review this diff for security issues using the code model"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
π― 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) andnvidia/nemotron-3-nano-omni-30b-a3b-reasoning.π» Software Engineering & Code Review:
poolside/laguna-xs-2.1(Poolside's code specialist model) andmistralai/mistral-large-4-1t-a52b.ποΈ Large-Scale Multimodal Vision:
meta/llama-3.2-90b-vision-instructandnvidia/nemotron-3.5-super-vl-120b-a12b.β‘ High Throughput & Low Latency:
nvidia/nemotron-3.5-lightning-30b-a3bandminimaxai/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 |
| Direct prompt query against any NVIDIA NIM model |
|
| In-depth architectural advisory, logic, and tradeoffs |
|
| Technical code and git diff review (security, bugs, performance) |
|
| Multimodal visual inspection for diagrams, wireframes, and screenshots |
|
| Semantic extraction and formatting into markdown, json, or table |
|
| Proactive ping probe across models to detect outages or deprecations | β |
| 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-reasoningUltra Reasoning (
ultra):nvidia/nemotron-3-ultra-550b-a55b$\rightarrow$nvidia/nemotron-3-nano-omni-30b-a3b-reasoning$\rightarrow$mistralai/mistral-large-4-1t-a52bMultimodal Vision (
vision):meta/llama-3.2-90b-vision-instruct$\rightarrow$nvidia/nemotron-3.5-super-vl-120b-a12bSpeed & Agility (
fast):nvidia/nemotron-3.5-lightning-30b-a3b$\rightarrow$minimaxai/minimax-m3.1-flashDocument 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=falseto 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.xNVIDIA 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_KEY3. 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-a55breasoning$\rightarrow$nvidia/nemotron-3-nano-omni-30b-a3b-reasoningfast/lightning$\rightarrow$nvidia/nemotron-3.5-lightning-30b-a3bflash$\rightarrow$minimaxai/minimax-m3.1-flashmistral$\rightarrow$mistralai/mistral-large-4-1t-a52bcode/laguna$\rightarrow$poolside/laguna-xs-2.1vision$\rightarrow$meta/llama-3.2-90b-vision-instructsuper-vl$\rightarrow$nvidia/nemotron-3.5-super-vl-120b-a12bparse$\rightarrow$nvidia/nemotron-parse-2.0translate$\rightarrow$nvidia/riva-translate-4b-instruct-v2guard$\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 Requestsstatus codes with exponential backoff and retry.
π License
Distributed under the MIT License.
Available Tools
11 toolsnim_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
Scored across 11 tools
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.
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.
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.
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
Related MCP Connectors
Connect MCP clients to 2,000+ AI models without managing provider API keys.
Chat, image, video, and audio models from many vendors behind one remote MCP server and one key.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides tools for NVIDIA NIM and Visual GenAI APIs, enabling chat completions, model listing, and image generation via NVIDIA-hosted endpoints.4-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access 140+ NVIDIA NIM models for chat, embeddings, reranking, vision, image generation, OCR, and content safety via stdio.87 npmMIT
- FlicenseNot gradedqualityCmaintenanceProvides a live, audited catalog of AI models from NVIDIA NIM, OpenRouter, Nous Portal, and other providers, enabling search, retrieval, and usage examples via MCP tools and resources.-
- AlicenseBqualityCmaintenanceEnables AI agents to consume 50+ NVIDIA NIM models including LLMs, image generation, and vision through 10 MCP tools with rich metadata and advanced filtering.11119 npm1MIT