get_savings_stats
Retrieve cumulative token and bandwidth savings achieved through VisionSqueezer optimizations.
Shrink images before a vision model reads them — tile-aligned, padding-free, with the token savings tracked.
LABSCO SUMMARY
Tile alignment is the mechanism: vision APIs charge by tile, and an image that does not land on those boundaries pays for padding it does not use. sandbox_execute is the more aggressive option — crop and binarize down to the region that carries the answer, and the rest never becomes tokens at all.
An image preprocessing MCP server for vision models. It resizes to tile boundaries, strips padding and re-encodes so an image costs fewer tokens to look at, and it works with any agent that speaks MCP rather than a single provider.
Nothing to configure — clients run npx -y vision-squeezer over stdio, or npx vision-squeezer install to pick the client, method and scope interactively. In Claude Code the plugin path bundles the server together with the /vision-stats, /vision-doctor and /vision-upgrade skills. There is also a Rust crate and a Python package of the same name.
One command — npx vision-squeezer install
USE CASES
Snap it to tile boundaries and drop the padding before the model looks at it.
Optimize up to 64 in one call and read which ones failed.
Crop to the region, raise contrast, and binarize so only that part becomes tokens.
Read the cumulative token and bandwidth savings.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
get_savings_statsRetrieve cumulative token and bandwidth savings achieved through VisionSqueezer optimizations.
optimize_imageResize and optimize an image for LLM vision APIs. Snaps dimensions to tile boundaries, removes padding, and re-encodes to minimize token consumption.
optimize_image_batchOptimize multiple images in one call (max 64). Each entry takes the same arguments as optimize_image. Returns a per-image results array; a failing image yields an error entry without failing the whole batch.
sandbox_executeThink in Code: Execute a sequence of atomic operations (crop, grayscale, binarize, resize, contrast, brightness) on an image to extract only necessary context and slash tokens.
BEFORE YOU INSTALL
4 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx vision-squeezer install/plugin marketplace add eralpozcan/vision-squeezer
/plugin install vision-squeezer-mcp@vision-squeezerclaude mcp add --scope user vision-squeezer -- npx -y vision-squeezer{
"mcpServers": {
"vision-squeezer": {
"command": "npx",
"args": [
"-y",
"vision-squeezer"
]
}
}
}{
"mcpServers": {
"vision-squeezer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"vision-squeezer"
]
}
}
}{
"servers": {
"vision-squeezer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"vision-squeezer"
]
}
}
}{
"servers": {
"vision-squeezer": {
"command": "npx",
"args": [
"-y",
"vision-squeezer"
]
}
}
}[mcp_servers.vision-squeezer]
command = "npx"
args = ["-y", "vision-squeezer"]qwen mcp add vision-squeezer -- npx -y vision-squeezer{
"mcp": {
"vision-squeezer": {
"type": "local",
"command": [
"npx",
"-y",
"vision-squeezer"
],
"enabled": true
}
}
}kimi mcp add vision-squeezer -- npx -y vision-squeezer{
"context_servers": {
"vision-squeezer": {
"command": "npx",
"args": [
"-y",
"vision-squeezer"
]
}
}
}