by ooples
Intelligent token optimization for Claude Code - achieving 95%+ token reduction through caching, compression, and smart tool intelligence
# Add to your Claude Code skills
git clone https://github.com/ooples/token-optimizer-mcpGuides for using mcp servers skills like token-optimizer-mcp.
Last scanned: 5/23/2026
{
"issues": [
{
"type": "npm-audit",
"message": "brace-expansion: brace-expansion: Zero-step sequence causes process hang and memory exhaustion",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "express-rate-limit: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "ip-address: ip-address has XSS in Address6 HTML-emitting methods",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "picomatch: Picomatch: Method Injection in POSIX Character Classes causes incorrect Glob Matching",
"severity": "high"
},
{
"type": "npm-audit",
"message": "qs: qs has a remotely triggerable DoS: qs.stringify crashes with TypeError on null/undefined entries in comma-format arrays when encodeValuesOnly is set",
"severity": "medium"
}
],
"status": "WARNING",
"scannedAt": "2026-05-23T06:35:17.165Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}token-optimizer-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ooples. Intelligent token optimization for Claude Code - achieving 95%+ token reduction through caching, compression, and smart tool intelligence. It has 442 GitHub stars.
token-optimizer-mcp returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/ooples/token-optimizer-mcp" and add it to your Claude Code skills directory (see the Installation section above).
token-optimizer-mcp is primarily written in TypeScript. It is open-source under ooples on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh token-optimizer-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.
Intelligent token optimization through caching, compression, and smart tooling for Claude Code and Claude Desktop
Token Optimizer MCP is a Model Context Protocol (MCP) server that reduces context window usage by 60-90% through intelligent caching, compression, and smart tool replacements. By storing compressed content externally in SQLite and providing optimized alternatives to standard tools, the server helps you maximize your available context window.
Production Results: 60-90% token reduction across 38,000+ operations in real-world usage.
# Run PowerShell as Administrator, then:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Install globally (hooks install automatically!)
npm install -g @ooples/token-optimizer-mcp
# Install globally (hooks install automatically!)
npm install -g @ooples/token-optimizer-mcp
That's it! The postinstall script will automatically:
Result: 60-90% token reduction across all operations!
Note: If automatic installation is skipped (e.g., in CI environments), you can manually run the installer:
powershell -ExecutionPolicy Bypass -File install-hooks.ps1bash install-hooks.shFor detailed platform-specific installation instructions, see docs/HOOKS-INSTALLATION.md.
Usage Example:
// Cache large content to remove it from context window
optimize_text({
text: "Large API response or file content...",
key: "api-response-key",
quality: 11
})
// Result: 60-90% token reduction
Optimized replacements for standard file tools with intelligent caching and diff-based updates:
Usage Example:
// Read a file with automatic caching
smart_read({ path: "/path/to/file.ts" })
// First read: full content
// Subsequent reads: only diff (80% reduction)
Intelligent caching and optimization for external data sources:
Usage Example:
// Fetch API with automatic caching
smart_api_fetch({
method: "GET",
url: "https://api.example.com/data",
ttl: 300
})
// Cached responses: 95% token reduction
Development workflow optimization with intelligent caching:
Usage Example:
// Run tests with caching
smart_test({
onlyChanged: true, // Only test changed files
coverage: true
})
Enterprise-grade caching strategies with 87-92% token reduction:
Usage Example:
// Configure multi-tier cache
smart_cache({
operation: "configure",
evictionStrategy: "LRU",
l1MaxSize: 1000,
l2MaxSize: 10000
})
Comprehensive monitoring with 88-92% token reduction through intelligent caching:
Usage Example:
// Create an alert
alert_manager({
operation: "create-alert",
alertName: "high-cpu-usage",
channels: ["slack", "email"],
threshold: { type: "above", value: 80 }
})
System-level operations with smart caching:
Usage Example:
// View session token usage
get_session_stats({})
// Result: Detailed breakdown of token usage by tool
Granular token usage analytics for pinpointing optimization opportunities: