Model Shunt MCP server
io.github.yasmanycastillo/model-shunt·v1.2.1Model routing for AI agents: delegate bulk reads & boilerplate to cheap worker models.
not scanned yet
0 stars
Reviews
Write oneNobody has reviewed Model Shunt yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Model Shunt tools
No tool declarations could be read from the package source. They show once the server is installed.
How Model Shunt compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 90% of 4,460 AI and agents servers
Release history: 2 versions in the registry since 2026-09-24, latest 2026-09-24, typically several a day.
Install Model Shunt in Claude Code, Cursor or VS Code
claude mcp add model-shunt -- uvx model-shunt
What the publisher says
From the Model Shunt repository's README, as published. We do not edit it. Read it on GitHub
Model-Shunt 🔀
A decoupled, zero-dependency, universal implementation of the Shunt model-routing pattern (originally conceived by Spotify Engineering).
Model-Shunt allows AI coding agents (Antigravity, Cursor, Windsurf, Claude Code, Aider, OpenHands, etc.) to delegate token-heavy I/O (bulk file reading/code analysis) and repetitive boilerplate generation (tests, mocks, stubs, configs) to fast, economical, or local worker models (Gemini 2.5 Flash, Groq/Llama, Ollama, DeepSeek, GPT-4o-mini). This cuts primary agent token consumption by up to 90% while keeping the main context window clean.
⚡ Key Highlights
- Zero External Dependencies: Built with pure Python 3 standard library (urllib, json, re, argparse). No pip install, no virtual environment, and no npm required.
- Agent-Agnostic: Works transparently across any AI coding agent via standard MCP (Model Context Protocol), standalone CLI scripts, or PreToolUse lifecycle hooks.
- Dynamic Model Discovery & Auto-Routing: Queries the worker endpoint in real time to discover available models and automatically routes to the best model for the task:
- Reader Mode (Bulk I/O): Prioritizes massive context windows and ultra-low cost (e.g., gemini-2.5-flash, llama-3.3-70b-versatile, gpt-4o-mini).
- Writer Mode (Code Generation): Prioritizes specialized coding models (e.g., qwen2.5-coder:latest, gemini-2.5-flash, deepseek-chat).
- Bypasses Linux ARGMAX Limits:** Unlike naive implementations that pass file contents as CLI arguments (capped at ~128 KB on Linux), Model-Shunt streams corpus data over stdin, allowing analysis of hundreds of thousands of lines without buffer overflows.
- Deterministic Line Numbering (N|): Automatically prefixes every line in file blocks with its 1-based index, forcing worker models to cite verifiable, exact line numbers instead of hallucinating locations.
- Binary File Protection: Inspects byte headers to reject binary files (PDFs, images, compiled objects) before sending them to the LLM.
- Network Resilience: Automatic exponential backoff retries for rate limits (HTTP 429) and transient server errors (HTTP 503/502), with configurable timeouts and token limits.
- Map-Reduce for Oversized Corpora: When a bulkread payload exceeds the direct limit (SHUNTMAXDIRECTTOKENS, default ~200k tokens), Model-Shunt automatically splits the corpus into chunks, maps the question over each chunk (preserving absolute N| line numbers), and reduces the extracts into one cited answer. Giant single-line files (minified JSON/JS) are sliced by characters with explicit position markers. Rate-limit pacing waits out provider quota windows instead of failing.
📁 Repository Structure
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Model Shunt: common questions
- Is Model Shunt MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Model Shunt safety report
- How do I install Model Shunt?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Model Shunt need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Model Shunt maintained?
- The last commit was 41 days ago (2026-09-24). The latest release is v1.2.1.
- What can I use instead of Model Shunt?
- Servers from other publishers that do the same job: freellmpool MCP server and Agoragentic Agent OS MCP server.
Alternatives to Model Shunt
Same job from other publishers: the closest match first, then the best rated.
- freellmpoolOpenAI-compatible MCP gateway cataloging 22 LLM providers, with routing, failover, and tools.not reviewedEstablishedA
Agoragentic Agent OS MCPTriptych OS (Agent OS) MCP for governed routing, receipts, and USDC settlement on Base.not reviewedEstablishedB