About TokenSaver

What it is

TokenSaver is an open-source MCP (Model Context Protocol) server for .NET developers. It gives an AI coding assistant a token-efficient view of C#, Razor, and .NET project files using the Roslyn compiler platform, so the assistant reads the same code while spending far fewer tokens — with no loss of logic. Typical reduction is 50–95% on C# files.

Fewer tokens processed means lower cost, lower latency, and a smaller carbon footprint for AI-assisted development. This site is the live dashboard tracking how many tokens the tools have saved across all installs.

What the tools do

  • Outline — signatures of every type and member with no bodies, for "what's in this file?"
  • Focus — a named method or type with full bodies, plus signatures of what it references.
  • Trace — find what calls a method, implements an interface, or where a type is registered in dependency injection, across a whole project.
  • Map — index every type in a project to its file and base types, to locate code without knowing the file first.
  • Minify / Alias — lossless whole-file reduction, auto-dispatched by file extension.

See the full list of capabilities →

Supported languages

Full Roslyn support for C#, Razor, VB.NET, and .NET project files. Comment-strip and whitespace-collapse support for JavaScript, TypeScript, Python, HTML, CSS/SCSS/LESS, JSON, YAML, C, C++, X++, and Markdown. It works with Visual Studio 2026 (GitHub Copilot Chat), Claude Code, VS Code Copilot, Claude Desktop, and any MCP client that speaks stdio.

Open source

TokenSaver is released under the MIT license. The package is published on NuGet and the source code is on GitHub.

Get started

Head to the install page for one-click install buttons, per-client configuration snippets, and upgrade and uninstall instructions.

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.