Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

TokenSafe

by tokensafe-devversion 3.1.1i★ 38iComputer or cloud
Registry namedev.tokensafe/tokensafe

How to install

What it does

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

  • Connects Computer or cloud
  • Account or key Cloud: Works without a key · add Authorization if you have one (often raises limits) · Local: No key needed
  • Category Developer tools

Install

Pick the AI app you use, then copy the settings.

Passed 5/5 checks · What you ask goes through the maker’s server (api.tokensafe.dev) · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude · about 2 min

No key, nothing to install · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1 · on Team/Enterprise an Owner adds it

  1. Open Claude’s Connectors page

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  2. Click “Add” → “Custom” → “Web” and fill in these 2 fields

    Copy each value into the field with the same name in Claude, then click Continue

    Name · NameTokenSafe
    Remote MCP server URL · Addresshttps://api.tokensafe.dev/mcp

    Click Continue past the sign-in settings Claude detected · under Authentication choose what the maker says (Sign in now, Sign in when needed or No sign in), then click Add

  3. Turn it on in a chat

    +ConnectorsTokenSafe

  4. Try it

    Use TokenSafe and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using TokenSafe or shows a TokenSafe tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with ChatGPT, depending on your plan

Full MCP: ChatGPT Business, Enterprise or Edu on the web · Pro: connects with read/fetch permissions, so tools that change data may not work · Plus: not confirmed in OpenAI’s docs; if you see an add-custom-MCP option on the Plugins page you can try these steps · web only

  1. Open ChatGPT’s add-MCP page on the web

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. Fill in the name and address

    Enter a name, paste the address under Connection, tick the risk warning and click Create as a plugin

    Name · NameTokenSafe
    Connection · Addresshttps://api.tokensafe.dev/mcp
  3. Pick TokenSafe in a chat

    Start a new chat and pick TokenSafe from your plugins before typing

  4. Try it

    Use TokenSafe and tell me what you can do for me, then show me one thing

    ✓ If ChatGPT says it is using TokenSafe or shows a TokenSafe tool in the answer, you are connected

Menu names checked against OpenAI’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Claude Code · about 2 min

No key, nothing to install

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  2. Paste this command and press Enter

    claude mcp add --transport http --scope user tokensafe https://api.tokensafe.dev/mcp
  3. Type /mcp in Claude Code

    You should see TokenSafe listed as connected

  4. Try it

    Use TokenSafe and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using TokenSafe or shows a TokenSafe tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor · about 2 min

No key, nothing to install

  1. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  2. Open the AI chat in Cursor in Agent mode

  3. Try it

    Use TokenSafe and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using TokenSafe or shows a TokenSafe tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code · about 2 min

No key, nothing to install

  1. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  2. Open the AI chat in VS Code in Agent mode

  3. Try it

    Use TokenSafe and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using TokenSafe or shows a TokenSafe tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

Address for apps that connect over the web

Addresshttps://api.tokensafe.dev/mcp

JSON settings are under “For developers” below

Stuck? Ask people who use TokenSafe💬 Discussion →
For developers: Terminal commands and JSON settings

Over the web

Claude Code

claude mcp add --transport http --scope user tokensafe https://api.tokensafe.dev/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "tokensafe": {
      "url": "https://api.tokensafe.dev/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "tokensafe": {
      "type": "http",
      "url": "https://api.tokensafe.dev/mcp"
    }
  }
}

Installed on your computer

Claude Code

claude mcp add --scope user tokensafe -- npx -y tokensafe mcp

Claude Desktop (claude_desktop_config.json)

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

Cursor (~/.cursor/mcp.json)

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

VS Code (mcp.json)

{
  "servers": {
    "tokensafe": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "tokensafe",
        "mcp"
      ]
    }
  }
}

Values you fill in

  • Authorization secret HTTP header

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
6,785/wk
Verified domain
✓ tokensafe.dev
Connection
Computer or cloud
Transport
stdio, streamable-http
Latest versioni
3.1.1
Published to registryi
Nov 14, 2026
Code last changedi
Nov 13, 2026
Maker
tokensafe-dev
Packages
npm: tokensafe
pypi: tokensafe
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Connect over the internet in

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Tool names and descriptions exactly as the server reported them on Nov 14, 2026. The maker wrote them, not us; we show them as plain text.

  • get_public_stats

    Returns aggregated public TokenSafe stats (total tokens saved, active teams). No auth.

  • check_latest_version

    Checks the client version against the latest published tokensafe release.

  • get_license_status

    Validates the Bearer license key and returns tier, expiry and trial state.

  • get_team_metrics

    Returns the authenticated account's dashboard data: savings, telemetry stats, licenses and team seats.

  • distill_prompt

    Managed Cloud Distillation: compiles a verbose developer prompt into a dense TOCP S-expression server-side. Requires Solo/Team license.

  • team_cache_lookup

    Looks up a shared team distillation cache entry by hash. Requires Team license.

  • team_cache_store

    Stores a distilled result in the shared team cache so teammates reuse it. Requires Team license.

  • list_invoices

    Lists Stripe billing invoices for the authenticated account.

  • get_setup_instructions

    Returns exact MCP configuration snippets for a coding agent (cursor, claude_desktop, claude_code, codex, windsurf, antigravity, gemini_cli).

  • search_docs

    Searches the built-in TokenSafe knowledge base (features, install, tiers, privacy).

  • generate_team_seat

    Team owner: provisions a seat license for a member email.

  • revoke_team_seat

    Team owner: revokes a previously issued seat license.

  • preview_weekly_digest

    Team owner: previews the weekly team stats digest (same data as the Friday email).

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 14, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified against the domain tokensafe.dev (the registry checks domain ownership)

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ✓ Pass

    Has a licence

    Uses MIT

  • ✓ Pass

    Endpoint responds

    Responded in 197 ms (HTTP 200)

  • – Not applicable

    Sign-in with OAuth

    No sign-in needed

  • ✓ Pass

    No hidden instructions in tool descriptions

    Read 13 tool descriptions and found no hidden instructions to the AI

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in with Google to post

