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. 4 896 installs a week from npm. Last commit 4 Nov 2026.

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

Installs per day peak 1 565 · avg 540 · +28% w/w
a month agotoday
4 896
Installs / week
npm · @ooples/token-optimizer-mcp
571
Stars
3 open issues
4 Nov 2026
Last commit
24 releases in 90 days
MIT
License
JavaScript

What the code does

We read the source, 2 d ago · rules 995398eba69f

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:649
          (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
  if (platform === 'linux' && (existsSync('/.dockerenv') || existsSync('/run/.containerenv'))) {
  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": {
      "command": "npx",
      "args": [
        "-y",
        "@ooples/token-optimizer-mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.token-optimizer-mcp]
command = "npx"
args = ["-y", "@ooples/token-optimizer-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "token-optimizer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ooples/token-optimizer-mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "token-optimizer-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ooples/token-optimizer-mcp"
      ]
    }
  }
}

Optional settings from the registry entry, left out of the block above: TOKEN_OPTIMIZER_CACHE_DIR (Directory path for cache storage (optional, defaults to ~/.token-optimizer-cache)).

Alternatives to Token Optimizer MCP

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

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

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

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

50 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

59 installs/wk local only
Token Optimizer
by omkar9854

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

55 installs/wk local only
distil
by munhq

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

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

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

78 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 4 896 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 in the form 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 4 896 times in the last week. Week over week that is +28%. 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, 571 stars on GitHub and 3 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.