Optiq logo

Optiq

by Baukaalm

Optimizes project images locally by testing JPEG, PNG, WebP, and AVIF candidates against quality constraints.

Install Optiq

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "baukaalm-optiq": {
      "command": "npx",
      "args": [
        "-y",
        "optiq-image"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y optiq-image

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Baukaalm/optiq MCP server gives AI agents local tools for analyzing and optimizing images in a project. It runs over stdio and uses Optiq’s candidate-based image engine to measure output size and quality before selecting an encoding. The read-only `analyze_images` tool previews likely results, while `optimize_images` writes changes in place or to another directory. Reach for it when an agent needs verified, constraint-aware image optimization without uploading project files.

Use cases

  • Analyze image compression results before changing project files
  • Optimize static images in place while retaining names and formats
  • Write smaller image variants to a separate output directory
  • Check quality and size constraints during an agent-driven asset workflow

Key features

  • Provides read-only image analysis
  • Optimizes JPEG, PNG, WebP, and AVIF files
  • Selects candidates using size and quality measurements
  • Supports in-place and separate-directory writes
  • Offers lossless, visually lossless, and balanced modes
  • Reports measured quality, size changes, warnings, and unmet constraints

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · optiq-image (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads427Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Optiq works

What Baukaalm/optiq MCP server does

Baukaalm/optiq exposes local project image optimization through the Model Context Protocol. It is distributed as the optiq-mcp npm package and runs as a local stdio process. The server is intended for AI agents that need to inspect or reduce image files while keeping the work on the machine running the MCP client.

Its image engine evaluates a bounded set of JPEG, PNG, WebP, and AVIF candidates. The selected output is the smallest candidate that satisfies the requested quality constraint. Quality can be checked by exact decoded-pixel comparison for lossless work or by SSIM thresholds for visually lossless and balanced optimization. Results include the selected format, sizes before and after, measured quality, and relevant warnings or unmet constraints.

How it works

The server provides two tools:

  • analyze_images performs a dry run and does not write files. For each image, it reports the format Optiq would select, the original and estimated output sizes, and the measured quality.
  • optimize_images performs the write operation. With write: "in-place", it retains image formats and filenames. With write: "out-dir", it writes results to a specified folder and can change formats.

The MCP process is implemented in TypeScript with the MCP SDK. Its package is available from npm as optiq-mcp, and the repository includes end-to-end tests that invoke it through the official MCP client.

Setup and configuration

Run the server through npx:

Terminal
npx -y optiq-mcp

For Claude Code, the equivalent registration command is:

Terminal
claude mcp add optiq -- npx -y optiq-mcp

Other MCP clients can use a stdio configuration with npx as the command and -y optiq-mcp as its arguments:

config.json
{
  "mcpServers": {
    "optiq": {
      "command": "npx",
      "args": ["-y", "optiq-mcp"]
    }
  }
}

The same configuration format is shown for Claude Desktop and Cursor. Because the server works with local project files, the MCP client process needs access to the directories containing the images and the destination directory used for output.

Tools and capabilities

The underlying Optiq engine supports several optimization modes. lossless verifies that decoded pixels, including alpha, remain identical. visually-lossless uses an SSIM threshold of at least 0.99 by default, while balanced uses a lower threshold of at least 0.975 and a smaller search budget. AVIF uses a stricter quality threshold than JPEG and WebP.

Supported controls include output format selection, automatic format choice, format conversion, maximum output size, maximum dimensions, candidate limits, metadata preservation, animation handling, and behavior when constraints cannot be met. The engine can preserve EXIF, XMP, and ICC metadata by default. It can also report when a requested output limit conflicts with the quality requirement.

Limitations and notes

analyze_images is non-destructive, but optimize_images writes files according to its selected write mode. In-place mode keeps formats and names, whereas output-directory mode may change both formats and file sizes. Optimization may leave an image unchanged when re-encoding does not meet the configured minimum savings ratio.

The server is separate from Optiq’s browser, CLI, and Vite interfaces, although they use the same image engine. Codec availability, input validity, size limits, and incompatible format requests can produce errors such as unsupported format, malformed input, constraints unsatisfiable, or codec unavailable.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Optiq

Baukaalm/optiq is an MCP server that connects AI agents to local project images through two tools: `analyze_images` for a non-destructive preview and `optimize_images` for writing optimized results. It tests JPEG, PNG, WebP, and AVIF candidates, measures quality and size, and selects an output that meets configured constraints.

Install it by running `npx -y optiq-mcp` through your MCP client. Claude Code can register it with `claude mcp add optiq -- npx -y optiq-mcp`; other clients can use a stdio entry with `npx` and `-y optiq-mcp` as arguments.

Yes. Cursor can run Baukaalm/optiq using the documented MCP JSON configuration, with `npx` as the command and `-y optiq-mcp` as the arguments. The server then exposes its image analysis and optimization tools to the client.

Yes. Use the optimizer’s in-place write mode to keep image formats and filenames. The engine can also be configured to prevent format conversion, while output-directory mode may select a different format when conversion is allowed.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOptiq AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/baukaalm-optiq?style=directory)](https://allmcps.com/mcp/baukaalm-optiq)
HTML Embed
<a href="https://allmcps.com/mcp/baukaalm-optiq"><img src="https://allmcps.com/api/badge/baukaalm-optiq?style=directory" alt="Optiq on AllMCPs" /></a>