User reviews

No reviews yet

Sign in with Google to write a review

Compared with others in Developer toolsi

  • More stars than 95% of the other 5872 servers in this category
  • Published to the registry more recently than 99% of the other 5872 servers in this category
  • Basic checks equal to or better than 100% of the other 5872 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is TokenSafe safe?

It passed 5 of 5 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

Either way works: install it on your computer or connect to the cloud version.

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (3.1.1) reached the registry today.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT on the web (full MCP on Business and above; Pro read-only).

What can I use instead?

In the same category: REA, GitHub, Serena MCP: the IDE for your agent

Others in the same category

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

REA

Reverse engineer anything from your terminal or agent with one CLI and MCP server.

by morlutoWidely used↓ 388.7K/wk★ 457.7KUpdated 2 days ago

Runs on your computer

GitHub

GitHub’s official server lets AI read and manage code, issues and pull requests in your account. Use GitHub’s hosted version or run it locally with Docker.

by githubWidely used★ 34.4KUpdated 11 days ago

Computer or cloud

Serena MCP: the IDE for your agent

A powerful toolkit for coding, providing semantic retrieval and editing capabilities.

by oraiosWidely used↓ 35.2K/wk★ 31.4KUpdated 6 months ago

Runs on your computer

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

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:

# Option 1: Zero-Install via npx (recommended)

npx tokensafe

Option 2: Python / PyPI

pip install tokensafe && tokensafe

Option 3: Direct shell script (macOS / Linux)

curl -fsSL https://tokensafe.dev/install.sh | bash

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.

AgentIntegration
Google AntigravityPlugin symlink + hooks + skills + MCP (loaded automatically on startup)
Claude Code CLIMCP + SessionStart / UserPromptSubmit / PreToolUse hooks
CursorMCP + beforeShellExecution / beforeReadFile hooks
Claude DesktopMCP registration (claude_desktop_config.json)
WindsurfMCP registration + global rules
OpenAI CodexMCP in ~/.codex/config.toml (stdio + cloud HTTP natively)
Cline / Roo CodeMCP registration (VS Code)
GitHub CopilotMCP registration
Z.ai CodeMCP registration
ChatGPTCloud connector, nothing to install
Gemini CLIMCP registration

Claude Desktop / Cursor MCP config:

