model-shunt
MCP server by yasmanycastillo Community
Model-Shunt is an MCP server that routes bulk file reading and boilerplate generation from AI coding agents to cheaper or local worker models. It is for developers who want to lower primary agent token use.
Install model-shunt
Built from the published package, never by AI.
claude mcp add model-shunt -- uvx model-shuntRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"model-shunt": {
"args": [
"model-shunt"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"model-shunt": {
"args": [
"model-shunt"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"model-shunt": {
"args": [
"model-shunt"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add model-shunt -- uvx model-shunt{
"mcpServers": {
"model-shunt": {
"args": [
"model-shunt"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add model-shunt uvx model-shuntGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the model-shunt block.
About
Model-Shunt is an MCP server that lets AI coding agents hand token-heavy work to cheaper or local worker models. It exposes tools for listing available models, reading bulk files with exact line citations, and generating code from a specification and a reference file. The source says it works with Antigravity, Cursor, Windsurf, Claude Code, Aider, and OpenHands.
The worker can be Gemini, Groq, Ollama, DeepSeek, or GPT-4o-mini, configured through environment variables. Large payloads switch to map-reduce over chunks, and binary files are rejected before being sent. The project is built on the Python 3 standard library with no pip install needed. It is aimed at developers who want to cut primary agent token use while keeping the main context window clean. It is MIT licensed.
Written from the project's README and checked against it.
Tools it gives your assistant
get_available_modelsQueries the provider endpoint and recommends reader and writer models.bulk_readReads large or multiple files and returns structured bullets with exact line citations.code_writeGenerates code from a specification and reference file, returning it or writing it to a target path.
What you need
- Python 3
- An API key for the chosen worker provider, such as GEMINI_API_KEY
- Optional: uv or npx for the easiest install
Try asking
- Use bulk_read to explain how the token refresh cycle works in src/auth.py
- Ask get_available_models which reader and writer models Gemini offers
- Use code_write to create unit tests for BillingService based on tests/test_user.py
Good to know
- By default, file access is limited to the server's working directory unless SHUNT_ALLOWED_ROOTS is set.
- If model discovery fails, the built-in recommendations are not verified as currently available.
- Token savings depend on the input and the response.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL https://yasmanycastillo.github.io/model-shunt/install.sh | bash
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to model-shunt
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
model-shunt: common questions
Does Model-Shunt send my files to a remote provider?
The source says bulk_read sends the selected files and question to the configured worker provider, and code_write sends the specification and reference file. The provider can be remote or local, such as Ollama.
How does Model-Shunt handle very large codebases?
When a payload exceeds SHUNT_MAX_DIRECT_TOKENS, it splits the corpus into chunks, maps the question over each chunk, and reduces the results into one cited answer.
Are API keys stored in config files?
The source advises against putting API keys in config.json and recommends environment variables instead, with an api_key field only as a last-resort fallback.
How do I install model-shunt?
In Claude Code run claude mcp add model-shunt -- uvx model-shunt. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is model-shunt the official server?
model-shunt is a community project by yasmanycastillo, not verified by a company domain.
Is model-shunt free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is model-shunt safe to use?
It scores 59 of 100. Grades: maintenance B, licence A, quality C. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to model-shunt?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does model-shunt work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
