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

claude-token-saver-mcp

MCP server by BlackFoil Community

Offloads routine coding tasks, such as boilerplate, tests and text summaries, from Claude Code to a local Ollama model to reduce Claude API token use. It is aimed at developers who run Ollama on their own machine.

  • Score 61
  • 3 stars
  • 329 a week
  • Apache-2.0
  • Updated

Install claude-token-saver-mcp

Built from the published package, never by AI.

claude mcp add claude-token-saver-mcp -- npx -y claude-token-saver-mcp

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

Step-by-step: install claude-token-saver-mcp 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 claude-token-saver-mcp block.

About

claude-token-saver-mcp is an MCP server that lets Claude Code send routine tasks to a local LLM running through Ollama. Tasks such as boilerplate generation, unit test writing and text summarization are handled locally, while advanced reasoning and design work stays with the Cloud API. The server picks a model based on detected RAM and can download and preload it. It also includes prompt injection detection, output sanitization for secrets, and a cost tracker that shows savings. The project is in beta and is intended for personal use. It is licensed under Apache License 2.0 and supports macOS, Linux and Windows where Ollama runs.

Written from the project's README and checked against it.

Tools it gives your assistant

  • offload_workRuns code generation and refactoring tasks on the local model.
  • compress_contextSummarizes long text locally to shorten context.
  • auto_setupRecommends, downloads and preloads a suitable model in one step.
  • batch_offloadSubmits several tasks at once, run sequentially or in parallel.
  • cost_dashboardShows cumulative savings and model usage statistics.
  • get_metricsReturns server metrics in JSON or Prometheus format.
  • recommend_modelSuggests the best model for a task category.
  • pull_modelDownloads an Ollama model.
  • preload_modelLoads a model into VRAM ahead of use.
  • list_loaded_modelsLists the models currently loaded.

What you need

  • Node.js 20+
  • Ollama installed and running
  • Claude Code
  • macOS, Linux or Windows

Try asking

  • Write a TypeScript function that shuffles an array
  • Summarize this log using the local model
  • Show my cost savings from the cost dashboard

Good to know

  • Beta release, intended for personal use
  • Local 7B-class models produce lower quality than Claude on architecture and complex debugging
  • Cloud fallback is described as possible, not as a default behavior

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to claude-token-saver-mcp

All alternatives →
Oh My Posh Validator JanDeDobbeleer
100

Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.

AAA Remote 24k
Sim simstudioai
100

Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.

AAA Remote 30k
Omnara omnara-ai
98

Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.

AAA Remote 3.5k
strata Klavis-AI
95

Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.

AAA Remote 5.8k
voicemode mbailey
95

VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.

AFA Remote 25k

Compare with Oh My Posh Validator, Sim or Omnara

claude-token-saver-mcp: common questions

Does it send my code to an external service?

The README says all processing runs locally and nothing is sent externally. Routine tasks run on the local Ollama model.

Which model does it use?

The model depends on detected RAM. Under 16 GB it uses phi4:latest, 16 to 48 GB uses qwen2.5-coder:7b, and over 48 GB uses qwen2.5-coder:32b.

What happens if Ollama is down?

The README says the server can fall back to the Cloud API when Ollama is down or slow.

How do I install claude-token-saver-mcp?

In Claude Code run claude mcp add claude-token-saver-mcp -- npx -y claude-token-saver-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is claude-token-saver-mcp the official server?

claude-token-saver-mcp is a community project by BlackFoil, not verified by a company domain.

Is claude-token-saver-mcp free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is claude-token-saver-mcp safe to use?

It scores 61 of 100. Grades: maintenance D, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to claude-token-saver-mcp?

Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.

Does claude-token-saver-mcp 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.

claude-token-saver-mcp Install

Add to stack

Loading.