Skip to main content
Glama

TinySquosh — local batch image compression for desktop and MCP

Drop JPEG, PNG or WebP files into TinySquosh, or send them from a coding agent through MCP. Both use the same local workspace.

The alpine print above goes from 350 KiB JPEG to 107 KiB WebP at quality 78. Both images are 1200 × 800.

Download for macOS, Windows or Linux · Run locally · Connect an agent · Tool reference

Run locally

From a checkout, install Bun 1.4.4, Node.js 22.12 or newer, stable Rust (1.90 or newer) and the native build tools for your OS. Platform prerequisites for macOS, Windows and Linux

bun install --frozen-lockfile --ignore-scripts
bun run tauri dev

Choose Try a sample batch or drop in your own JPEG, PNG and WebP files. Click an image and drag the split handle in the Inspector. You can preview a new quality or size before applying it to the selected files. Download all saves the ready images as a ZIP. The save button on each row exports just that image.

TinySquosh comparing original and optimized images, adjusting the quality of one file and exporting the batch as a ZIP.

Remember the Squoosh web app? TinySquosh uses some of the same compression tools, including MozJPEG and OxiPNG, and lets you optimize a whole batch of images at once.

Related MCP server: obrobka-mcp

MCP integration

Keep TinySquosh open and run your MCP client on the same computer. In Settings → Local MCP server, copy the private token and check the endpoint. The examples use the default http://127.0.0.1:47832/mcp (Streamable HTTP). If you changed the port, use the URL shown in Settings.

To let an agent import files by path, grant their folder in Settings. Inline image submissions also work without a folder grant.

Add the tinysquosh entry to .mcp.json in your project root. Set TINYSQUOSH_MCP_TOKEN to the copied token in the shell where you start claude. Open /mcp to check the connection. Claude Code MCP guide

{
  "mcpServers": {
    "tinysquosh": {
      "type": "http",
      "url": "http://127.0.0.1:47832/mcp",
      "headers": { "Authorization": "Bearer ${TINYSQUOSH_MCP_TOKEN}" }
    }
  }
}

Copy the token from Settings. On macOS, run the following in Bash or Zsh. On other platforms, set the same environment variable to your token before running codex mcp add.

export TINYSQUOSH_MCP_TOKEN="$(pbpaste)"
codex mcp add tinysquosh --url http://127.0.0.1:47832/mcp \
  --bearer-token-env-var TINYSQUOSH_MCP_TOKEN
codex

Add the entry to ~/.cursor/mcp.json for all your projects, or to .cursor/mcp.json in one project. Set TINYSQUOSH_MCP_TOKEN in Cursor’s environment, then restart Cursor so it picks up the value. Cursor MCP guide

{
  "mcpServers": {
    "tinysquosh": {
      "url": "http://127.0.0.1:47832/mcp",
      "headers": { "Authorization": "Bearer ${env:TINYSQUOSH_MCP_TOKEN}" }
    }
  }
}

In the IDE’s agent panel, open … → MCP Servers → Manage MCP Servers → View raw config. Add the entry to your personal mcp_config.json and replace YOUR_LOCAL_TOKEN with the token from TinySquosh. Keep this file outside version control. Google Antigravity MCP guide

{
  "mcpServers": {
    "tinysquosh": {
      "serverUrl": "http://127.0.0.1:47832/mcp",
      "headers": { "Authorization": "Bearer YOUR_LOCAL_TOKEN" }
    }
  }
}

Give your agent the paths to two images in the approved folder and try this prompt.

Convert these two images to WebP at quality 78. Tell me which one is larger and leave the batch open so I can compare them.

After inspecting the result, you can ask the agent to recompress one image from its original and export the updated batch. Tool arguments, retries and resumable exports

Formats and limits

Feature

Supported

Input and output

Static JPEG, PNG and WebP. JPEG and WebP have adjustable quality. PNG encoding is lossless.

Resizing

Downscale by width, height or bounding box. Aspect ratio is locked by default.

Metadata

Strip by default, keep only the color profile, or preserve supported EXIF and XMP tags, including GPS.

Batch size

Up to 100 files and 512 MiB per batch. Each source can be up to 32 MiB, 24 megapixels and 16,384 px per axis.

Workspace

Up to 250 retained images, including archived batches. TinySquosh keeps private working copies and preserves your source files.

Project guide

Licensed under Apache 2.0.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to process images locally via file paths—converting, resizing, removing backgrounds, smart cropping, upscaling, reading or stripping metadata, and batch processing—without files ever leaving the device.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to perform local image operations such as circle cropping, cropping, resizing, compressing, converting, and inspecting images without uploading files or making network calls.
      7
      89 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables agents to compress JPEG, PNG, and WebP images to a target byte size, split PDFs by page or ranges, and remove image metadata while processing local files without sending file bytes over the network.
      73
      MIT