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.
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-recallRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"token-savior": {
"env": {
"WORKSPACE_ROOTS": "YOUR_WORKSPACE_ROOTS"
},
"args": [
"token-savior-recall"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"token-savior": {
"env": {
"WORKSPACE_ROOTS": "YOUR_WORKSPACE_ROOTS"
},
"args": [
"token-savior-recall"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"token-savior": {
"env": {
"WORKSPACE_ROOTS": "YOUR_WORKSPACE_ROOTS"
},
"args": [
"token-savior-recall"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add token-savior --env WORKSPACE_ROOTS=YOUR_WORKSPACE_ROOTS -- uvx token-savior-recall{
"mcpServers": {
"token-savior": {
"env": {
"WORKSPACE_ROOTS": "YOUR_WORKSPACE_ROOTS"
},
"args": [
"token-savior-recall"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add token-savior uvx token-savior-recallGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
| Setting | Needed | What it is |
|---|---|---|
WORKSPACE_Environment variable | Required | Comma-separated list of absolute paths to project roots to index. |
TOKEN_Environment variable | Optional | Optional client identifier (e.g. 'claude-code', 'cursor', 'hermes') for usage attribution. |
TOKEN_Environment variable | Optional | Manifest 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
ANo 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 →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
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.
