# Token Savior (MCP server)

> Token Savior is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Structural codebase MCP server with persistent memory: navigate by symbol, recall across sessions. It has 1,163 GitHub stars, is released under the MIT license and runs locally with uvx token-savior-recall.

One MCP server. One profile. 97.9% on tsbench at -80% tokens. Structural code navigation, persistent memory, and Bash command rewriting for AI coding agents.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/Mibayy/token-savior |
| GitHub stars | 1,163 |
| License | MIT |
| Language | Python |
| Transport | stdio |
| Packages | pypi: token-savior-recall |
| Remote URL | none |
| Needs API key | yes |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Developer tools |
| Latest release | v4.21.0 (Jul 28, 2026) |
| Last commit | Aug 10, 2026 |
| MCP registry name | io.github.Mibayy/token-savior |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "token-savior": {
      "command": "uvx",
      "args": [
        "token-savior-recall"
      ],
      "env": {
        "WORKSPACE_ROOTS": "your-value",
        "TOKEN_SAVIOR_CLIENT": "your-value",
        "TOKEN_SAVIOR_PROFILE": "your-value"
      }
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env WORKSPACE_ROOTS=your-value --env TOKEN_SAVIOR_CLIENT=your-value --env TOKEN_SAVIOR_PROFILE=your-value --transport stdio token-savior -- uvx token-savior-recall
```

### Cursor (.cursor/mcp.json)

```json
{
  "mcpServers": {
    "token-savior": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "token-savior-recall"
      ],
      "env": {
        "WORKSPACE_ROOTS": "your-value",
        "TOKEN_SAVIOR_CLIENT": "your-value",
        "TOKEN_SAVIOR_PROFILE": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "token_savior_client",
      "description": "TOKEN_SAVIOR_CLIENT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "token_savior_profile",
      "description": "TOKEN_SAVIOR_PROFILE",
      "password": true
    }
  ],
  "servers": {
    "token-savior": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "token-savior-recall"
      ],
      "env": {
        "WORKSPACE_ROOTS": "your-value",
        "TOKEN_SAVIOR_CLIENT": "${input:token_savior_client}",
        "TOKEN_SAVIOR_PROFILE": "${input:token_savior_profile}"
      }
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `WORKSPACE_ROOTS` (required): Comma-separated list of absolute paths to project roots to index.
- `TOKEN_SAVIOR_CLIENT` (secret): Optional client identifier (e.g. 'claude-code', 'cursor', 'hermes') for usage attribution.
- `TOKEN_SAVIOR_PROFILE` (secret): Manifest size. 'optimized' (recommended) advertises the Pareto-optimal 15-tool set; 'auto' sizes it from your own usage; 'full' advertises every tool…

## Similar MCP servers

- [Gemini CLI](https://appsgit.com/mcp-servers/gemini-cli): An open-source AI agent that brings the power of Gemini directly into your terminal. (107,240 stars, Apache-2.0)
- [Front-End Checklist](https://appsgit.com/mcp-servers/front-end-checklist): Review frontend code and live pages against 386 quality-gated web development rules. (74,390 stars, MIT)
- [Claude Flow](https://appsgit.com/mcp-servers/claude-flow): AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev. (74,016 stars, MIT, needs API key)
- [Codebase Memory](https://appsgit.com/mcp-servers/codebase-memory): Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens. (45,917 stars, MIT)
- [Bytedance Filesystem](https://appsgit.com/mcp-servers/bytedance-filesystem): MCP server for filesystem access. (39,206 stars, Apache-2.0)
- [GitHub](https://appsgit.com/mcp-servers/github): Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language. (33,414 stars, MIT, official, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/token-savior
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
