TaskGrade MCP Server
Uses a local Ollama model to classify software implementation tasks and recommend coding-agent models based on a deterministic policy.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TaskGrade MCP Servergrade this task: add OAuth login to user settings"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TaskGrade
TaskGrade is a local-first classifier for software implementation tasks. It uses an Ollama model to grade task characteristics, then applies a deterministic, editable policy to recommend coding-agent models.
It is designed for issue trackers, planning workflows, and agent handoffs where the cheapest model that can reliably complete the whole task is preferable to using the most expensive model by default.
How it works
Issue or task text
↓
Local Ollama classifier
↓
Structured task grade
↓
Deterministic model policy
↓
Primary, fallback, escalation, and turn budgetThe classifier never invents model identifiers. Available models, usage pools, strength ordering, and routing rules come from a versioned JSON policy.
Related MCP server: oracle-models
Requirements
Node.js 20.19 or newer
Enough local memory for the selected model
The bundled preset defaults to qwen3.5:9b. Model weights are not included in
the npm package and are never downloaded during installation.
Install
First, install Ollama and ensure its local server is running. The Ollama desktop application starts the server automatically. If you use the CLI without the desktop application, start it in a separate terminal:
ollama serveThen install TaskGrade, download its default classifier model through Ollama, and verify the complete setup:
npm install --global taskgrade
taskgrade setup
taskgrade doctorOr run it without a global installation:
npx -y taskgrade setup
npx -y taskgrade doctorClassify a task
From a file:
taskgrade classify issue.md
taskgrade classify issue.md --jsonFrom stdin:
gh issue view 42 --json title,body | taskgrade classify --jsonTaskGrade accepts task content; it does not authenticate to GitHub or mutate an issue tracker.
MCP server
Add a local stdio server to an MCP-compatible host:
{
"mcpServers": {
"taskgrade": {
"command": "npx",
"args": ["-y", "taskgrade", "mcp"]
}
}
}The server exposes:
grade_task— classify task content and return a model recommendation;taskgrade_health— inspect configuration, policy, Ollama, and model status.
grade_task accepts title, body, optional comments, optional
planningContext, and optional sourceId.
Customize the policy
Create editable local configuration and policy files:
taskgrade initThis writes:
taskgrade.config.json;taskgrade.policy.json.
Configuration precedence is:
CLI flags → TASKGRADE_* environment variables → local config → bundled defaultsSupported environment variables:
Variable | Purpose |
| Ollama base URL |
| Classifier model |
| Request timeout |
| Explicit input safety limit |
| Routing policy path |
The bundled coding-agents-2026-07 policy is an editable example, not a
universal benchmark. Its model catalog will age; copy and maintain it for the
agent products and quota pools available to you.
Failure behavior
TaskGrade:
rejects oversized input instead of silently truncating it;
gives Ollama one repair attempt after invalid structured output;
does not retry connection failures indefinitely;
returns no recommendation for non-actionable tasks;
rejects unknown models, same-pool fallbacks, and invalid escalation ordering;
treats issue content as untrusted data rather than classifier instructions.
CLI exit codes:
Code | Meaning |
| Invalid command usage |
| Invalid input, configuration, or policy |
| Ollama unavailable, timed out, or model missing |
| Invalid classifier response |
What TaskGrade is not
TaskGrade does not:
execute coding agents;
proxy or route LLM API traffic;
monitor subscription quotas;
fetch or update GitHub issues;
train a classifier;
send telemetry;
bypass local model safeguards.
Its only runtime network dependency is the configured Ollama endpoint.
Development
npm install
npm run check
npm test
npm run build
npm run pack:checkRun the non-CI local evaluation corpus after installing the default model:
node dist/evaluate.jsSee CONTRIBUTING.md and SECURITY.md.
License
Apache-2.0
This server cannot be deployed
Maintenance
Related MCP Connectors
AI-powered spec-to-task decomposition and execution orchestration for coding agents.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Pay-per-call ($0.01 USDC) model-routing for AI coding agents: which LLM to call, cost vs. quality.
- AxisOAuthdev.useaxis
Coding agents from Claude Code, Cursor and Codex claim jobs and lock files on one shared board.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude to delegate coding tasks to local Ollama models, reducing API token usage by up to 98.75% while leveraging local compute resources. Supports code generation, review, refactoring, and file analysis with Claude providing oversight and quality assurance.358 npm25AGPL 3.0
- AlicenseAqualityDmaintenanceClassifies development task complexity (LIGHT/MEDIUM/HEAVY) and recommends the most cost-efficient AI model per provider, enabling optimized model selection for coding tasks.317 npmMIT
- FlicenseNot gradedqualityCmaintenanceRoutes code generation tasks between local models and Claude Cloud, optimizing cost by handling simple tasks locally and reserving cloud thinking for complex tasks.-
- AlicenseNot gradedqualityBmaintenanceEnables intelligent model selection for coding tasks by analyzing task type, scope, and difficulty, with fallback chains and host-specific mappings.379 npm1MIT