aovestdipaperino/tokensave
The most comprehensive code intelligence MCP server for AI coding agents. 40+ tools, 30+ languages, 9 agent integrations. Pre-indexed semantic knowledge graphs for instant code understanding — fewer tokens, fewer tool calls, 100% local.
What it solves
AI coding agents waste tokens exploring codebases with grep, glob, and file reads—each call costs money and complex tasks spawn sub-agents that scan hundreds of files. TokenSave replaces this with a pre-indexed semantic knowledge graph: agents query the graph via MCP tools and get instant, structured answers (symbols, relationships, source snippets) in one call. This cuts token usage, reduces tool-call counts, and speeds up context building.
How it works
TokenSave runs as a local MCP server backed by a libSQL graph database. You initialize it with tokensave init, which creates a .tokensave/ directory with the knowledge graph. The server indexes your code using native tree-sitter grammars (crash-isolated in subprocesses) and keeps the index fresh—it does an on-demand staleness check on every MCP call (30-second cooldown) plus catch-up sync on connection. Agents like Claude Code, Codex, or Cursor connect via tokensave install, then use 80+ MCP tools to search by meaning (e.g., "authentication" finds login, validateToken, AuthService), trace callers/callees for impact analysis, edit files atomically, and compute code-health metrics. Multi-branch indexing stores per-branch databases, and all data stays local—no API keys, no external services.
Who it’s for
Developers and teams working with AI coding agents (Claude Code, Codex CLI, Gemini CLI, Cursor, Copilot, Cline, Zed, and more) who want to reduce token costs, speed up agent context-building, and get deeper code intelligence without sending code to external services. It’s ideal for large codebases where agents currently spend many calls just exploring.
Highlights
- Pre-indexed knowledge graph: one tool call returns entry points, related symbols, and code snippets—no file scanning.
- 80+ MCP tools: from call-graph traversal and dead-code detection to atomic edits, test mapping, and complexity analysis.
- 50+ supported languages across three tiers (lite/medium/full) to control binary size.
- 100% local: runs on a local libSQL database, no data leaves your machine.
- Crash-resilient sync: subprocess-isolated tree-sitter workers respawn on native crashes, so sync never dies on malformed files.
- Multi-branch indexing: per-branch databases auto-tracked, with cross-branch diff and search without switching checkouts.
Related
- Project
- Project
- Project
- Project
- Project