token-optimizer-mcp
MCP-Server für Anthropic · lesen und schreiben · MIT · lokal (stdio)
Löscht und führt Befehle ausWas der Baustein im Konto darf
Beschreibung des Anbieters
Context-window optimization: caching, compression & smart file tools that cut tokens 60-90%.
Eckdaten
- Maintainer
- ooples
- Repository-Lizenz
- MIT
- Dienstanbieter
- Offizielle Dienstherkunft nicht belegt
- Dienste
- Anthropic
- Bereiche
- Büro
- Plattformen
- —
- Version
- 7.3.0
- Release
- v7.3.0
- Clients
- Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline, Gemini CLI, Roo Code, Zed, OpenCode
- Repository-Themen
- ai, caching, claude, compression, llm, mcp, mcp-server, token-optimization, gemini-cli-extension
Werkzeuge
optimize_textCompress and cache text to reduce token usage. Returns compressed version and saves to cache for future use.
Angabe des Anbieters · Beleg 5get_cachedRetrieve previously cached and optimized text. Returns the original text if found in cache.
Angabe des Anbieters · Beleg 5count_tokensCount 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).
Angabe des Anbieters · Beleg 5compress_textCompress text using Brotli, returned as a base64 string. Intended for AT-REST STORAGE/caching (reduces bytes ~50%).…
Angabe des Anbieters · Beleg 5decompress_textDecompress base64-encoded Brotli-compressed text.
Angabe des Anbieters · Beleg 5get_cache_statsGet cache statistics including hit rate, compression ratio, and token savings.
Angabe des Anbieters · Beleg 5clear_cacheClear all cached data. Use with caution.
Angabe des Anbieters · Beleg 5analyze_optimizationAnalyze text and provide recommendations for optimization including compression benefits and token savings.
Angabe des Anbieters · Beleg 5get_session_statsGet comprehensive statistics from the PowerShell wrapper session tracker including system reminders, tool operations, and total tokens with accurate tiktoken-based counting.
Angabe des Anbieters · Beleg 5optimize_sessionAnalyzes 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…
Angabe des Anbieters · Beleg 5analyze_project_tokensAnalyze observed token usage across multiple sessions within a project. Aggregates session logs and identifies top contributors.…
Angabe des Anbieters · Beleg 5context_pageObtain bounded decision-specific cognition. Returns an explicit empty result when nothing safe applies.
Angabe des Anbieters · Beleg 6context_receipt_verifyVerify that one adapter-delivered context receipt and its correction trace to authenticated external grader evidence.
Angabe des Anbieters · Beleg 6cognition_recordVerify external grader evidence, then propose and activate evidence-backed cognition authored by the active model. Use operation=verify-evidence before recording unfamiliar evidence.
Angabe des Anbieters · Beleg 6checkpoint_handoffCreate or restore a resumable checkpoint and return a takeover receipt.
Angabe des Anbieters · Beleg 6outcome_reportRecord correctness-first task outcome and deterministic grader evidence.
Angabe des Anbieters · Beleg 6token_auditThe one thing to run.…
Angabe des Anbieters · Beleg 7cache_auditReport 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…
Angabe des Anbieters · Beleg 8expandRetrieve the full output behind a preview reference, served from the local store rather than by re-running anything.…
Angabe des Anbieters · Beleg 9fleet_auditLook across every project on this machine at once: which projects hold the cost (ranked with dollar figures), which fixes proven in one project apply to others containing the SAME FILE CONTENTS, and…
Angabe des Anbieters · Beleg 10waste_auditReport behavioural token waste in this project, ranked by cost per session and compared against the previous week.…
Angabe des Anbieters · Beleg 11install_doctorCheck that this installation actually works.…
Angabe des Anbieters · Beleg 12model_routingWhich model tier this project's work actually goes better on, measured from episode outcomes in the client transcript rather than guessed from task size.…
Angabe des Anbieters · Beleg 13context_deltaCompute 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.
Angabe des Anbieters · Beleg 14optimization_storagePersist and retrieve brotli-compressed optimization results keyed by text hash. Operations: store, retrieve.
Angabe des Anbieters · Beleg 15smart_ormORM query optimizer with N+1 detection (83% token reduction)
Angabe des Anbieters · Beleg 16smart_sqlSQL query analyzer with optimization suggestions and execution plan analysis (83% token reduction)
Angabe des Anbieters · Beleg 17wiki_readRetrieve what this project's knowledge graph already records about the files you are about to work on, so you do not re-derive it.…
Angabe des Anbieters · Beleg 18
Voraussetzungen
npx· Paketmanager · erforderlich · Beleg 1TOKEN_OPTIMIZER_CACHE_DIR· Umgebungsvariable · optional · Beleg 19Node.js· Laufzeit · erforderlich · Beleg 20npm· Paketmanager · erforderlich · Beleg 20
36 Umgebungsvariablen laut Anbieter
TOKEN_OPTIMIZER_PROXY_UPSTREAM· Umgebungsvariable · Beleg 21TOKEN_OPTIMIZER_PROXY_NULL· Umgebungsvariable · Beleg 21TOKEN_OPTIMIZER_PROXY_DROP_THINKING· Umgebungsvariable · Beleg 21TOKEN_OPTIMIZER_PROXY_SUBSTITUTE· Umgebungsvariable · Beleg 21USERPROFILE· Umgebungsvariable · Beleg 22HOME· Umgebungsvariable · Beleg 22TOKEN_OPTIMIZER_DAEMON_IDLE_MS· Umgebungsvariable · Beleg 22TOKEN_OPTIMIZER_UCR_DIR· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_CLIENT· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_AGENT_ID· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_CLIENT_VERSION· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_MODEL· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_MODEL_VERSION· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_CAPABILITY_TIER· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_SESSION_ID· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_PROJECT_ID· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_WORKSPACE_ID· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_BRANCH· Umgebungsvariable · Beleg 6TOKEN_OPTIMIZER_GRADER_SECRET· Umgebungsvariable · Beleg 6PORT· Umgebungsvariable · Beleg 23TOKEN_OPTIMIZER_DASHBOARD_PORT· Umgebungsvariable · Beleg 23TOKEN_OPTIMIZER_SETTINGS· Umgebungsvariable · Beleg 12TOKEN_OPTIMIZER_EPISODE_ID· Umgebungsvariable · Beleg 24TOKEN_OPTIMIZER_TOOL_PROFILE· Umgebungsvariable · Beleg 24TOKEN_OPTIMIZER_EXPERIMENT_ARM· Umgebungsvariable · Beleg 24TOKEN_OPTIMIZER_VERSION· Umgebungsvariable · Beleg 25TOKEN_OPTIMIZER_AUTO_REPAIR· Umgebungsvariable · Beleg 25TOKEN_OPTIMIZER_MODE· Umgebungsvariable · Beleg 25TOKEN_OPTIMIZER_LOG_DIR· Umgebungsvariable · Beleg 26TOKEN_OPTIMIZER_STATE_DIR· Umgebungsvariable · Beleg 26TOKEN_OPTIMIZER_ANALYTICS_DB· Umgebungsvariable · Beleg 27TOKEN_OPTIMIZER_PROVIDER_USAGE_DAYS· Umgebungsvariable · Beleg 27TOKEN_OPTIMIZER_HOOK_PHASE· Umgebungsvariable · Beleg 28ORCAROUTER_API_KEY· Umgebungsvariable · Beleg 20TOKEN_OPTIMIZER_ORCA_MODEL· Umgebungsvariable · Beleg 20TOKEN_OPTIMIZER_LARGE_READ_BYTES· Umgebungsvariable · Beleg 20
Installation
npx -y @ooples/token-optimizer-mcp@7.3.0Rechte
Löscht und führt Befehle aus
- 2 von 28 Werkzeugen können löschen und Befehle ausführen, etwa clear_cache, install_doctor.
- 4 von 28 Werkzeugen legen Daten an oder ändern sie, etwa optimize_text, optimize_session, cognition_record.
- Der Anbieter deklariert: lesen und schreiben.
Lass löschende, sendende und ausführende Werkzeuge nur nach Bestätigung je Aktion laufen und verbinde zuerst ein Testkonto.
- Zugriffe laut Paketangaben
- lesen, schreiben
- Authentifizierung
- —
- Transport
- stdio
- Technische Prüfung
- Ungeprüft
Quellen (28)
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- Abgerufen und Felder geprüft: 2026-10-04; technische Prüfung: ungeprüft