Menu

Integrations / Frameworks & SDKs

NVIDIA NeMo Agent Toolkit

MillionShort search in a NeMo Agent Toolkit workflow, as an MCP client in the workflow's YAML.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

MCPYAML workflow configNothing of ours to installWorks with no keyChecked 2026-11-19

The toolkit's mcp_client function group connects a workflow to an MCP server, finds its tools and registers them as functions. Point one at the MillionShort MCP server and list the group in the agent's tool_names, and the agent gets the server's tools: search, get_domain_info, list_sources and the tools of the other endpoints, such as extract, places, map and crawl (the MCP page lists them all). Everything is in the workflow's YAML file.

1Install

Shell
uv pip install "nvidia-nat[mcp,langchain]"
export MILLIONSHORT_API_KEY=ms-YOUR_API_KEY

The mcp extra is the MCP client; the langchain extra brings the react_agent workflow used below. The NIM model in the example reads your key from NVIDIA_API_KEY; any LLM the toolkit supports works. Get a MillionShort key in the dashboard.

2Connect the server

Add an mcp_client function group with the streamable HTTP transport. The key comes from an api_key authentication provider, which sends Authorization: Bearer <key> (its default scheme). The toolkit fills ${MILLIONSHORT_API_KEY} from the environment when it loads the file.

config.yml
authentication:
  millionshort_auth:
    _type: api_key
    raw_key: ${MILLIONSHORT_API_KEY}

function_groups:
  millionshort:
    _type: mcp_client
    server:
      transport: streamable-http
      url: "https://mcp.millionshort.com/mcp"
      auth_provider: millionshort_auth

Without a key, leave out the authentication block and the auth_provider line (the provider refuses an empty key).

Release 1.9.0 also takes headers directly on the server, for streamable HTTP only. The toolkit's MCP client page does not list this option yet; it is in the client's configuration model:

config.yml
function_groups:
  millionshort:
    _type: mcp_client
    server:
      transport: streamable-http
      url: "https://mcp.millionshort.com/mcp"
      custom_headers:
        Authorization: "Bearer ${MILLIONSHORT_API_KEY}"

3Give the tools to an agent

Name the function group in the workflow's tool_names, and the agent gets every tool the server lists. A complete file:

Example
YAML
authentication:
  millionshort_auth:
    _type: api_key
    raw_key: ${MILLIONSHORT_API_KEY}

function_groups:
  millionshort:
    _type: mcp_client
    server:
      transport: streamable-http
      url: "https://mcp.millionshort.com/mcp"
      auth_provider: millionshort_auth

llms:
  nim_llm:
    _type: nim
    model_name: nvidia/nemotron-3.5-lightning-30b-a3b
    temperature: 0.0

workflow:
  _type: react_agent
  tool_names:
    - millionshort
  llm_name: nim_llm
  verbose: true

To give the agent only some tools, add include: with tool names under the function group; tool_overrides renames a tool or changes its description.

4Check it works

nat validate --config_file config.yml checks the file. To list the server's tools from the command line:

Shell
nat mcp client tool list --url https://mcp.millionshort.com/mcp

That command has no option for a bearer key, so it connects in the no-key mode and lists fewer tools, search and list_sources among them; with the key, the workflow also gets get_domain_info and the rest. Inside the workflow, the tools are named after the group: millionshort__search, and so on. With verbose: true, nat run logs each tool call. If the agent answers from memory, say when to search in its instructions:

Use the MillionShort search tool for anything recent, niche, or that needs a source. To reach lesser-known sites, set remove_top_sites (for example 1000). Cite the URLs it returns.

MCP configuration

The same address for every client: https://mcp.millionshort.com/mcp, streamable HTTP.

ModeHowWhat the agent gets
API keySend Authorization: Bearer ms-YOUR_API_KEYEvery tool, at your plan's limits; calls use your credits
No keySend no Authorization headersearch, list_sources and a few more; one source and up to 5 results a search, 10 free searches a day

Tools

ToolWhat it doesWithout a keyCost
searchSearches the web and the specialist sources, with the popularity, domain, page-type, topic, site and date filtersYes: one source, up to 5 results1 credit per source searched, first 10 results
get_domain_infoPopularity and risk for up to 25 sitesNo1 credit
list_sourcesThe sources, page types and topics search acceptsYes: source namesFree
The tools of the other endpointsextract, map, crawl, places and more: the MCP page lists themA few, such as placesWhat the API call behind each costs

Settings

VariableMeaning
MILLIONSHORT_API_KEYYour key, read into config.yml as ${MILLIONSHORT_API_KEY}. Leave the authentication out for the no-key mode

Costs and limits

A tool call costs what the API call behind it costs: 1 credit per source searched for the first 10 results, 1 credit for a domain lookup, nothing for the list of sources, the price of the endpoint for the other tools, and nothing at all in the no-key mode. An agent that loops can make many calls: give it a step limit, and ask for fewer results when a few will do. Credits and limits has the numbers.

When it fails

What you seeWhyFix
The server does not connect, or no tools are listedThe address or the transport is not the one the server speaksUse exactly https://mcp.millionshort.com/mcp and the streamable HTTP transport (often called http), not SSE
401 or "unauthorized"The key is wrong, or it was sent without Bearer Send Authorization: Bearer ms-..., or leave the header out to use the no-key mode
"10 free searches a day without a key"The no-key mode's daily searches are used upAdd a key: it is free in the dashboard
INSUFFICIENT_CREDITSThe plan's credits are used upStop and add credits; retrying does not help
The agent answers from memory, or uses another searchNothing told it when to use this oneTurn off its own search where it can be (this page says how), and add the line for its instructions
nat validate rejects react_agentThe LangChain plugin is not installeduv pip install "nvidia-nat[mcp,langchain]"
The api_key provider rejects the keyMILLIONSHORT_API_KEY is empty or unset, so raw_key is too shortExport the key, or use the no-key form
custom_headers is rejectedIt works only with transport: streamable-http, and only in releases that have itUse the api_key provider instead

This page as Markdown ยท llms.txt