MCP connector
MCP (Model Context Protocol) is a common "plug shape" that lets AI apps use extra tools. Claude Desktop is one such app. An MCP server is a small helper that adds tools to it.
nuroute-mcp-server is that helper for NuRoute. Once it is added, your assistant (Claude Desktop, or any other MCP app) can:
- Ask questions through your NuRoute gateway, and
- Look at the list of models that gateway offers.
You write no code. The package is nuroute-mcp-server, the official MCP server for NuRoute. It does just those two things on purpose. Projects, routing settings, policy, budgets and API keys are still managed in the NuRoute dashboard.
Before you start
- Claude Desktop (or another MCP app) installed.
- Node.js, because the helper starts with
npx, a program that comes with Node.js. - Your NuRoute gateway address.
- An API key that starts with
aicp-, from your project's (or organisation's) API Keys page.
Step 1: Add it to your app's settings
Open your MCP app's config file. For Claude Desktop, it is claude_desktop_config.json. Add this, then put in your own key and address:
{
"mcpServers": {
"nuroute": {
"command": "npx",
"args": ["-y", "nuroute-mcp-server"],
"env": {
"NUROUTE_API_KEY": "aicp-...",
"NUROUTE_BASE_URL": "https://your-nuroute-gateway"
}
}
}
}
| Setting | Meaning |
|---|---|
NUROUTE_API_KEY | Required. Your secret key. Create one on your project's (or organisation's) API Keys page. |
NUROUTE_BASE_URL | Your gateway address. If you leave it out, it is http://localhost:3000. |
Do not delete them. Add "nuroute": { … } inside the existing "mcpServers" part, and keep the commas between items correct.
Step 2: Restart the app
Close and reopen the app. The nuroute server now appears in its list of MCP servers.
How it works
nuroute-mcp-server runs on your own computer, next to the app. It is not a hosted service.
- When Claude Desktop starts, it launches the helper using the
commandandargsfrom your config. - They talk to each other directly, over stdin and stdout (this is called MCP's "stdio transport").
- When you close the app or switch the server off, the helper stops.
The npm package is just a delivery method. npx -y nuroute-mcp-server downloads and runs the helper with no build step, the same way the n8n connector installs.
Once connected, the assistant can see two tools. It calls them on its own when they help with what you asked. You do not run them yourself.
The two tools
| Tool | What it does |
|---|---|
chat_completion | Sends messages to model. The model is "auto" by default, and then NuRoute's routing engine picks the best one. You can also give a specific model ID. Optional: temperature, maxTokens, provider. |
list_models | Lists the models available through this gateway, so the assistant knows what it can pass as model. |
With "auto", Artemis picks the model for each request.
Example
Ask Claude something that suggests handing the job to NuRoute, and it calls the tool itself:
You: Use NuRoute to ask the cheapest available model what 17 × 24 is, and tell me which model answered.
Claude calls chat_completion with roughly this:
{
"model": "auto",
"messages": [{ "role": "user", "content": "What is 17 × 24?" }]
}
The tool gives back two pieces of text: the reply, and which model NuRoute actually used.
408
Routed to gpt-4o-mini · 24 tokens
Claude reads both and answers you, for example: "17 × 24 is 408. NuRoute routed that to gpt-4o-mini."
A question like "what models do I have available through NuRoute?" calls list_models the same way, with no extra setup.
Which models can I use?
- Send
auto, or an Artemis option (artemis-cost,artemis-balanced,artemis-quality), and Artemis picks the model. - Or name any model in the model catalogue.
- Named models can run on your own provider keys (BYOK).