mcpbeat Sign in

Token Optimizer MCP Server

local only

Token Optimizer MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 821 installs a week from npm. Last commit 19 Sep 2026.

Context-window optimization: caching, compression & smart file tools that cut tokens 60-90%.

Installs per day peak 1 135 · avg 222 · +26% w/w
a month agotoday
821
Installs / week
npm · @ooples/token-optimizer-mcp
531
Stars
1 open issues
19 Sep 2026
Last commit
0 releases in 90 days
MIT
License
JavaScript

What the code does

We read the source, 4 h ago · rules 3dff92dd89df

A tool parameter reaches a dangerous call

A value the model can set ends up inside a file or shell call. That is not a flaw by itself — for a terminal server it is the job — but it is where things go wrong when it is not.

A tool parameter reaches a dangerous call smart_dependencies.cwd → hooks-core/stop-harvest.mjs:339, smart_dependencies.cwd → integrations/cline/hooks/token-optimizer/lib/stop-harvest.mjs:341, smart_dependencies.cwd → integrations/codex/hooks/lib/stop-harvest.mjs:341 и ещё 4
  const child = spawn(
Evidence

Things with no honest explanation: a promise that contradicts the code, code that runs at install time while hiding what it does, data leaving the machine.

Deletes files or strips permissions src/tools/configuration/smart-workflow.ts:545
          (step.run.includes('sudo') || step.run.includes('chmod 777'))
Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs a command on install [пакет] package.json:1
postinstall: node scripts/postinstall.cjs
  return pathToFileURL(path.join(here, '..', '..', 'hooks-core', name)).href;
Known vulnerability in the package @ooples/token-optimizer-mcp · GHSA-49mq-fc6q-3h46
Known vulnerability in the package @ooples/token-optimizer-mcp · GHSA-76pc-mqxp-3rq5

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

A tool parameter here reaches a dangerous call

That is not a flaw by itself — but it is where things go wrong when it is not the job. We re-read this code on every release. Watch it and you hear from us the day another one appears.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add token-optimizer-mcp -- npx -y @ooples/token-optimizer-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "token-optimizer-mcp": {
      "args": [
        "-y",
        "@ooples/token-optimizer-mcp"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.token-optimizer-mcp]
command = "npx"
args = ["-y", "@ooples/token-optimizer-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "token-optimizer-mcp": {
      "args": [
        "-y",
        "@ooples/token-optimizer-mcp"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "token-optimizer-mcp": {
      "args": [
        "-y",
        "@ooples/token-optimizer-mcp"
      ],
      "command": "npx"
    }
  }
}

This one needs environment variables set before it will start: TOKEN_OPTIMIZER_CACHE_DIR (Directory path for cache storage (optional, defaults to ~/.token-optimizer-mcp)). The author declared them in the registry entry; get the values from the project itself.

Alternatives to Token Optimizer MCP

same job, measured the same way
I
Skim MCP Server
by luw2007

MCP server for Skim code transformation. Compresses code 60-95% for LLM context optimization.

34 installs/wk local only
AI Optimizer
by shivam-app-developers

MCP server that cuts AI coding agent token usage via framework-aware context optimization

34 installs/wk local only
CompressIO — Image Compression for AI
by zhaoyaqi18

Compress images to target sizes (80%+ smaller). Tools: compress_image, convert_image, optimize_image

4 tools answering
Slimcontext MCP Server
by agentailor

MCP Server for SlimContext - AI chat history compression tools

50 installs/wk local only
Token Optimizer
by omkar9854

Reversible context compression for AI agents: cut token usage up to 94%, originals retrievable

23 installs/wk local only
distil
by munhq

Context optimization for LLM agents: tool registry, result masking, budgeting, compaction.

53 installs/wk local only
What's Loaded
by stcmain

What fills your agent's context window before a session starts: skill descriptions, memory files.

51 installs/wk local only
PDF Slim — PDF Compression for AI
by zhaoyaqi18

Compress PDFs to exact target sizes (82-93% smaller). Tools: compress_pdf, optimize_pdf, inspect_pdf

3 tools answering

Token Optimizer MCP — questions

Answers built from our own checks of this server.

Why is there no uptime for Token Optimizer MCP?
Token Optimizer MCP runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package @ooples/token-optimizer-mcp was installed 821 times last week.
How do I connect Token Optimizer MCP?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls @ooples/token-optimizer-mcp straight from npm; nothing to host, nothing to sign up for.
How many people use Token Optimizer MCP?
The npm package @ooples/token-optimizer-mcp was installed 821 times in the last week. Week over week that is +26%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Token Optimizer MCP open source?
Yes — it is published under the MIT licence, written in JavaScript, 531 stars on GitHub and 1 open issue. The source link is on this page, so you can read exactly what it does with your data before you connect it.