# ToolRoute MCP server

> Routes AI agent tasks to the most effective MCP server and LLM based on performance benchmarks and cost efficiency.

- Repository: https://github.com/grossiweb/ToolRoute
- Page: https://hostedmcp.org/servers/grossiweb/toolroute
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 0.2.2

## Install

### Claude Code

```sh
claude mcp add toolroute -- npx -y @toolroute/sdk
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "toolroute": {
      "command": "npx",
      "args": [
        "-y",
        "@toolroute/sdk"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "toolroute": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@toolroute/sdk"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"toolroute","type":"stdio","command":"npx","args":["-y","@toolroute/sdk"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "toolroute": {
      "command": "npx",
      "args": [
        "-y",
        "@toolroute/sdk"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add toolroute -- npx -y @toolroute/sdk
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.toolroute]
command = "npx"
args = ["-y", "@toolroute/sdk"]
```

### Gemini CLI

```sh
gemini mcp add -s user toolroute npx -- -y @toolroute/sdk
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "toolroute": {
      "command": "npx",
      "args": [
        "-y",
        "@toolroute/sdk"
      ]
    }
  }
}
```

## FAQ

### How does ToolRoute decide which tool or model to use?

It uses an LLM classifier to understand the task and then ranks candidates using a five-dimension score covering quality, reliability, efficiency, cost, and trust.

### Can I use ToolRoute with existing MCP clients?

Yes, it can be added to clients like Claude Code, Cursor, Windsurf, and Cline via a JSON configuration.
