Task Router MCP Server
README.md
# Neurometric Task Router MCP Server
[](https://github.com/NeurometricAI/taskrouter-mcp/actions/workflows/verify.yml)
[](LICENSE)
Remote **Streamable HTTP** [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server for querying **Neurometric Task Explorer** benchmarks and getting **Task Router** model recommendations before choosing an LLM.
- **Endpoint:** `https://taskrouter.com/mcp`
- **Transport:** Streamable HTTP (stateless JSON-RPC)
- **Authentication:** None required for public read-only benchmark & pricing tools (optional `Authorization: Bearer <TASKROUTER_API_KEY>` unlocks account balance & usage tools)
- **Docs:** [taskrouter.com/docs#mcp](https://taskrouter.com/docs?utm_source=github&utm_medium=mcp_repo&utm_campaign=mcp_listing#mcp)
> **Product distinction:** **Neurometric Task Explorer** is the free public discovery and benchmark catalog (describe a workload, compare measured pass rate, latency, and cost). **Task Router** is the OpenAI-compatible inference routing API (`https://api.taskrouter.com/v1`) that executes requests and task routes.
---
## Quick Setup
[](https://cursor.com/install-mcp?name=taskrouter&config=eyJ1cmwiOiJodHRwczovL3Rhc2tyb3V0ZXIuY29tL21jcCJ9)
[](https://vscode.dev/redirect/mcp/install?name=taskrouter&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Ftaskrouter.com%2Fmcp%22%7D)
### Claude Code
```bash
claude mcp add --transport http taskrouter https://taskrouter.com/mcp
```
With an optional API key (also enables `get_balance` and `get_usage`):
```bash
claude mcp add --transport http taskrouter https://taskrouter.com/mcp \
--header "Authorization: Bearer $TASKROUTER_API_KEY"
```
### Cursor (`mcp.json`)
```json
{
"mcpServers": {
"taskrouter": {
"url": "https://taskrouter.com/mcp"
}
}
}
```
### VS Code (`.vscode/mcp.json`)
```json
{
"servers": {
"taskrouter": {
"type": "http",
"url": "https://taskrouter.com/mcp"
}
}
}
```
### Windsurf / Clients Requiring `stdio` Bridge (`mcp-remote`)
If your MCP client only supports local `stdio` servers:
```json
{
"mcpServers": {
"taskrouter": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://taskrouter.com/mcp"]
}
}
}
```
---
## Available Tools
### Public Tools (No API Key Required, Read-Only)
| Tool | Description |
|---|---|
| `search_tasks` | Match a plain-English workload description (e.g., ticket triage, extraction, agent loops) to benchmarked task IDs. |
| `recommend_model` | Pick the cheapest callable model that clears a target pass rate on a task, with full measured alternatives. |
| `get_task` | Inspect a task's full benchmark table (pass rate, cost, p50 latency, evaluation metric) and routing instructions. |
| `list_models` | Filter callable models by provider, text, token price, context window, and benchmark coverage. |
| `get_pricing` | View live provider token list prices (no markup), routing fee, welcome credit offers, and free/discounted task routes. |
| `get_started` | Get copy-paste `curl` and Python OpenAI SDK snippets with the live gateway URL and free task routes. |
### Account Tools (Optional `Authorization: Bearer $TASKROUTER_API_KEY`, Read-Only)
Requires an unrestricted Task Router API key whose creator is an active member of the organization.
| Tool | Description |
|---|---|
| `get_balance` | Check your organization's prepaid credit balance and recent ledger activity. |
| `get_usage` | Inspect call volume, tokens, and errors by model or route over `1h`, `24h`, or `7d`. |
---
## Task-Route Pricing & Free Examples (`$0` / 0 Credits)
- **Free public discovery:** Browsing benchmarks, calling the 6 public MCP tools, and reading `/llms.txt` or `/models.json` require no account or API key.
- **Live pricing & promotions:** Current routing fees, welcome credits, and active promotional or free-tier task routes (`free: true`) are always published live at [`https://taskrouter.com/pricing.json`](https://taskrouter.com/pricing.json) and via the `get_pricing` MCP tool.
- **Current free-tier agent route examples (`$0` / 0 credits when active in live pricing):**
- **[ClawPack (`clawpack`)](https://taskrouter.com/tasks/clawpack?utm_source=github&utm_medium=mcp_repo&utm_campaign=free_tasks)** — Benchmark-backed agent route
- **[Hermes Agent (`hermes-agent`)](https://taskrouter.com/tasks/hermes-agent?utm_source=github&utm_medium=mcp_repo&utm_campaign=free_tasks)** — Benchmark-backed agent route
- **OpenAI-compatible routing API:** Model tokens are billed at provider list prices with no markup, plus the per-decision routing fee reported in [`pricing.json`](https://taskrouter.com/pricing.json) and `get_pricing`.
---
## Example Prompts for Your Coding Agent
1. *"Use Task Router MCP to search for benchmarks related to classifying customer support tickets and recommend the cheapest model with at least 90% pass rate."*
2. *"Check Task Router pricing and free task routes via MCP, then show me how to call the `clawpack` route from Python using the OpenAI SDK."*
3. *"Compare models measured for structured document extraction using `get_task` and summarize pass rate vs. p50 latency."*
---
## Verify Endpoint with `curl`
```bash
curl -sS https://taskrouter.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
```
---
## Machine-Readable Endpoints
- Brief for agents: [`https://taskrouter.com/llms.txt`](https://taskrouter.com/llms.txt)
- Full agent docs: [`https://taskrouter.com/llms-full.txt`](https://taskrouter.com/llms-full.txt)
- Live model catalog JSON: [`https://taskrouter.com/models.json`](https://taskrouter.com/models.json)
- Live pricing & promotions JSON: [`https://taskrouter.com/pricing.json`](https://taskrouter.com/pricing.json)
## Security
Public discovery tools are strictly read-only and require no API key. Optional account tools (`get_balance`, `get_usage`) authenticate via `Authorization: Bearer $TASKROUTER_API_KEY`. See [SECURITY.md](SECURITY.md) for key hygiene and vulnerability reporting.
## License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityNo data
ResponsivenessNo recent community issues