Skip to content
Skillpedia
βœ“ Official Β· aovestdipaperino● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

TokenSave

Lets your AI agent query a local code graph instead of reading files, so it uses fewer tokens and tool calls.

691 stars on GitHubby aovestdipaperinoLicense MITUpdated 20 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Download the .mcpb file and open it with Claude Desktop.

Download the .mcpb file β†—

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Find where user authentication is handled.
What would break if I change validateToken?

What it is

TokenSave indexes your project into a local semantic knowledge graph. Your coding agent asks the graph for symbols, callers and context instead of scanning many files, which saves tokens. Everything runs on your machine with no API keys, and it supports 50+ languages and many agents.

What it can do

  • Smart context building for a task
  • Semantic search by meaning
  • Impact analysis: callers, callees and what a change affects
  • Dead code detection
  • Code-health metrics and test mapping
  • Atomic edit primitives that re-index after writes
  • Multi-branch indexing

When to use

  • β€ΊWhen your agent spends many tool calls exploring a large codebase.
  • β€ΊWhen you want to know what breaks before you change a function.
  • β€ΊWhen you want to find code by meaning rather than exact text.

What you need

Install tokensave with cargo, Homebrew, Scoop or a prebuilt binary, then run tokensave install and tokensave init in your project.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes, MIT licensed.

Does it send my code anywhere?

The readme says it is 100% local, with no data leaving your machine and no API keys. A privacy page lists any network calls.

Which agents does it work with?

Claude Code, Codex CLI, Gemini CLI, Cursor, Copilot, Kiro, Pi, Zed and more than a dozen others.

How many tools and languages?

The readme says 80+ tools and 50+ languages.

How does it stay up to date?

It checks freshness on each MCP call with a 30 second cooldown, and tokensave sync updates the index incrementally.

What does the index look like?

A .tokensave/ folder in your project holds the graph database.

If it does not work

  • β€ΊRun tokensave doctor to check for common problems.
  • β€ΊRun tokensave init in your project folder if no index exists.
  • β€ΊRun tokensave install again after upgrading to refresh agent settings.

5 new skills a week. 1 minute to read.