
Claude Token Saver Mcp
io.github.BlackFoilPublished by GitHub account BlackFoilv0.3.2Updated Oct 24, 2026
MCP server that offloads routine coding tasks to local LLM (Ollama) to save Claude API tokens
The publisher's own server: Claude Platform Docs
Overview
Local MCP server that routes routine coding and text tasks from Claude Code to a local Ollama model to save cloud API tokens.
- What you can do
- Generate and refactor code, and batch several tasks, on a local model via offload_work and batch_offload. Summarize or compress long text locally with compress_context. Set up models automatically: recommend, download and preload a model sized to available RAM. Inspect savings and usage through cost_dashboard and server metrics. Manage Ollama models directly: list loaded models, pull and preload models, and configure the model selector.
- When to use it
- Useful when you run Claude Code on a machine with Ollama and want boilerplate generation, unit tests, summaries or simple refactors handled locally instead of spending cloud tokens. Less suited to architecture design or complex debugging, which the README says should stay in the cloud.
- Requirements
- Runs as a local stdio process via npx or a built server file. Needs Node.js 20+ and a running Ollama instance (ollama serve). Model downloads are several GB (about 2.5 to 18 GB depending on RAM tier) and require disk space and network access.
Installation
In SourceWeft
- Open Claude Token Saver Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
English | 日本語
[CI] [npm] [Coverage] [License]
claude-token-saver-mcp
[claude-token-saver-mcp banner]
Beta — 個人利用向け。736 テスト / カバレッジ 97%。
Claude Code の「それ、ローカルでよくない?」を自動化する MCP サーバー。
ボイラープレート生成、テスト作成、テキスト要約 — Cloud API に投げるまでもない定型タスクを、手元の Ollama でさばきます。セキュリティ対策込み。
モチベーション
Claude Code の API 利用を分析してみたら、リクエストの約 40% は定型的なコード生成やテキスト処理でした。この手のタスクは 7B クラスのローカルモデルでも実用的な品質が出ます。「推論は Cloud、作業は Local」— この振り分けを MCP で自動化したのがこのツールです。
ローカル LLM はどこまで来たか
ローカル LLM の進化は速いです。2024 年の Llama 3 から 2025 年の Qwen3 まで、わずか 1 年でコード生成ベンチマーク (HumanEval) のスコアは 60% → 85% に跳ね上がりました。
この調子なら、Agent ワークフローにローカル LLM が当たり前に組み込まれる日もそう遠くないでしょう。claude-token-saver-mcp は Cloud と Local を使い分けるための土台を提供します。
しくみ
MCP (Model Context Protocol) は Claude Code が外部ツールを呼び出すための標準プロトコルです。このサーバーを登録すると、Claude Code がタスクの内容を見て、定型的な処理を自動的にローカル LLM へ回します。
Ollama が落ちていたり応答が遅い場合は Cloud API にフォールバック可能です。
30 秒セットアップ
前提: Node.js 20+ と Ollama がインストール済みであること。
0. Ollama を起動
1. プロジェクトルートに .mcp.json を作成
2. Claude Code を起動して、こう頼む
RAM に応じた最適モデルが推奨 → ダウンロード(約 4GB)→ プリロードまで自動で走ります。
3. 動作確認
「ローカルLLM(qwen2.5-coder:…)で生成しました」のようにローカルモデル名が表示されれば OK。
出ない場合は ollama list でモデルを確認し、トラブルシューティング を参照してください。
ソースからビルドする場合
プロジェクトルートの .mcp.json に追加:
特徴
- ローカル完結 — 定型タスクは Cloud API を使わずに処理できる
- 自動モデル選択 — RAM を検出して最適なモデルを推奨・DL・プリロード(
auto_setup) - セキュリティ内蔵 — プロンプトインジェクション検知 + 出力サニタイズ
- コスト可視化 — 節約額をリアルタイムで追跡(定型タスク比率 40% なら月 $50〜80 程度の削減が目安)
- Cloud フォールバック — Ollama が落ちても Cloud に自動切り替え可能
使用例
ローカル品質の実際
ローカル 7B モデルの出力は Claude に及びません。それは前提です。ただ、定型タスクに限れば十分実用的です。
Claude Code がタスクの複雑さを判断して自動で振り分けます。ローカルの品質が足りなければ Cloud で処理されます。
自動ティアリング
ツール一覧
その他のツール(6 件)
セキュリティ
ローカル LLM への入出力を自動で保護します。
- プロンプトインジェクション検知 — 5 カテゴリ・20 パターンで悪意ある入力をブロック
- 出力サニタイズ — API キー・パスワード・JWT など 11 パターンを
[REDACTED]に置換 - データプライバシー — 全処理がローカル完結。外部への送信なし
ドキュメント
アーキテクチャ
開発
対応プラットフォーム: macOS / Linux / Windows(Ollama が動く環境)
コントリビューション歓迎です → CONTRIBUTING.md
ライセンス
Source: README.md at commit dab51e3
Tools
0Version history
1- v0.3.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Claude integrations
Claude Platform Docs
com.claude.platformOfficial publisher
Remote MCP server that lets an assistant search and read the Claude Platform documentation and API reference.

Insta Edits for Claude
Published by GitHub account faisalkhanzemi
Bridge that lets Claude drive the full 274-tool editor in Instagram Edits for Mac, keeping the tool list in sync as projects open.

Claude Checkpoint Mcp
Published by GitHub account daniel-munoz
Local MCP server that saves Claude Code session state to a checkpoint file in the project and reloads it as a compact resume brief.

Qwen DAP MCP — C/C++ Debugger for Claude Code, Codex & Qwen
Published by GitHub account spk-c
Qwen DAP MCP — C/C++ Debugger for Claude Code, Codex & Qwen's local MCP server; no sign-in required; STDIO; 18 tools.

AVE for Claude Code — Local Video Editing
Published by GitHub account lemberalla
Local AVE timeline editing and exports for Claude Code only. Existing AVE connection required.