token-optimizer-mcp
CommunityMCP server by ooples · updated · ★ 554 · 1.5k downloads a week
Context-window optimization: caching, compression & smart file tools that cut tokens 60-90%. token-optimizer-mcp is a community project by ooples, not verified by a company domain.
Last commit 2 days ago
MIT: permissive, fine for commercial use
Clear description, published package or server URL, 554 stars, original repository
Runs a script automatically when the package is installed
What you need
| Setting | Needed | What it is |
|---|---|---|
TOKEN_OPTIMIZER_CACHE_DIREnvironment variable | Optional | Directory path for cache storage (optional, defaults to ~/.token-optimizer-cache) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Install token-optimizer-mcp
Built from the published package, never by AIclaude mcp add token-optimizer-mcp -- npx -y @ooples/token-optimizer-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"token-optimizer-mcp": {
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
]
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"token-optimizer-mcp": {
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"token-optimizer-mcp": {
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
]
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add token-optimizer-mcp -- npx -y @ooples/token-optimizer-mcp{
"mcpServers": {
"token-optimizer-mcp": {
"command": "npx",
"args": [
"-y",
"@ooples/token-optimizer-mcp"
]
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install token-optimizer-mcp in Antigravity CLI
gemini mcp add token-optimizer-mcp npx -y @ooples/token-optimizer-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the token-optimizer-mcp block.
Security check
B- Runs a script automatically when the package is installedIn
package.json:"postinstall":
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to token-optimizer-mcp
All alternatives →Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more
Open-source Obsidian for MDX - edit local docs with agent assistance
A private persistent computer: files and a bash shell that survive between runs.
MCP server for terminal commands, file operations, and process management
Filesystem-first framework for durable backend AI agents that run anywhere.
W3C Web Model Context Protocol (WebMCP) API polyfill. Let AI agents like Claude, ChatGPT, and Gemini interact with your website via document.modelContext.
token-optimizer-mcp: common questions
How do I install token-optimizer-mcp?
In Claude Code run claude mcp add token-optimizer-mcp -- npx -y @ooples/token-optimizer-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is token-optimizer-mcp the official server?
token-optimizer-mcp is a community project by ooples, not verified by a company domain.
Is token-optimizer-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is token-optimizer-mcp safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.
What are alternatives to token-optimizer-mcp?
Similar MCP servers: mcp-server, Agent-Native Content, Computer, Desktop Commander.
Does token-optimizer-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
