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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

chat_completion

Send a multi-turn conversation to a NVIDIA NIM language model and receive a completion. Supports all major open-source LLMs including Llama 3.1, Mistral, Gemma, Qwen, and more.

ParameterTypeDescription
messages *array
max_tokensinteger
modelstringNIM model ID (optional, uses default if not set)
seedinteger
stop
system_promptstringSystem prompt to prepend
temperaturenumber
top_pnumber

text_generation

Generate text from a single prompt (simplified interface). Ideal for one-shot tasks like summarization, translation, extraction, or Q&A.

ParameterTypeDescription
prompt *stringText prompt
max_tokensinteger
modelstring
stop
system_promptstring
temperaturenumber

create_embeddings

Convert text(s) into vector embeddings using NVIDIA NIM embedding models. Useful for semantic search, RAG, clustering, and similarity comparisons.

ParameterTypeDescription
input *Text or list of texts to embed
encoding_formatstring
modelstringEmbedding model ID (e.g. nvidia/nv-embed-v1)
truncatestring

rerank_passages

Rerank a list of passages by relevance to a query using NVIDIA NIM reranking models. Essential for RAG pipelines to improve retrieval quality.

ParameterTypeDescription
passages *array
query *stringSearch query
modelstringReranking model ID
top_kintegerReturn top K results
truncatestring

function_calling

Use NIM models with tool/function calling capabilities. The model will decide which function to call and with what arguments.

ParameterTypeDescription
messages *array
tools *array
max_tokensinteger
modelstring
temperaturenumber
tool_choice

get_model_info

Get detailed information about a specific NVIDIA NIM model.

ParameterTypeDescription
model_id *stringThe model ID

generate_image

Generate images from text prompts using NVIDIA NIM image generation models (Stable Diffusion XL, SDXL Turbo, SD3, FLUX.1). Supports various resolutions, samplers, and schedulers. FLUX.1-schnell and FLUX.1-kontext-dev are available on the free NVIDIA AI Foundation tier. Can save generated images as PNG files to disk.

ParameterTypeDescription
prompt *stringText prompt describing the image to generate
aspect_ratiostringAspect ratio for output (e.g., 'match_input_image', '1:1', '16:9', '4:3', '3:4', '21:9')
cfg_scalenumberClassifier-free guidance scale
heightintegerImage height in pixels
imagestringBase64 data URL of input image (required for FLUX Kontext image-to-image editing, format: data:image/png;base64,...)
modelstringImage generation model ID (e.g., nvidia/stable-diffusion-xl, nvidia/sdxl-turbo, stabilityai/sd-3-medium, black-forest-labs/flux.1-dev, black-forest-labs/flux.1-schnell, black-forest-labs/flux.1-kontex…
negative_promptstringNegative prompt to avoid unwanted features
num_imagesintegerNumber of images to generate
response_formatstringResponse format: URL or base64 JSON
samplerstringSampler algorithm (e.g., euler, euler_a, dpmpp_2m, dpmpp_sde, ddim)
save_filenamestringOptional filename (without extension) to auto-generate path in current directory (e.g., 'my-image' creates './my-image.png')
save_pathstringOptional file path to save the generated image as PNG (e.g., './output/image.png' or '/absolute/path/image.png')
schedulerstringScheduler type (e.g., karras, exponential, simple, ddim_uniform)
seedintegerRandom seed for reproducibility
stepsintegerNumber of diffusion steps (ignored for FLUX Schnell, fixed at 4)
widthintegerImage width in pixels

analyze_image

Analyze and describe images using NVIDIA NIM vision and multimodal models. Provide an image URL and a prompt/question to get detailed analysis, captioning, or visual Q&A.

ParameterTypeDescription
image_url *stringURL of the image to analyze
prompt *stringAnalysis prompt or question about the image (e.g., 'Describe this image', 'What objects are in this image?', 'Extract text from this image')
detailstringImage detail level for analysis
max_tokensintegerMaximum tokens in response
modelstringVision/multimodal model ID (e.g., meta/llama-3.2-90b-vision-instruct, meta/llama-3.2-11b-vision-instruct, nvidia/neva-22b, microsoft/phi-3.5-vision-instruct)
system_promptstringSystem prompt to guide the analysis
temperaturenumberSampling temperature
top_pnumberNucleus sampling parameter

multimodal_task

Perform multimodal tasks combining text and images. Send a conversation with mixed text and image content to multimodal models for complex reasoning across modalities.

ParameterTypeDescription
messages *arrayConversation messages with optional images. Each message can have text content or an array of text and image_url parts.
max_tokensinteger
modelstringMultimodal model ID (e.g., nvidia/neva-22b, microsoft/phi-3.5-vision-instruct, meta/llama-3.2-90b-vision-instruct)
streamboolean
temperaturenumber
top_pnumber

list_models

List available NVIDIA NIM models with detailed metadata for agent selection, optionally filtered by category (language, embedding, reranking, vision, code, multimodal, image_generation) and advanced filters.

ParameterTypeDescription
categorystringFilter by model category
commercial_usebooleanFilter by commercial license availability
hardwarearrayFilter by GPU hardware type (e.g., Hopper, Blackwell, Ampere)
include_detailsbooleanInclude detailed model metadata for agent selection
min_context_lengthintegerMinimum context length in tokens
supports_function_callingbooleanFilter by function calling capability
supports_multimodalbooleanFilter by multimodal input capability
supports_reasoningbooleanFilter by reasoning capability
supports_visionbooleanFilter by vision capability
tagsarrayFilter by use case tags

compare_models

Compare 2-5 models side-by-side across key decision factors: licensing, hardware requirements, benchmarks, capabilities, and use case tags. Returns structured comparison table.

ParameterTypeDescription
model_ids *arrayArray of 2-5 model IDs to compare (e.g., ['nvidia/nemotron-3-ultra-550b-a55b', 'deepseek-ai/deepseek-v4-pro', 'moonshotai/kimi-k2.6'])