MCPVault

compress_text

MCP tool from Token Optimizer MCP by ooples

Compress text using Brotli

How to use it

compress_text is exposed by the Token Optimizer MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the compress_text tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Token Optimizer MCP

$npx token-optimizer-install # wire the hooks
FULL TOKEN OPTIMIZER MCP LISTING

Other tools in Token Optimizer MCP (39)

analyze_optimization

Analyze text and get optimization recommendations

cache_warmup

Intelligent cache pre-warming with schedule support (87% reduction)

clear_cache

Clear all cached data

count_tokens

Count tokens using tiktoken (GPT-4 tokenizer)

decompress_text

Decompress Brotli-compressed text

get_cache_stats

View cache hit rates and compression ratios

get_cached

Retrieve previously cached text

optimize_text

Compress and cache text (primary tool for token reduction)

smart_api_fetch

HTTP requests with caching and retry logic (83% reduction on cache hits)

smart_branch

Git branch listing with structured JSON (60% reduction)

smart_build

TypeScript builds with diff-based change detection

smart_cache

Multi-tier cache (L1/L2/L3) with 6 eviction strategies (90% reduction)

smart_database

Database queries with connection pooling and caching (83% reduction)

smart_diff

Git diffs with diff-only output (85% reduction)

smart_docker

Docker operations with layer analysis

smart_edit

Line-based file editing with diff-only output (90% reduction)

smart_glob

File pattern matching with path-only results (75% reduction)

smart_graphql

GraphQL query optimization with complexity analysis (83% reduction)

smart_grep

Search file contents with match-only output (80% reduction)

smart_install

Package installation with dependency analysis

smart_lint

ESLint with incremental analysis and auto-fix

smart_log

Git commit history with smart filtering (75% reduction)

smart_logs

Log aggregation with pattern filtering

smart_merge

Git merge management with conflict analysis (80% reduction)

smart_migration

Database migration tracking (83% reduction)

smart_network

Network diagnostics with anomaly detection

smart_orm

ORM query optimization with N+1 detection (83% reduction)

smart_processes

Process monitoring with resource tracking

smart_read

Read files with 80% token reduction through caching and diffs

smart_rest

REST API analysis with endpoint discovery (83% reduction)

smart_schema

Database schema analysis with intelligent caching

smart_sql

SQL query analysis with optimization suggestions (83% reduction)

smart_status

Git status with status-only output (70% reduction)

smart_system_metrics

System resource monitoring with performance recommendations

smart_test

Test execution with incremental test selection

smart_typecheck

TypeScript type checking with caching

smart_websocket

WebSocket connection management with message tracking

smart_write

Write files with verification and change tracking

smart-cache-api

API response caching with TTL/ETag/event-based strategies