{"name":"io.github.ooples/token-optimizer-mcp","slug":"ooples-token-optimizer-mcp","title":null,"description":"Context-window optimization: caching, compression & smart file tools that cut tokens 60-90%.","url":"https://mcp.market/server/ooples-token-optimizer-mcp","rating":null,"grade":"C","score":69,"certified":false,"status":"active","category":"other","tags":[],"presence":{"score":57,"stars":530,"forks":66,"downloads_week":1409,"last_push_at":"2026-09-19T13:36:20.000Z","license":"MIT"},"uptime":null,"claimed":false,"transport":"npm","callable_via_gateway":false,"default_price_micros":0,"repository":"https://github.com/ooples/token-optimizer-mcp","website":null,"version":"7.2.0","remotes":[],"packages":[{"registryType":"npm","identifier":"@ooples/token-optimizer-mcp","version":"7.2.0","transport":{"type":"stdio"},"environmentVariables":[{"description":"Directory path for cache storage (optional, defaults to ~/.token-optimizer-cache)","format":"string","name":"TOKEN_OPTIMIZER_CACHE_DIR"}]}],"tools":[{"name":"alert_manager","description":"Comprehensive alerting system with multi-channel notifications, intelligent routing, and 89% token reduction through aggressive caching and history aggregation","write_action":false,"price_micros":0,"input_schema":null},{"name":"analyze_optimization","description":"Analyze text and provide recommendations for optimization including compression benefits and token savings.","write_action":false,"price_micros":0,"input_schema":null},{"name":"analyze_project_tokens","description":"Analyze observed token usage across multiple sessions within a project. Aggregates session logs and identifies top contributors. Cost is Not priced unless the caller supplies an effective input-token rate; any resulting value is a cost equivalent, not an invoice.","write_action":false,"price_micros":0,"input_schema":null},{"name":"anomalyexplainer","description":"Explain anomalies with root cause analysis, hypothesis generation, and remediation suggestions","write_action":false,"price_micros":0,"input_schema":null},{"name":"cache_analytics","description":"Comprehensive cache analytics with 88%+ token reduction. Real-time dashboards, trend analysis, alerting, heatmaps, bottleneck detection, and cost optimization.","write_action":false,"price_micros":0,"input_schema":null},{"name":"cache_audit","description":"Report Anthropic prompt-cache economics for this project: measured cache-read input, cache-write input, hit rate, and warm prefix size read from a Claude Code transcript, plus likely invalidation sources. Cost equivalents are labeled Anthropic-specific, excluded from universal savings, and are not invoices.","write_action":false,"price_micros":0,"input_schema":null},{"name":"cache_benchmark","description":"Cache Performance Benchmarking with 89% token reduction through comprehensive testing and analysis. Features: - Strategy comparison (LRU vs LFU vs FIFO vs TTL vs size vs hybrid) - Load testing with configurable concurrency and ramp-up - Latency profiling with percentiles (p50, p90, p95, p99, p99.9) - Throughput testing (operations per second) - Comprehensive reports in markdown, HTML, JSON, PDF - ","write_action":false,"price_micros":0,"input_schema":null},{"name":"cache_compression","description":"Advanced compression strategies for cache optimization with 89%+ token reduction. Supports 6 algorithms (gzip, brotli, lz4, zstd, snappy, custom), adaptive selection, dictionary-based compression, and delta compression for time-series data.","write_action":false,"price_micros":0,"input_schema":null},{"name":"cache_invalidation","description":"Comprehensive cache invalidation with 88%+ token reduction, dependency tracking, pattern matching, scheduled invalidation, and distributed coordination","write_action":false,"price_micros":0,"input_schema":null},{"name":"cache_optimizer","description":"Advanced cache optimization with 89%+ token reduction. Analyzes performance, benchmarks strategies, provides ML-based recommendations, detects bottlenecks, and performs cost-benefit analysis.","write_action":false,"price_micros":0,"input_schema":null},{"name":"cache_partition","description":"Advanced cache partitioning and sharding with 87%+ token reduction through consistent hashing, automatic rebalancing, and partition isolation","write_action":false,"price_micros":0,"input_schema":null},{"name":"cache_replication","description":"Distributed cache replication with 88%+ token reduction. Supports primary-replica and multi-primary modes, strong/eventual consistency, automatic conflict resolution, failover, incremental sync, and health monitoring.","write_action":false,"price_micros":0,"input_schema":null},{"name":"cache_warmup","description":"Intelligent cache pre-warming with 87%+ token reduction, featuring schedule-based warming, pattern analysis, dependency resolution, and progressive warming strategies","write_action":false,"price_micros":0,"input_schema":null},{"name":"checkpoint_handoff","description":"Create or restore a resumable checkpoint and return a takeover receipt.","write_action":true,"price_micros":0,"input_schema":null},{"name":"clear_cache","description":"Clear all cached data. Use with caution.","write_action":false,"price_micros":0,"input_schema":null},{"name":"cognition_record","description":"Verify external grader evidence, then propose and activate evidence-backed cognition authored by the active model. Use operation=verify-evidence before recording unfamiliar evidence.","write_action":false,"price_micros":0,"input_schema":null},{"name":"compress_text","description":"Compress text using Brotli, returned as a base64 string. Intended for AT-REST STORAGE/caching (reduces bytes ~50%). NOTE: base64 tokenizes poorly, so the output usually has MORE LLM tokens than the input — do NOT feed the result into a model context expecting savings. The response includes originalTokens/compressedTokens and a warning when the output would increase tokens.","write_action":false,"price_micros":0,"input_schema":null},{"name":"context_delta","description":"Compute a unified-diff delta for a file in a given session so the model only sees changes since the last snapshot. Operations: compute-delta, seed, clear.","write_action":false,"price_micros":0,"input_schema":null},{"name":"context_page","description":"Obtain bounded decision-specific cognition. Returns an explicit empty result when nothing safe applies.","write_action":false,"price_micros":0,"input_schema":null},{"name":"context_receipt_verify","description":"Verify that one adapter-delivered context receipt and its correction trace to authenticated external grader evidence.","write_action":false,"price_micros":0,"input_schema":null},{"name":"count_tokens","description":"Count tokens in text using the pluggable tokenizer framework (#124). Picks a model-specific tokenizer (tiktoken for GPT/Claude, Google AI REST for Gemini, content-aware heuristic fallback).","write_action":false,"price_micros":0,"input_schema":null},{"name":"custom_widget","description":"Create and manage custom dashboard widgets with 88% token reduction through template caching and configuration compression","write_action":true,"price_micros":0,"input_schema":null},{"name":"data_visualizer","description":"Create and manage interactive data visualizations with 92% token reduction through SVG/Canvas optimization and configuration caching","write_action":true,"price_micros":0,"input_schema":null},{"name":"decompress_text","description":"Decompress base64-encoded Brotli-compressed text.","write_action":false,"price_micros":0,"input_schema":null},{"name":"expand","description":"Retrieve the full output behind a preview reference, served from the local store rather than by re-running anything.","write_action":false,"price_micros":0,"input_schema":null},{"name":"export_analytics","description":"Export all analytics data in JSON or CSV format. Supports filtering by date range, hook phase, tool name, and MCP server. Useful for external analysis, reporting, and data integration.","write_action":false,"price_micros":0,"input_schema":null},{"name":"fleet_audit","description":"Look across every project on this machine at once: which projects hold the cost (ranked with dollar figures), which fixes","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_action_analytics","description":"Get detailed token usage analytics broken down by tool/action (Read, Write, Grep, Bash, count_tokens, etc.). Shows which tools consume the most tokens and identifies optimization opportunities for specific operations.","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_cache_stats","description":"Get cache statistics including hit rate, compression ratio, and token savings.","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_cached","description":"Retrieve previously cached and optimized text. Returns the original text if found in cache.","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_hook_analytics","description":"Get detailed token usage analytics broken down by hook phase (PreToolUse, PostToolUse, SessionStart, PreCompact, UserPromptSubmit). Shows which hook phases consume the most tokens and where optimization efforts should be focused.","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_mcp_server_analytics","description":"Get detailed token usage analytics broken down by MCP server (token-optimizer, filesystem, github, etc.). Shows which MCP servers are contributing the most to token usage and helps identify cross-server optimization opportunities.","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_optimization_report","description":"Get a provenance-gated token report. Verified savings require a materialized MCP payload before and after optimization; historical and tool-reported estimates are excluded. Direct API-price equivalents use each exact captured model and route; ambiguous operations remain unpriced.","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_session_stats","description":"Get comprehensive statistics from the PowerShell wrapper session tracker including system reminders, tool operations, and total tokens with accurate tiktoken-based counting.","write_action":false,"price_micros":0,"input_schema":null},{"name":"health-monitor","description":"Monitor health status of systems, services, and applications with dependency tracking. Supports 8 operations: check, register-check, update-check, delete-check, get-status, get-history, configure-dependencies, get-impact. Achieves 87% token reduction through status caching and dependency graph compression.","write_action":false,"price_micros":0,"input_schema":null},{"name":"health_monitor","description":"Monitor system and application health with 91% token reduction through health state compression and metric aggregation","write_action":false,"price_micros":0,"input_schema":null},{"name":"install_doctor","description":"Check that this installation actually works. Runs the real hook binaries with synthetic payloads and asserts a large read","write_action":false,"price_micros":0,"input_schema":null},{"name":"intelligent-assistant","description":"Provides intelligent assistance including contextual help, suggestions, explanations, and troubleshooting","write_action":false,"price_micros":0,"input_schema":null},{"name":"knowledge_graph","description":"Build and query knowledge graphs with 91% token reduction through intelligent caching. Supports graph building, pattern querying, path finding, community detection, node ranking, relation inference, visualization, and export.","write_action":false,"price_micros":0,"input_schema":null},{"name":"log_dashboard","description":"Interactive log analysis dashboard with filtering, searching, pattern detection, and 90% token reduction through intelligent caching and compression","write_action":false,"price_micros":0,"input_schema":null},{"name":"metric_collector","description":"Comprehensive metrics collection and aggregation with multi-source support, time-series compression, and 88% token reduction through delta encoding and intelligent caching","write_action":false,"price_micros":0,"input_schema":null},{"name":"model_routing","description":"Which model tier this project's work actually goes better on, measured from episode outcomes in the client transcript","write_action":false,"price_micros":0,"input_schema":null},{"name":"monitoring_integration","description":"External monitoring platform integration with 87% token reduction through data compression and intelligent caching","write_action":false,"price_micros":0,"input_schema":null},{"name":"natural-language-query","description":"Natural language query translation and optimization","write_action":false,"price_micros":0,"input_schema":null},{"name":"optimize_session","description":"Analyzes operations in the current session from the session JSONL log, identifies large text blocks from file-based tools (Read, Write, Edit), compresses them, and stores them in the cache to reduce future token usage. Returns a summary of the optimization.","write_action":false,"price_micros":0,"input_schema":null},{"name":"optimize_text","description":"Compress and cache text to reduce token usage. Returns compressed version and saves to cache for future use.","write_action":false,"price_micros":0,"input_schema":null},{"name":"outcome_report","description":"Record correctness-first task outcome and deterministic grader evidence.","write_action":false,"price_micros":0,"input_schema":null},{"name":"pattern-recognition","description":"Pattern detection and analysis in logs, metrics, and events","write_action":false,"price_micros":0,"input_schema":null},{"name":"performance-tracker","description":"Tracks and analyzes performance metrics (CPU, memory, response times, throughput) with advanced statistical capabilities. Supports 8 operations: track, query, analyze-trends, forecast, compare, detect-regressions, get-baseline, generate-report. Achieves 89%+ token reduction through intelligent caching and data aggregation.","write_action":false,"price_micros":0,"input_schema":null},{"name":"predictive-analytics","description":"Predictive modeling and forecasting for system metrics","write_action":false,"price_micros":0,"input_schema":null},{"name":"predictive_cache","description":"ML-based predictive caching with 91%+ token reduction using ARIMA, exponential smoothing, LSTM, and collaborative filtering","write_action":false,"price_micros":0,"input_schema":null},{"name":"recommendation-engine","description":"Intelligent recommendations for optimization and resource allocation","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart-dashboard","description":"Unified dashboard management with widget management and multi-source data integration. Supports 8 operations: check, register-check, update-check, delete-check, get-status, get-history, configure-dependencies, get-impact. Achieves 87% token reduction through status caching and dependency graph compression.","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_api_fetch","description":"Execute HTTP requests with intelligent caching and retry logic. Features: - Automatic retry with exponential backoff (1s, 2s, 4s, 8s) - Response caching with TTL-based invalidation (default: 5 minutes) - Request deduplication for in-flight requests - Circuit breaker pattern (opens after 5 consecutive failures) - ETag/Cache-Control header support - 83% average token reduction through intelligent ou","write_action":true,"price_micros":0,"input_schema":null},{"name":"smart_ast_grep","description":"Perform structural code search with 83% token reduction through AST indexing and caching","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_branch","description":"List and manage git branches with 60% token reduction through structured JSON output and smart filtering","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_build","description":"Run TypeScript build with intelligent caching, diff-based change detection, and token-optimized output","write_action":true,"price_micros":0,"input_schema":null},{"name":"smart_cache","description":"Advanced multi-tier cache with 90%+ token reduction, 6 eviction strategies, stampede prevention, and automatic tier management","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_cache_api","description":"API Response Caching with 83% token reduction through intelligent cache management. Features: - Multiple caching strategies (TTL, ETag, Event-based, LRU, Size-based) - Intelligent cache key generation with query normalization - Pattern-based and tag-based invalidation - Stale-while-revalidate support - Cache hit rate analysis and recommendations - Cache warming and preloading Actions: - get: Retri","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_complexity","description":"Analyze code complexity metrics including cyclomatic, cognitive, Halstead, and maintainability index (70-80% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_config_read","description":"Read and parse configuration files (JSON, YAML, TOML) with 83% token reduction through schema-aware caching and intelligent diffing","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_database","description":"Database query optimizer with connection pooling, circuit breaking, and 83% token reduction. Supports query execution, EXPLAIN analysis, performance optimization, health monitoring, slow query detection, and batch operations.","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_dependencies","description":"Analyze project dependencies with 83% token reduction through graph caching and incremental updates","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_diff","description":"Get git diffs with 85% token reduction through diff-only output and smart filtering","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_docker","description":"Docker operations with build/run/stop/logs support, image layer analysis, and optimization suggestions","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_edit","description":"Edit files with 90% token reduction through line-based operations and diff-only output","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_env","description":"Smart environment variable analyzer with security checking and suggestions (83% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_exports","description":"Analyze TypeScript/JavaScript export statements with intelligent caching. Tracks exports, detects unused exports, and provides optimization suggestions. Achieves 75-85% token reduction through export analysis summarization.","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_glob","description":"Search files with glob patterns and 75% token reduction through path-only results and smart filtering","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_graphql","description":"GraphQL query optimizer with complexity analysis and caching (83% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_grep","description":"Search file contents with 80% token reduction through match-only output and smart filtering","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_imports","description":"Analyze TypeScript/JavaScript import statements with intelligent caching. Detects unused imports, missing imports, and provides optimization suggestions. Achieves 75-85% token reduction through import analysis summarization.","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_install","description":"Package installation with dependency analysis, conflict detection, and smart caching for npm/yarn/pnpm","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_lint","description":"Run ESLint with intelligent caching, incremental analysis, and auto-fix suggestions","write_action":true,"price_micros":0,"input_schema":null},{"name":"smart_log","description":"Get git commit history with 75% token reduction through structured JSON output and smart filtering","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_logs","description":"System log aggregation and analysis with multi-source support, pattern filtering, error detection, and insights","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_merge","description":"Manage git merges with 80% token reduction through structured status and conflict management","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_migration","description":"Database migration tracker with status monitoring and 83% token reduction. Supports listing migrations, checking status, viewing history, rollback operations, and migration generation.","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_network","description":"Network diagnostics and monitoring with connectivity testing, port scanning, DNS resolution, and anomaly detection","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_orm","description":"ORM query optimizer with N+1 detection (83% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_package_json","description":"Analyze package.json with dependency resolution, version conflict detection, and security scanning. Provides 83% token reduction through intelligent caching.","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_processes","description":"Monitor and analyze system processes with anomaly detection and resource tracking","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_read","description":"Read files with 80% token reduction through intelligent caching, diff-based updates, and syntax-aware optimization","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_refactor","description":"Provides intelligent refactoring suggestions with code examples and impact analysis (75-85% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_rest","description":"REST API analyzer with endpoint discovery and health scoring (83% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_schema","description":"Database schema analyzer with intelligent caching and 83% token reduction. Supports PostgreSQL, MySQL, and SQLite. Provides schema introspection, relationship analysis, index recommendations, and schema diff.","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_security","description":"Security vulnerability scanner with pattern detection and intelligent caching (83% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_sql","description":"SQL query analyzer with optimization suggestions and execution plan analysis (83% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_status","description":"Get git status with 70% token reduction through status-only output and smart filtering","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_symbols","description":"Extract and analyze TypeScript/JavaScript symbols with scope, type, and reference information (75-85% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_system_metrics","description":"System resource monitoring with CPU, memory, disk usage tracking, anomaly detection, and performance recommendations","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_test","description":"Run the project's tests (Jest, Vitest, Mocha, AVA or node --test) with","write_action":true,"price_micros":0,"input_schema":null},{"name":"smart_tsconfig","description":"Parse and analyze TypeScript configuration with 83% token reduction. Resolves extends chains, detects issues, and caches results for 7 days.","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_typecheck","description":"Run TypeScript type checking with intelligent caching and categorized error reporting","write_action":true,"price_micros":0,"input_schema":null},{"name":"smart_typescript","description":"Incremental TypeScript compilation with dependency tracking and intelligent caching (83% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_websocket","description":"WebSocket connection manager with message tracking (83% token reduction)","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_workflow","description":"Intelligent CI/CD workflow file analysis with 83% token reduction. Analyzes GitHub Actions, GitLab CI, CircleCI, and Azure Pipelines workflows with syntax validation, security analysis, and performance recommendations.","write_action":false,"price_micros":0,"input_schema":null},{"name":"smart_write","description":"Write files with 85% token reduction through verification, atomic operations, and change tracking","write_action":true,"price_micros":0,"input_schema":null},{"name":"token_audit","description":"The one thing to run. A single ranked queue of what is costing the most in this project -- waste detectors, prompt-cache","write_action":false,"price_micros":0,"input_schema":null},{"name":"waste_audit","description":"Report behavioural token waste in this project, ranked by cost per session and compared against the previous week.","write_action":false,"price_micros":0,"input_schema":null}],"scan":{"score":69,"grade":"C","scanned_at":"2026-09-19T21:32:25.147Z","report":{"scannerVersion":"0.1.9","scannedAt":"2026-09-19T21:32:25.132Z","components":{"code":{"score":10,"max":25,"notes":["1333 source files scanned"]},"reliability":{"score":-1,"max":20,"notes":["no gateway calls yet and no remote to probe"]},"poisoning":{"score":-1,"max":15,"notes":["tools not inspected (local package is not executed); not counted"]},"auth":{"score":12,"max":15,"notes":["local package, no credentials required"]},"maintenance":{"score":15,"max":15,"notes":["last push 0 days ago"]},"identity":{"score":8,"max":10,"notes":["registry namespace matches repository owner","GitHub account older than a year"]}},"findings":[{"id":"install.script","severity":"medium","component":"code","title":"npm install lifecycle script present"},{"id":"exec.eval","severity":"medium","component":"code","title":"eval / new Function used","evidence":"dist/tools/code-analysis/smart-security.js: …, cwe: 'CWE-327', }, // eval() usage { id: 'unsafe-eval',…"},{"id":"install.script","severity":"medium","component":"code","title":"npm install lifecycle script present","evidence":"package.json: … \"!**/.env.*\" ], \"scripts\": { \"postinstall\": \"node scripts/postinstall.cjs\", \"ch…"}],"inputs":{"packages":[{"registryType":"npm","identifier":"@ooples/token-optimizer-mcp","version":"7.2.0","found":true,"license":"MIT","hasInstallScripts":true,"dependencyCount":20,"publishedAt":"2026-09-19T13:44:39.573Z","repositoryUrl":"git+https://github.com/ooples/token-optimizer-mcp.git","weeklyDownloads":1409}],"repo":{"found":true,"owner":"ooples","repo":"token-optimizer-mcp","archived":false,"pushedAt":"2026-09-19T13:36:20Z","stars":530,"forks":66,"openIssues":2,"ownerType":"User","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/3075685?v=4","ownerCreatedAt":"2012-12-18T21:56:42Z","license":"MIT"},"icon":{"url":"https://avatars.githubusercontent.com/u/3075685?v=4&s=128","source":"registry"},"presence":{"stars":530,"forks":66,"downloadsWeek":1409,"license":"MIT","lastPushAt":"2026-09-19T13:36:20.000Z","score":57}}}},"grade_history":[{"kind":"restore","fromGrade":"D","toGrade":"C","reason":"score 69: npm install lifecycle script present; eval / new Function used; npm install lifecycle script present","createdAt":"2026-09-19T21:32:25.860Z"}],"reviews":[]}