Token Optimizer MCP
Token Optimizer MCP is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Context-window optimization: caching, compression & smart file tools that cut tokens 60-90%. It has 562 GitHub stars, is released under the MIT license and runs locally with npx -y @ooples/token-optimizer-mcp.
github.com/ooples/token-optimizer-mcp (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install Token Optimizer MCP
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"token-optimizer-mcp": {
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
],
"env": {
"TOKEN_OPTIMIZER_CACHE_DIR": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env TOKEN_OPTIMIZER_CACHE_DIR=your-value --transport stdio token-optimizer-mcp -- npx -y @ooples/token-optimizer-mcpCursor
{
"mcpServers": {
"token-optimizer-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
],
"env": {
"TOKEN_OPTIMIZER_CACHE_DIR": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"inputs": [
{
"type": "promptString",
"id": "token_optimizer_cache_dir",
"description": "TOKEN_OPTIMIZER_CACHE_DIR",
"password": true
}
],
"servers": {
"token-optimizer-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
],
"env": {
"TOKEN_OPTIMIZER_CACHE_DIR": "${input:token_optimizer_cache_dir}"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
TOKEN_OPTIMIZER_CACHE_DIRsecret | No | Directory path for cache storage (optional, defaults to ~/.token-optimizer-cache) |
About Token Optimizer MCP
Compression that optimises your bill, not your byte count — and ships the benchmark so you can check it. One local ledger for optimizer tools, live-graph substitutions, every agent, and the graph's own cost.
- ai
- caching
- claude
- compression
- llm
- mcp
- mcp-server
- token-optimization
- gemini-cli-extension
Similar MCP servers
More other MCP servers
Tunnel Client
openai/tunnel-client
Customer-run client for Secure MCP Tunnel: connect private or localhost MCP servers to ChatGPT, Codex, the Responses API, and AgentKit without exposing them to the public internet.
Active · last commit Oct 23, 2026
OfficialOtherGoAnytype MCP
anyproto/anytype-mcp
Official MCP server for Anytype API - your encrypted, local and collaborative wiki.
Active · last commit Oct 3, 2026
OtherTypeScriptTouchdesigner MCP Server
8beeeaaat/touchdesigner-mcp
MCP server for TouchDesigner - Control and operate TouchDesigner projects through AI agents.
Active · last commit Oct 12, 2026
OtherTypeScriptMitsu
ARCANGEL0/Mitsu
Meet Mitsu, your chibi red-team operator.
Active · last commit Oct 23, 2026
OtherPythonUniFi Protect MCP
sirkirby/unifi-mcp
Manage UniFi Protect cameras, events, recordings, and smart detections via MCP.
Active · last commit Oct 24, 2026
OtherPythonAgent
1mcp-app/agent
A unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.
Active · last commit Oct 25, 2026
OtherTypeScript
How do I install the Token Optimizer MCP MCP server?
Add the command npx -y @ooples/token-optimizer-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Token Optimizer MCP free?
The server is open source under the MIT license, so running it is free. It does not declare any required API key.
Is Token Optimizer MCP actively maintained?
The most recent commit was on Oct 26, 2026. The latest release is v7.7.1, published Oct 26, 2026. appsgit only lists MCP servers with a commit in the last six months.