{

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

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

# View live savings dashboard in your terminal

tokensafe stats

⚡ TOKENSAFE CONTEXT OPTIMIZER DASHBOARD

Total Tokens Saved: 4,524,156 tokens Efficiency Gain: [████████████████████████░░] 92.5% Context Traffic: 4,889,255 raw → 370,574 optimized (2,132 events)

• Command Sanitizer (CLI) : 727,300 tokens saved (263 events) • Architecture Graph : 758,256 tokens saved (13 events) • Multi-turn History Fold : 2,897,897 tokens saved (471 events) • Prompt Compactor (local+cache) : 43,502 tokens saved (1,255 events)

# Audit your environment: MCP tool overhead, skills tax, risky settings

tokensafe doctor

Recursive security & hygiene audit of a repository

tokensafe guard audit

Preview prompt compaction on custom input

tokensafe test "fix the validate_token method in src/auth.py to check jwt expiration"

Map architectural hotspots before multi-file changes

tokensafe graph

Disable a heavy MCP server without editing JSON

tokensafe mcp disable

Compile and preview the Friday team ROI digest

tokensafe digest

Activate a Team or Solo license key

tokensafe activate TS2.eyJlbWFpbCI6...

The full command reference (24 commands) is in Reference.

Why TokenSafe

Giving coding agents raw access to entire repositories creates three daily costs:

  1. Senior hours burned on AI PRs: reading 2,000-line modules for a 10-line fix makes models forget imports, invent methods, and regress adjacent code.
  2. Secret leaks and unsafe shortcuts: static prompt rules in .cursorrules wear off mid-session. Agents hardcode fallback credentials, disable TLS checks, or stage .env files with git add ..
  3. Mid-sprint quota stops and blind spend: bloated diffs, lockfiles, and verbose MCP schemas burn 5-hour limits while engineering leads lack per-seat ROI visibility.
OutcomeWhat changes for your teamHow it is enforced
Clean code on the first passAgents read only target functions, design tokens, and 1-hop dependencies instead of 2,000 lines of noise.Sub-30ms local AST skeletonizer, architecture graph, predictive signature prefetch, lockfile-stripping diff slicer, loop guard.
Zero leaked secrets in gitHardcoded password fallbacks, TLS bypasses, raw SQL interpolation, and .env commits are stopped before reaching disk or staging.Deterministic TokenSafe Guard on every tool call, output guard on large writes, local PII/key redaction.
Predictable sprint velocity & ROITeammates get warm cache hits, and CTOs receive a Friday ROI digest separating measured and estimated savings.Shared team cache, live context budget HUD, per-seat dashboard.

A $29 seat pays for itself by saving one hour of senior code review or preventing one leaked key. Typical payback: 1 to 3 days of team usage.

Before and After

One contrast: an agent asked to change one helper in a 1,420-line file receives 94 lines of target logic and type contracts instead of the whole module. The same principle applies to terminal output, diffs, and session history.

What breaks coding agentsHow TokenSafe fixes itThe outcome
"Lost in the Middle" context fade: an agent reads a 2,000-line file to change one 10-line helper, forgets imports, and invents methods.AST skeletonizer folds inert bodies into typed signatures while keeping the target symbol and 1-hop callees intact.Focused signal: the model keeps full type contracts without drowning in unrelated logic.
Terminal log flooding: npm test or pytest fails and dumps 4,000 lines of stack traces and lockfile diffs into context.Command sanitizer strips lockfile noise and trims output to the failing assertion and stack frame.Root-cause fixes instead of unrelated rewrites.
Infinite wait on background tests: yarn test hangs in watch mode, or jest finishes but unclosed handles keep the process alive.Test-runner guard forces run-once mode (CI=true, --watch=false, --forceExit) and peeks at /package.json to identify the runner behind opaque scripts.The test run terminates with an exit code and the agent moves on.
5-attempt retry loops: an agent repeats the same broken edit until the context budget runs dry.Loop guard detects repeated identical tool calls and halts the cycle.Stuck loops stop before damaging working modules.
Unsafe edits & secret leaks: fallback keys, verify=False, SQL string interpolation, or git add . with .env present.TokenSafe Guard audits writes and shell commands locally before execution.Credentials, SQLi patterns, and destructive commands are blocked locally.

When an operation is blocked, the agent sees an explicit, constructive message:

🛡️ TokenSafe Guard: Blocked a hardcoded secret fallback in config.py.

Leave the default empty or read from os.environ at runtime.

What TokenSafe Does

Clean context, better code

  • tokensafe:smart_read_file returns the target function plus its 1-hop dependencies instead of the whole file. 11 languages (Python, TypeScript/JavaScript, Go, Rust, Java, C#, C/C++, PHP, Kotlin, Ruby, Swift), with CSS design tokens preserved so agents never invent colors or font rules.
  • tokensafe:smart_bundle reads 3–8 related symbols across files as one merged bundle — shared imports deduplicated, 1-hop signatures unified, a single roundtrip instead of chained reads.
  • OpenAPI/Swagger, Prisma, GraphQL and SQL files are auto-sliced: pass a spec path, model, type, or table as symbol and get that entry plus its 1-hop references — a 5,000-line migration drops from ~30k tokens to a few hundred.
  • tokensafe:graph maps architectural hotspots and dependency topology in under 250 tokens instead of a full repository crawl — and teams share the result: the indexed graph and API surface are cached per repo state in the Team Symbol Index, so the 19 developers after the first one skip the crawl entirely.
  • The command sanitizer strips lockfile noise and stack dumps down to the failing assertion, caps git status/git diff floods and docker build tails, and forces JS test runners into run-once mode so background tests never hang. Malformed JSON tool arguments from small local models are repaired in-flight instead of failing the call.
  • The loop guard halts agents stuck repeating the same broken edit.

Local-first guardrails

  • Blocks live provider secrets, hardcoded fallback credentials, and raw private keys before they reach disk or git.
  • Blocks TLS bypasses (verify=False, rejectUnauthorized: false), interpolated SQL, and CORS wildcards with credentials.
  • Blocks .env and key files from staging, including blanket git add . when sensitive files exist in the working tree.
  • Blocks destructive deletes and exfiltration pipes (curl -d @.env https://...), and warns on known typosquat packages.

Auditable team ROI

  • The Context Budget HUD shows live window usage with a breakdown (tools / history / prompts) before quality drops.
  • The shared L3 team cache gives teammates and CI runners warm 0ms hits on repeated reads and prompts.
  • Managed cloud distillation compacts prompts with zero API keys for developers.
  • The dashboard's live savings strip streams anonymized per-machine savings (tokens and USD) over SSE — you see what the team saves right now, not at the end of the week.
  • The Friday per-seat ROI digest reports each engineer's savings with the measured / estimated split; inactive seats show —, never guessed figures.

Deeper mechanics (language matrix, context tax math, cache tiers, governor) live in docs/ARCHITECTURE.md.

Benchmarks

Reference run across 10 produ

Only the beginning is shown; read the rest in the repo