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

token-savior

MCP server by Mibayy Community

Token Savior is an MCP server that gives AI coding agents structural code navigation by symbol and persistent memory across sessions. It is aimed at developers who use Claude Code and similar assistants.

  • Score 88
  • 1.2k stars
  • MIT
  • Updated

Install token-savior

Built from the published package, never by AI.

claude mcp add token-savior -e WORKSPACE_ROOTS=YOUR_WORKSPACE_ROOTS -- uvx token-savior-recall

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

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

About

Token Savior is an MCP server for AI coding agents. It indexes a codebase by symbol, including functions, classes, imports and the call graph, so the model can navigate by pointer instead of reading whole files. It also offers Bash output compactors and a PreToolUse command rewriter, which are opt-in through environment variables.

Its persistent memory engine stores decisions, bugfixes, conventions and session rollups in SQLite with FTS5 and vector embeddings. Stored memories are re-injected as a compact delta at the start of the next session. The project suits developers using Claude Code who want fewer tokens per task. Its benchmark figures are reported by the publisher and the source says they cannot be independently verified.

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

Tools it gives your assistant

  • find_symbolLooks up a symbol so the model can navigate by pointer instead of reading whole files.
  • search_codebaseSearches the codebase and names the function holding each hit.
  • get_edit_contextSupplies context before an edit. ts_discover flags edits made without it.
  • memory_searchSearches stored memories such as decisions, bugfixes and conventions.
  • memory_indexIndexes stored memory for search. ts_discover flags searches made without it.
  • ts_discoverScans Claude Code transcripts for places where Token Savior tools would have been cheaper.

What you need

  • Python
  • pip install of token-savior-recall with the mcp extra
  • An MCP client such as Claude Code
  • Claude Code 2.1.28x or later for the alwaysLoad option
SettingNeededWhat it is
WORKSPACE_ROOTSEnvironment variableRequiredComma-separated list of absolute paths to project roots to index.
TOKEN_SAVIOR_CLIENTEnvironment variableOptionalOptional client identifier (e.g. 'claude-code', 'cursor', 'hermes') for usage attribution.
TOKEN_SAVIOR_PROFILEEnvironment variableOptionalManifest size. 'optimized' (recommended) advertises the Pareto-optimal 15-tool set; 'auto' sizes it from your own usage; 'full' advertises every tool; 'compact-only' if you already run symbol navigation elsewhere.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Find where the function parse_config is defined in this project.
  • Search the codebase for the function that handles user login.
  • Remember that we chose PostgreSQL for this service and why.

Good to know

  • Benchmark source and fixtures are not published, so the figures cannot be independently verified.
  • PostToolUse compactors run after a tool returns and do not shrink the current turn.
  • Bash compaction and the command rewriter are opt-in.
  • Wall time per benchmark task was higher because each session starts a fresh server that indexes the repo first.

Security check

A

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

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

Alternatives to token-savior

All alternatives →

Compare with Zotero MCP, Agentdb or Genkitx MCP

token-savior: common questions

Does Token Savior reduce the tokens an AI coding assistant uses?

The publisher reports about 80% fewer active tokens per task on a 96-task benchmark, and a smaller 8-task re-measurement with Claude Haiku 4.5 showing about 59% fewer new tokens. The source says the benchmark harness is not public.

How does persistent memory work across sessions?

Decisions, bugfixes, conventions and session rollups are stored in SQLite with FTS5 and vector embeddings. They are re-injected as a compact delta at the start of the next session.

Which Bash commands does Token Savior rewrite?

The source says the PreToolUse rewriter has 10 rules and changes the command before it runs. Bash compaction has 34 compactors for families such as git, gh, pytest, kubectl and aws.

How do I install token-savior?

In Claude Code run claude mcp add token-savior -e WORKSPACE_ROOTS=YOUR_WORKSPACE_ROOTS -- uvx token-savior-recall. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is token-savior the official server?

token-savior is a community project by Mibayy, not verified by a company domain.

Is token-savior free?

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

Is token-savior safe to use?

It scores 88 of 100. Grades: maintenance A, licence A, quality A. 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 token-savior?

Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.

Does token-savior 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.

token-savior Install

Add to stack

Loading.