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
uv pip install "nvidia-nat[mcp,langchain]"
export MILLIONSHORT_API_KEY=ms-YOUR_API_KEYThe 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.
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_authWithout 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:
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:
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: trueThen run it:
nat run --config_file config.yml --input "Find independent blogs about home espresso, without the 1,000 most popular sites."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:
nat mcp client tool list --url https://mcp.millionshort.com/mcpThat 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.
| Mode | How | What the agent gets |
|---|---|---|
| API key | Send Authorization: Bearer ms-YOUR_API_KEY | Every tool, at your plan's limits; calls use your credits |
| No key | Send no Authorization header | search, list_sources and a few more; one source and up to 5 results a search, 10 free searches a day |
Tools
| Tool | What it does | Without a key | Cost |
|---|---|---|---|
search | Searches the web and the specialist sources, with the popularity, domain, page-type, topic, site and date filters | Yes: one source, up to 5 results | 1 credit per source searched, first 10 results |
get_domain_info | Popularity and risk for up to 25 sites | No | 1 credit |
list_sources | The sources, page types and topics search accepts | Yes: source names | Free |
| The tools of the other endpoints | extract, map, crawl, places and more: the MCP page lists them | A few, such as places | What the API call behind each costs |
Settings
| Variable | Meaning |
|---|---|
MILLIONSHORT_API_KEY | Your 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 see | Why | Fix |
|---|---|---|
| The server does not connect, or no tools are listed | The address or the transport is not the one the server speaks | Use 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 up | Add a key: it is free in the dashboard |
INSUFFICIENT_CREDITS | The plan's credits are used up | Stop and add credits; retrying does not help |
| The agent answers from memory, or uses another search | Nothing told it when to use this one | Turn off its own search where it can be (this page says how), and add the line for its instructions |
nat validate rejects react_agent | The LangChain plugin is not installed | uv pip install "nvidia-nat[mcp,langchain]" |
The api_key provider rejects the key | MILLIONSHORT_API_KEY is empty or unset, so raw_key is too short | Export the key, or use the no-key form |
custom_headers is rejected | It works only with transport: streamable-http, and only in releases that have it | Use the api_key provider instead |
Related
- Agent tool use: when to give a model tools, and what to tell it.
- LangChain and CAMEL-AI: the same server in other Python frameworks.
- MCP server and Filters for agents.
- The toolkit's own documentation, read on 2026-11-19: NeMo Agent Toolkit as an MCP client, Installation, and the
api_keyauthentication provider and MCP client configuration in the toolkit's repository.