Tokensafe
Optimizes coding-agent context locally, adds repository security guardrails, and tracks token savings.
Install Tokensafe
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"tokensafe": {
"command": "npx",
"args": [
"-y",
"tokensafe"
]
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
We couldn’t confirm it starts correctly
We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.
npx -y tokensafeNo response to initialize.
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .
Overview
Use cases
- Reduce repository context before targeted code changes
- Audit a repository for secrets and unsafe patterns
- Trim test output and lockfile noise
- Map architecture before multi-file edits
- Monitor token savings across coding-agent sessions
Key features
- AST-based context reduction
- Local command and write guardrails
- Prompt compaction and history folding
- Repository security and hygiene audits
- Architecture graph generation
- Token savings dashboard
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 8d ago via OSV.dev · tokensafe (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Tokensafe works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Tokensafe
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tokensafe)<a href="https://allmcps.com/mcp/tokensafe"><img src="https://allmcps.com/api/badge/tokensafe?style=directory" alt="Tokensafe on AllMCPs" /></a>