TokenSafe

dev.tokensafe/tokensafe

Reduce your AI bills by up to 99% locally: focused code, warm prompt caches & zero secret leaks.

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "tokensafe": {
      "command": "npx",
      "args": [
        "-y",
        "tokensafe@2.8.3"
      ]
    }
  }
}

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Security & Identity
Version
2.8.3
Registry
active
Published
11/13/2026

On GitHub

read Nov 13, 2026
Stars
39
Forks
2
Last push
Nov 13, 2026
License
MIT

Pythonai-agentsai-toolsantigravityclaudeclaude-codeclaude-desktopcodexcontext-windowcursordeveloperdeveloper-toolsllmmcpmcp-serverproxytoken-optimization

From the README

TokenSafe Local-First Context Control, Prompt Caching & Secret Guardrails for Coding Agents Reduce your AI bills by up to 99%. Let your team ship clean code faster and cheaper. Your coding agents read only the code each task needs and keep prompt caches intact across turns. Everything runs locally on your machine, so your team fixes fewer broken edits and keeps secrets out of git. Works with Cursor, Claude Code, Codex, Windsurf, Google Antigravity, Gemini CLI, and ChatGPT . Install • Quickstart • Why TokenSafe • Benchmarks • Pricing • FAQ • Reference • Website & Docs Install & Agents Connect TokenSafe to the AI coding agents on your workstation in one command: The installer detects which agents live on your machine, registers the TokenSafe MCP server, injects project rules, and wires lifecycle hooks where the agent supports them. Claude Desktop / Cursor MCP config: Cloud features (team metrics, managed distillation, shared team cache, billing) run on the remote endpoint https://api.tokensafe.dev/mcp with Authorization: Bearer . Four public tools work without a key, so ChatGPT connects with authentication set to None. Full per-agent configuration, hook details, and the Codex/ChatGPT setup live in docs/AGENT_SETUP.md. CLI Quickstart The full command reference (24 commands) is in Reference. Why TokenSafe Giving coding agents raw access to entire repositories creates three daily costs: 1.…

Read the full README on GitHub →

Remotes

  • streamable-httphttps://api.tokensafe.dev/mcp
Browse all Security & Identity →

Add the badge to your site

Show visitors that TokenSafe is listed here — it’s also the link we check for a free listing.

TokenSafe — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/dev-tokensafe-tokensafe?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="TokenSafe — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![TokenSafe — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/dev-tokensafe-tokensafe?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.