Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

token-optimizer-mcp

local MCP server

token-optimizer-mcp is a local MCP server: Context-window optimization: caching, compression & smart file tools that cut tokens 60-90%. Install it from npm as @ooples/token-optimizer-mcp.

Installation

Terminal

claude mcp add token-optimizer-mcp -e TOKEN_OPTIMIZER_CACHE_DIR=... -- npx -y @ooples/token-optimizer-mcp

Run in your project folder. Add --scope user to use it everywhere.

Claude Desktop, Cursor & other clients

Add to claude_desktop_config.json or .cursor/mcp.json.

{
  "mcpServers": {
    "token-optimizer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ooples/token-optimizer-mcp"
      ],
      "env": {
        "TOKEN_OPTIMIZER_CACHE_DIR": "..."
      }
    }
  }
}

Fill in the environment variables with your own credentials.

What you need

  • Runtime: Node.js 18+ (runs with npx).
  • MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
  • Environment variables: TOKEN_OPTIMIZER_CACHE_DIR

Summary

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

token-optimizer-mcp vs similar servers

ServerStarsTypeAPI keyRuntime
token-optimizer-mcp537LocalYesnpm
Entroly470LocalYespypi
Honcho7,369HostedYesNone
sqz632LocalNocargo
mcptoon206LocalNopypi

Questions

It reads one environment variable: TOKEN_OPTIMIZER_CACHE_DIR. Set them in your MCP config before starting the server.

Node.js 18+ (runs with npx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.

token-optimizer-mcp is a local MCP server distributed as the npm package @ooples/token-optimizer-mcp.

Run: claude mcp add token-optimizer-mcp -e TOKEN_OPTIMIZER_CACHE_DIR=... -- npx -y @ooples/token-optimizer-mcp

Run: codex mcp add token-optimizer-mcp --env TOKEN_OPTIMIZER_CACHE_DIR=... -- npx -y @ooples/token-optimizer-mcp

Similar MCP servers

NameStars
  1. Entrolyio.github.juyterman1000/entroly470
  2. Honchoio.github.plastic-labs/honcho7,369
  3. sqzio.github.ojuschugh1/sqz632
  4. mcptoonio.github.activeing123/mcptoon206
  5. linkio.github.gowtham0992/link189
  6. Piia Engramio.github.Patdolitse/piia-engram162
  7. SAP HANA CLIio.github.SAP-samples/hana-cli113
  8. codegraphio.github.codegraph-ai/codegraph102