Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 59
  • 0 stars
  • 31 a week
  • MIT
  • Updated

Install model-shunt

Built from the published package, never by AI.

claude mcp add model-shunt -- uvx model-shunt

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install model-shunt in Claude Code

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 →

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.

model-shunt Install

Add to stack

Loading.