nvidia-nim-mcp

v2.1.2
io.github.david-eve-za/nvidia-nim-mcp Checked 4 days ago Published 5 months ago

MCP server for NVIDIA NIM - 50+ LLMs, multimodal, image gen, embeddings, reranking

Runs scripts at install time.

Values you need

VariableWhat it is
NVIDIA_API_KEYrequired secret Your NVIDIA API key for accessing NIM models. Get one at https://build.nvidia.com
NVIDIA_NIM_BASE_URLoptional Base URL for self-hosted NIM endpoints
NVIDIA_AI_FOUNDATION_URLoptional Base URL for NVIDIA AI Foundation Models (free tier available)
DEFAULT_MODELoptional Default model to use for chat/text generation
ENABLE_IMAGE_GENERATIONoptional Enable image generation tools
ENABLE_VISIONoptional Enable vision/image analysis tools
ENABLE_MULTIMODALoptional Enable multimodal tools

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add nvidia-nim-mcp -e 'NVIDIA_API_KEY=<NVIDIA_API_KEY>' -- npx -y nvidia-nim-mcp@2.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "nvidia-nim-mcp": {
      "args": [
        "-y",
        "nvidia-nim-mcp@2.1.2"
      ],
      "command": "npx",
      "env": {
        "NVIDIA_API_KEY": "<NVIDIA_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "nvidia-nim-mcp": {
      "args": [
        "-y",
        "nvidia-nim-mcp@2.1.2"
      ],
      "command": "npx",
      "env": {
        "NVIDIA_API_KEY": "<NVIDIA_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "NVIDIA_API_KEY",
      "id": "nvidia-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "nvidia-nim-mcp": {
      "args": [
        "-y",
        "nvidia-nim-mcp@2.1.2"
      ],
      "command": "npx",
      "env": {
        "NVIDIA_API_KEY": "${input:nvidia-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.nvidia-nim-mcp]
command = "npx"
args = ["-y", "nvidia-nim-mcp@2.1.2"]
env = { "NVIDIA_API_KEY" = "<NVIDIA_API_KEY>" }

For AI agents

  1. Ask the user for: NVIDIA_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: chat_completion, text_generation, create_embeddings, rerank_passages, function_calling, get_model_info, generate_image, analyze_image, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json