Claude Token Saver MCP logo

Claude Token Saver MCP

Routes routine coding and text tasks to local Ollama models while tracking savings and falling back to cloud processing when needed.

Install Claude Token Saver MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "claude-token-saver-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "claude-token-saver-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y claude-token-saver-mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 27d ago.

Overview

The claude-token-saver-mcp MCP server routes routine coding and text-processing tasks from Claude Code to local Ollama models. It provides tools for code generation, context compression, model setup, batch execution, and cost tracking, with optional cloud fallback if Ollama is unavailable or unsuitable. Use it when boilerplate, unit tests, summaries, or simple refactoring do not need a cloud model. Node.js 20+ and Ollama are required.

Use cases

  • Generate boilerplate code with a local model
  • Create unit tests without sending routine work to a cloud API
  • Summarize long logs or other text locally
  • Batch-process multiple coding tasks
  • Track estimated model usage and savings

Key features

  • Routes coding tasks through Ollama
  • Automatically selects models by available RAM
  • Compresses long context locally
  • Supports sequential or parallel batch offloading
  • Detects prompt injection and sanitizes sensitive output
  • Tracks savings and model usage

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

19/23 checks healthy over the last 90d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · claude-token-saver-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads1.9kPackage downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Claude Token Saver MCP works

What claude-token-saver-mcp MCP server does

The claude-token-saver-mcp MCP server connects Claude Code with Ollama so routine work can run on locally hosted language models instead of using a cloud API. Its intended workloads include boilerplate generation, unit test creation, text summarization, and straightforward refactoring. More demanding tasks, such as architecture design or complex debugging, remain better suited to a cloud model.

The server can inspect available system memory, recommend an Ollama model tier, download that model, and load it for use. The documented tiers are Light for systems below 16 GB of RAM, Standard for 16–48 GB, and Ultra above 48 GB. The corresponding examples are phi4:latest, qwen2.5-coder:7b, and qwen2.5-coder:32b.

How it works

Claude Code calls the MCP server over its configured MCP connection. The server sends local work to Ollama over HTTP, where the selected model processes it. If Ollama is unavailable, too slow, or the local result is not appropriate, cloud fallback can be enabled.

The claude-token-saver-mcp MCP server includes input checks for prompt injection patterns and sanitizes sensitive-looking output. Documented redaction patterns include API keys, passwords, and JWTs. The repository describes local processing as having no external data transmission for these local operations.

Execution and cost information are tracked so the server can report estimated savings and model usage. The README gives a monthly savings estimate of roughly $50–80 when routine work represents about 40% of requests; this is an estimate rather than a guaranteed result.

Setup and configuration

Install Node.js 20 or newer and Ollama, then start Ollama with ollama serve. Add the server to a project-level .mcp.json file:

config.json
{
  "mcpServers": {
    "token-saver": {
      "command": "npx",
      "args": ["-y", "claude-token-saver-mcp"]
    }
  }
}

After starting Claude Code, ask it to configure a local coding model. The setup flow can recommend a model based on available RAM, download it, and preload it. A source build is also documented: clone the repository, run npm ci && npm run build, and configure Node to execute dist/server.js.

The project documents support for macOS, Linux, and Windows where Ollama runs.

Tools and capabilities

The documented primary tools are:

  • offload_work for local code generation and refactoring.
  • compress_context for summarizing long text locally.
  • auto_setup for model recommendation, download, and preload.
  • batch_offload for processing multiple tasks sequentially or in parallel.
  • cost_dashboard for cumulative savings and model-use statistics.

Additional tools expose server metrics, model recommendations, model downloads, model preloading, loaded-model listings, and runtime model-selector configuration. These are named get_metrics, recommend_model, pull_model, preload_model, list_loaded_models, and configure_model_selector.

Limitations and notes

The project is marked beta and described as intended for personal use. Local 7B-class models may produce lower-quality results than Claude, especially for architectural decisions and difficult debugging. Local models also require disk space and memory; the documented downloads range from about 2.5 GB to 18 GB. The claude-token-saver-mcp MCP server is therefore most suitable for repeatable, bounded tasks where local output quality is acceptable.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Claude Token Saver MCP

claude-token-saver-mcp is an MCP server that connects Claude Code to local Ollama models and provides tools including offload_work, compress_context, auto_setup, batch_offload, and cost_dashboard. It handles routine coding and text tasks locally, tracks estimated savings, and can fall back to cloud processing when Ollama is unavailable or unsuitable.

Install Node.js 20+ and Ollama, start Ollama with `ollama serve`, then add an `npx -y claude-token-saver-mcp` entry to the project’s `.mcp.json`. Alternatively, clone the repository, run `npm ci && npm run build`, and point the MCP configuration to `dist/server.js`.

Yes, claude-token-saver-mcp is designed to work with Claude Code through MCP. Configure it in `.mcp.json`, then Claude Code can call the server’s local offloading, setup, compression, batching, and cost-tracking tools.

It requires Node.js 20 or newer and Ollama running on a supported macOS, Linux, or Windows system. A local model may need several gigabytes of storage, depending on the selected RAM-based tier.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewClaude Token Saver MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/claude-token-saver-mcp?style=directory)](https://allmcps.com/mcp/claude-token-saver-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/claude-token-saver-mcp"><img src="https://allmcps.com/api/badge/claude-token-saver-mcp?style=directory" alt="Claude Token Saver MCP on AllMCPs" /></a>