token-savior
MCP ServerFreeMCP server for Claude Code: 97% token savings on code navigation + persistent memory engine that remembers context across sessions. 106 tools, zero external deps.
Capabilities14 decomposed
structural codebase indexing with language-aware parsing
Medium confidenceBuilds a persistent ProjectIndex by dispatching files to language-specific annotators (high-fidelity for Python, TypeScript, Go, Rust, C#; fallback for Markdown, JSON, text). Uses AST-based parsing to extract entities (functions, classes, imports) and their relationships rather than treating code as raw text. The index persists across sessions, enabling zero-cost reuse of structural knowledge.
Uses language-specific annotators with AST-based parsing for 5 high-fidelity languages and graceful fallback to generic annotators, creating a unified structural index that persists across sessions. This avoids re-parsing on every query and enables transitive dependency traversal without re-scanning the codebase.
Outperforms naive full-file-read approaches (like cat or grep) by 97-99% token reduction through surgical symbol-level queries; differs from Copilot/LSP-based tools by maintaining a persistent, queryable index rather than relying on real-time language server state.
surgical symbol-level code retrieval with line-range precision
Medium confidenceExposes 34+ specialized query tools that retrieve only the relevant source lines for a specific symbol (function, class, method) without including the entire file. Uses the structural index to map symbol names to exact line ranges, then returns only those lines. Supports nested symbol queries (e.g., method within class) and handles language-specific scoping rules.
Maps symbols to exact line ranges via AST-based parsing, enabling sub-file-level retrieval without regex or heuristics. Handles language-specific scoping (nested classes, methods, closures) and returns only the relevant lines, not the entire file or approximate matches.
More precise than grep-based symbol search (which returns entire lines with matches) and more efficient than LSP-based approaches that return full file context; enables 97%+ token savings vs. naive full-file reads.
checkpoint and rollback system for safe code modifications
Medium confidenceCreates checkpoints before editing operations and enables rollback to previous states if validation fails. Stores checkpoint metadata (timestamp, symbol, change description) and allows reverting to any checkpoint within a session. Uses file-based or version-control-aware storage to persist checkpoints.
Integrates checkpoints directly into the editing workflow, enabling automatic rollback on validation failure without manual git operations. Provides session-local undo for code changes.
Faster and simpler than git-based undo for rapid experimentation; enables AI agents to safely explore code changes with automatic recovery on failure.
workflow orchestration for complex multi-step code operations
Medium confidenceProvides high-level workflow tools (workflow_ops) that combine multiple low-level operations (edit, re-index, test, validate) into single atomic workflows. Workflows are defined as sequences of operations with error handling and rollback logic. Enables AI agents to perform complex refactoring tasks without manual orchestration.
Combines editing, re-indexing, testing, and validation into single atomic workflows with automatic rollback on failure. Enables AI agents to perform complex refactoring without manual orchestration.
Simplifies complex code modifications by abstracting away low-level operation sequencing; enables safer autonomous refactoring by ensuring all steps (including validation) are completed atomically.
mcp tool registry with 106 specialized tools and zero external dependencies
Medium confidenceExposes 106+ specialized tools via the Model Context Protocol (MCP) standard, covering code navigation, editing, analysis, and workflow operations. Tools are registered in a schema-based function registry that supports MCP-compatible clients (Claude Code, Cursor, Windsurf). Implements all tools with zero external dependencies beyond Python standard library.
Provides 106+ specialized tools via MCP standard with zero external dependencies beyond Python stdlib. Covers the full spectrum of code analysis, navigation, editing, and workflow operations in a single cohesive toolkit.
More comprehensive than single-purpose tools (e.g., code completion, symbol search) because it integrates analysis, editing, testing, and validation. Zero external dependencies make it easier to deploy in restricted environments compared to tools with heavy dependency trees.
incremental codebase re-indexing with file-watch integration
Medium confidenceMonitors the file system for changes and incrementally re-indexes affected files rather than rebuilding the entire ProjectIndex. Uses file-watch events (or polling) to detect modifications and updates only the changed symbols in the index. Maintains index consistency across concurrent edits.
Monitors file system for changes and incrementally updates the index rather than rebuilding from scratch. Enables the index to stay in sync with the codebase without manual refresh or full re-indexing.
More efficient than full re-indexing on every query because it only updates changed symbols; enables real-time index consistency for long-running servers.
transitive dependency graph traversal for impact analysis
Medium confidenceBuilds and traverses a dependency graph that maps call chains and transitive relationships between symbols. When a symbol is modified, the system can identify all downstream dependents (what might break) and upstream dependencies (what this symbol depends on). Uses graph traversal algorithms to compute impact scope without re-scanning the codebase.
Precomputes and persists the dependency graph during indexing, enabling O(1) impact queries without re-scanning. Handles language-specific call semantics (method dispatch, imports, exports) and provides both upstream and downstream traversal.
Faster than runtime call-graph profiling and more accurate than regex-based grep for identifying dependencies; enables AI agents to make safe refactoring decisions without manual impact analysis.
atomic symbol editing with automatic re-indexing and validation
Medium confidenceProvides safe editing operations (edit_ops, compact_ops) that replace symbol source code without manual line-range calculations. After editing, automatically re-indexes the affected file and validates the change by running impacted tests. Uses checkpoints and rollback capabilities to ensure codebase integrity if validation fails.
Combines editing, re-indexing, and test execution into a single atomic operation with automatic rollback on failure. Uses checkpoints to enable safe undo without git operations, and leverages the dependency graph to select only impacted tests for validation.
Safer than manual AI-generated code edits (which can introduce subtle bugs) because it validates changes via test execution; more efficient than full-suite test runs because it uses impact analysis to run only affected tests.
symbol-level git change summarization and diff analysis
Medium confidenceIntegrates with git to summarize changes at the symbol level rather than raw line diffs. When a file is modified, the system maps changed lines back to symbols and reports what symbols were added, removed, or modified. Provides a high-level view of code changes that is more meaningful to AI agents than raw diffs.
Maps git diffs back to symbols using the structural index, providing semantic-level change summaries instead of raw line diffs. Enables AI agents to understand code changes at the abstraction level they care about.
More meaningful than raw git diffs for AI agents because it abstracts away formatting and whitespace changes; enables higher-level reasoning about code modifications.
impacted test selection and execution based on dependency analysis
Medium confidenceUses the dependency graph to automatically identify which tests are affected by a code change, then executes only those tests. Avoids running the full test suite by computing the transitive closure of changed symbols and finding tests that depend on them. Integrates with common test frameworks (pytest, Jest, etc.).
Combines dependency graph traversal with test discovery to select only affected tests, reducing test execution time from minutes to seconds. Uses conservative selection strategy to avoid false negatives while minimizing false positives.
Faster than full test suite runs and more accurate than file-based test selection (which runs all tests that touch a changed file); enables tight feedback loops for AI-assisted development.
persistent session memory with cross-session context retention
Medium confidenceMaintains a persistent memory engine that stores context and query results across MCP sessions. When an AI agent reconnects, it can access previously indexed data, query results, and session state without re-indexing or re-querying. Uses local storage (file-based or database) to persist the ProjectIndex and query cache.
Persists the entire ProjectIndex and query results to local storage, enabling zero-cost session resumption without re-indexing. Maintains session state across MCP reconnections, allowing AI agents to pick up where they left off.
Eliminates re-indexing overhead (which can take minutes for large codebases) compared to stateless approaches; enables long-running AI coding sessions with continuous context retention.
multi-language entity extraction with language-specific semantics
Medium confidenceDispatches files to language-specific annotators that extract entities (functions, classes, methods, imports, exports) with language-specific semantics. High-fidelity annotators for Python, TypeScript, Go, Rust, and C# use AST parsing to understand scoping rules, decorators, type annotations, and module systems. Fallback annotators for Markdown, JSON, and text use pattern matching.
Uses language-specific annotators with AST-based parsing for 5 languages, capturing language-specific semantics (decorators, type annotations, module systems) that regex-based approaches miss. Provides graceful fallback for unsupported languages.
More accurate than regex-based entity extraction because it understands language scoping rules and syntax; more efficient than running language servers because it parses once and caches results.
workspace-aware code navigation with multi-root support
Medium confidenceSupports indexing multiple workspace roots simultaneously, enabling navigation across monorepos and multi-project setups. Maintains separate ProjectIndex instances for each root but allows cross-root queries and dependency tracking. Handles workspace configuration via environment variables or config files.
Maintains separate indexes for each workspace root while enabling cross-root queries and dependency tracking. Allows AI agents to navigate monorepos as a unified codebase without manual project switching.
Enables seamless navigation across monorepos compared to single-project tools; more efficient than running separate indexing processes for each project because it shares query infrastructure.
token usage tracking and savings metrics dashboard
Medium confidenceTracks every character returned to the AI via token-savior tools versus what would have been returned by naive approaches (e.g., cat, full-file reads). Persists metrics to a local database and exposes them via a web dashboard. Calculates token savings percentage and provides usage statistics per tool, per session, and per codebase.
Automatically tracks token savings by comparing actual tool output to naive alternatives, providing quantitative evidence of efficiency gains. Exposes metrics via a web dashboard for real-time monitoring.
Provides visibility into token usage that other tools don't expose; enables data-driven optimization of context window allocation and tool selection.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with token-savior, ranked by overlap. Discovered automatically through the match graph.
Files
** - Enables agents to quickly find and edit code in a codebase with surgical precision. Find symbols, edit them everywhere.
code-review-graph
Local knowledge graph for Claude Code. Builds a persistent map of your codebase so Claude reads only what matters — 6.8× fewer tokens on reviews and up to 49× on daily coding tasks.
code-index-mcp
A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
MarsCode
Revolutionize coding: real-time assistance, error detection, code...
Augment Code (Nightly)
Augment Code is the AI coding platform for VS Code, built for large, complex codebases. Powered by an industry-leading context engine, our Coding Agent understands your entire codebase — architecture, dependencies, and legacy code.
MonkeyCode
企业级 AI 编程助手,专为 研发协作 和 研发管理 场景而设计。
Best For
- ✓teams using Claude Code, Cursor, or Windsurf with large multi-language codebases
- ✓developers building AI agents that need surgical code navigation without full-file reads
- ✓projects where token efficiency is critical (e.g., long-running coding sessions with limited context windows)
- ✓AI agents building context windows with strict token budgets
- ✓developers navigating large files where only a few symbols are relevant
- ✓code review and impact analysis workflows where precision matters
- ✓AI agents performing autonomous refactoring with safety guarantees
- ✓developers experimenting with code changes who want easy undo
Known Limitations
- ⚠High-fidelity parsing only supports 5 languages (Python, TypeScript, Go, Rust, C#); other languages fall back to generic text/Markdown parsing with reduced structural awareness
- ⚠Initial indexing latency depends on codebase size; no incremental indexing mentioned in architecture
- ⚠Requires Python 3.11+ and MCP-compatible client; not compatible with REST-only LLM APIs
- ⚠Requires the codebase to be indexed first; no on-demand parsing of unindexed files
- ⚠Symbol resolution depends on language-specific scoping rules; ambiguous symbol names may require disambiguation
- ⚠Does not return comments or docstrings unless they are part of the parsed entity definition
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Last commit: Apr 21, 2026
About
MCP server for Claude Code: 97% token savings on code navigation + persistent memory engine that remembers context across sessions. 106 tools, zero external deps.
Categories
Alternatives to token-savior
Are you the builder of token-savior?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →