
Token Optimizer MCP Server
by ooplesio.github.ooples/token-optimizer-mcpv7.5.1
Token optimization through caching and compression, with tools for API optimization, code analysis and real-time monitoring.
context tax
~5,874 tok/turn19 tools
security
100/100
cold start
2588 ms
freshness
Active23d ago
Our reading of Token Optimizer, from the data
Token Optimizer is a devops & ci/cd MCP server from ooples, listed in the official MCP Registry.
Its 19 tools add about 5,874 tokens to every model turn, heavier than the devops & ci/cd median of 2,020 tokens across 41 measured servers (measured 2026-10-23).
Maintenance is active: the last public signal was 23 days ago (2026-10-18). For comparison, 61% of devops & ci/cd servers are active or maintained.
With 552 GitHub stars it ranks #48 of 848 devops & ci/cd servers we index.
It runs locally on your machine over stdio.
Install Token Optimizer MCP server
Install in Claude Code
claude mcp add token-optimizer -- npx -y @ooples/token-optimizer-mcpInstall in Cursor
{
"mcpServers": {
"token-optimizer": {
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"token-optimizer": {
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"token-optimizer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"token-optimizer": {
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test @ooples/token-optimizer-mcp
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| TOKEN_OPTIMIZER_CACHE_DIR | — | — | Directory path for cache storage (optional, defaults to ~/.token-optimizer-cache) |
Context tax
Connecting this server adds ~5,874 tokens of tool definitions to every model turn (heavy, 19 tools). Measured 2026-10-23 via a sandboxed run; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $23.50 | $1.17 |
| Claude Sonnet 5.5 | $11.75 | $1.17 |
| Claude Haiku 5.5 | $0.587 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (19)
smart_glob710 tokSearch files with glob patterns and an unmeasured design target of 75% token reduction through path-only results and smart filtering
smart_grep681 tokSearch file contents with an unmeasured design target of 80% token reduction through match-only output and smart filtering
wiki_write600 tokRecord a durable finding in this project's knowledge graph so a later session retrieves it instead of re-deriving it. Use it the moment you conclude something that cost real work and is not obvious from the code: a dead end and why, a decision and its rejected alternatives, a command that finally worked, or how a subsystem fits together. Anchor it to the files it is about — the anchor is what lets the claim be invalidated when that code changes, and what makes it surface automatically when the file is next touched. Costs nothing and sends nothing off the machine.
smart_edit478 tokEdit files with an unmeasured design target of 90% token reduction through line-based operations and diff-only output
smart_write395 tokWrite files with an unmeasured design target of 85% token reduction through verification, atomic operations, and change tracking
smart_read370 tokRead files with intelligent caching, diff-based updates, and syntax-aware optimization. Measured token reduction vs reading the file: -2% to 0% first read, 99-99.9% repeated on an unchanged file (bench/tools, 3 fixtures) -- a first read returns the file plus a one-field header, so it still costs a little more than reading the file; the saving is on the repeat.
wiki_query366 tokRead the project's knowledge graph: fetch a finding by key, search findings by terms, inspect a node and its neighbours, or get the graph's audit, token balance and overall shape. Use it when the session index mentions a finding you want in full, or to find out what the graph holds at all. NOT for anchored retrieval: to ask what is known about a particular file or symbol, call wiki_read, which does exactly that and is the tool the enforcement layer points at.
get_optimization_report289 tokGet 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.
fleet_audit278 tokLook 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 how enforcing clients compare with directive ones as a natural experiment (reported with its confound). Reads transcripts and graphs locally, uploads nothing, and names every directory it opened. Use dryRun=true to see what it would read before it reads anything; mode="explicit" with `projects` to scan only what you name.
wiki_read234 tokRetrieve what this project's knowledge graph already records about the files you are about to work on, so you do not re-derive it. Call it BEFORE reading a file you have not seen: it returns prior conclusions anchored to that file — dead ends and why, decisions and what was rejected, commands that worked — plus lessons carried from other repositories on this machine. Subagents especially: you never receive the session-start briefing, so this is the only way to reach the graph. Costs nothing and sends nothing off the machine.
token_audit210 tokThe one thing to run. A single ranked queue of what is costing the most in this project -- waste detectors, prompt-cache invalidation attributed to a file and line, and model routing -- each priced per session and per month, each naming how to act on it. Reports what already-applied fixes actually saved, whether habits improved since the advice, and its own token cost; findings worth less than their printing cost are withheld unless full=true. Pass decline="<id>" to stop being told about something.
expand196 tokRetrieve the full output behind a preview reference, served from the local store rather than by re-running anything. Pass `section` to say which named part of the preview you needed -- that is what teaches the next preview to keep it. Pass `claim` and `anchor` to record what you learned, so the same expansion never happens again.
install_doctor168 tokCheck that this installation actually works. Runs the real hook binaries with synthetic payloads and asserts a large read is refused and a small one is not, that session-start emits the policy, and that the graph directory is writable and private -- rather than checking that config files exist, which can pass while the plugin saves nothing. Every failure names its fix. Pass uninstallPlan=true to see exactly what a removal would delete and what it would refuse to touch.
model_routing159 tokWhich model tier this project's work actually goes better on, measured from episode outcomes in the client transcript rather than guessed from task size. Reports expected cost per tier including retries, and prices BOTH mistakes: what an overpowered model wastes and what an underpowered one costs in retries. Pass `shape` (multi-file-change, single-file-change, investigation, build-or-test, conversation) and `currentModel` for a decision note that also states what switching would cost in discarded prompt cache.
waste_audit151 tokReport behavioural token waste in this project, ranked by cost per session and compared against the previous week. Detectors are a shipped floor plus patterns derived from this project's own history, each carrying what it has actually saved. Use action="apply" to put the fixes we own into force (reversible and measured), or action="revert" with an id to undo one. Changes to your own files are only ever proposed as a diff.
optimize_session126 tokAnalyzes 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.
optimize_text104 tokCompress and cache text to reduce token usage. Returns compressed version and saves to cache for future use.
cache_audit78 tokReport 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.
get_cached52 tokRetrieve previously cached and optimized text. Returns the original text if found in cache.
Security signals
100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 23d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-18 · 23d ago · GitHub
Latest release
2026-10-15 · 27d ago · GitHub · v7.5.1
Package published
no data · npm/PyPI
Registry entry updated
2026-10-15 · 27d ago · official registry · v7.5.1
How it compares in DevOps & CI/CD
Against the most-starred devops & ci/cd servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| Token Optimizer (this) | 552 | 19 | 5,874 | Active | local |
| Storybook | 91,330 | — | not measured | Active | — |
| Codebase Memory | 46,873 | — | not measured | Active | local |
| PostHog | 40,338 | — | not measured | Active | local + hosted |
| Claude Task Master | 28,244 | — | not measured | Stale | — |
| Figma Developer | 16,007 | 2 | 898 | Slowing | local |
FAQ
›How do I install the Token Optimizer MCP server in Claude Code?
Run: claude mcp add token-optimizer -- npx -y @ooples/token-optimizer-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Token Optimizer require an API key?
No required environment variables are declared in its published metadata.
›Can I use Token Optimizer as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Token Optimizer in the official MCP registry?
Yes, as io.github.ooples/token-optimizer-mcp.
›How many tokens does Token Optimizer add to my context?
Its tool definitions total about 5,874 tokens, resent on every turn.
Sources and method
- Official MCP Registry entry
- updated 2026-10-15
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-23
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to Token Optimizer
Other devops & ci/cd MCP servers.