
Token Optimizer MCP
by ooples
Reduce LLM context window usage by 60-90% through intelligent caching, Brotli compression, and smart tool replacements.
What it does
Token Optimizer MCP is a high-performance server designed to maximize the available context window for AI agents (like Claude Code) by offloading large content to an external SQLite cache and utilizing advanced compression.
Tools
- optimize_text: Compress and cache text to remove it from the immediate context window.
- smart_read: Read files with massive token reduction using caching and diffs.
- smart_grep/glob: Search and pattern match with minimal token overhead.
- get_session_stats: Monitor real-time token savings and reduction percentages.
- count_tokens: Precise token measurements using tiktoken.
Installation
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"token-optimizer": {
"command": "npx",
"args": ["-y", "@ooples/token-optimizer-mcp"]
}
}
}
Supported hosts
Confirmed support for Claude Desktop, Claude Code, Cursor, Cline, and Windsurf.
Quick install
npm install -g @ooples/token-optimizer-mcpInformation
- Pricing
- free
- Published
- 5/6/2026
- stars





