Skip to main content
Glama

NVIDIA MCP

Local MCP server for NVIDIA NIM and Visual GenAI APIs. It exposes small, practical tools for:

  • checking NVIDIA API configuration

  • listing available NVIDIA models

  • running chat completions through NVIDIA-hosted LLMs

  • generating images through NVIDIA hosted Visual GenAI endpoints

This repository is a personal MCP wrapper. It does not contain an NVIDIA API key and does not run image generation locally; the MCP process runs on the local machine and calls NVIDIA-hosted APIs for inference.

Key Loading

The server does not store secrets in this repository.

It loads environment variables from:

  1. NVIDIA_MCP_ENV_FILE, when provided

  2. this repository's .env, when present

  3. process environment variables

Supported key names:

  • NVIDIA_API_KEY

  • NGC_API_KEY

  • NVIDIA_KEY

  • nvidia-key

nvidia-key is accepted for compatibility with an existing local .env, but NVIDIA_API_KEY is preferred for new setups.

Related MCP server: NVIDIA NIM MCP Server

Codex MCP Config

Example:

[mcp_servers.nvidiaMcp]
command = "node"
args = ["/path/to/minsoo-nvidia-mcp/src/server.mjs"]
env_vars = ["NVIDIA_API_KEY", "NGC_API_KEY", "NVIDIA_KEY"]

[mcp_servers.nvidiaMcp.env]
NVIDIA_MCP_ENV_FILE = "/path/to/.env"
NVIDIA_MCP_OUTPUT_DIR = "/path/to/minsoo-nvidia-mcp/output"

Image Generation Defaults

The current default image endpoint is:

https://ai.api.nvidia.com/v1/genai/black-forest-labs/flux.2-klein-4b

The MCP uses short, direct, one-paragraph prompts best for FLUX-style image generation. Avoid committing generated images unless they are intentionally part of an example or release artifact.

Safety Defaults

Image generation defaults to dry_run=true so a tool call can preview the request without consuming API credits. Set dry_run=false only when you intentionally want to generate an image.

GitHub Safety

Before publishing:

  • keep .env untracked

  • keep node_modules/ untracked

  • keep output/ untracked unless intentionally publishing sample output

  • commit .env.example, not a real key file

Available Tools

4 tools
chat_completionNVIDIA Chat CompletionB

Run a non-streaming chat completion through NVIDIA's OpenAI-compatible API.

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

check_nvidia_setupCheck NVIDIA SetupA

Check whether the NVIDIA MCP can see an API key and which base URLs/output directory it will use.

Inputs: probe.

generate_imageNVIDIA Image GenerationB

Generate an image through NVIDIA's OpenAI-compatible image generation API. Defaults to dry_run=true to avoid accidental credit usage.

Inputs: prompt (required), n, size, force, +3 more.

list_modelsList NVIDIA ModelsB

List models visible to the configured NVIDIA API key.

Inputs: limit, filter.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct function: chat completion, setup verification, image generation, and model listing. No overlap in purposes.

    Naming Consistency5/5

    All tools use snake_case with clear verb-noun structure: chat_completion, check_nvidia_setup, generate_image, list_models. Perfectly consistent.

    Tool Count5/5

    Four tools is well-scoped for a wrapper around NVIDIA's API, covering essential operations without unnecessary bloat.

    Completeness4/5

    Covers core operations but lacks streaming completions and embeddings, which are common in similar APIs. The generate_image tool also has limited visible parameters.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers