Optiq Mcp

io.github.Baukaalm由 GitHub 帳號 Baukaalm 發布v0.1.0-beta.3更新於 Oct 29, 2026

Optimise project images locally with verified quality (SSIM or pixel-exact): JPEG, PNG, WebP, AVIF.

已驗證STDIO僅桌面開發者工具媒體與設計

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理以可驗證的畫質分析並最佳化專案中的 JPEG、PNG、WebP 與 AVIF 圖片。

可以做什麼
  • 以試執行方式分析圖片,回報所選格式、最佳化前後位元組數與實測畫質(SSIM 或逐像素一致)
  • 就地最佳化圖片,保留格式與檔名,讓程式碼中的參照維持有效
  • 將最佳化結果輸出到指定目錄,此時格式可能改變
  • 支援多種畫質模式(無損、視覺無損、均衡、快速)以及保留格式、目標格式、依最長邊縮放、清除中繼資料、最小節省量等選項
適用情境
適合需要壓縮專案圖片資產、並希望助理在最佳化前後核驗畫質且不上傳任何檔案的情境,例如必須保持圖片參照有效的網站或應用程式儲存庫。
執行需求
透過 npx 以 stdio 在本機執行(npm 套件 optiq-mcp),需要 Node 20 或更新版本。未宣告任何帳號、API 金鑰或環境變數。
安裝前請注意
optimize_images 會寫入檔案:就地模式會取代原始圖片,但僅在結果通過畫質檢查且檔案更小時才取代。有損輸出帶有標記,重複執行不會累加損失,除非啟用 reoptimize。stripMetadata 會移除 EXIF(含 GPS)與 XMP,這些可能是有用的資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Optiq Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

optiq-mcp

An MCP server that lets AI agents optimise the images in a project with Optiq. It runs locally over stdio, and nothing is uploaded.

sh
claude mcp add optiq -- npx -y optiq-mcp          # Claude Code
json
{ "mcpServers": { "optiq": { "command": "npx", "args": ["-y", "optiq-mcp"] } } }

The JSON form is for Claude Desktop, Cursor and other clients. For VS Code (.vscode/mcp.json), use { "servers": { "optiq": { "type": "stdio", "command": "npx", "args": ["-y", "optiq-mcp"] } } }.

Tools

ToolWritesWhat it does
analyze_imagesno (readOnlyHint)Dry run. For each image it reports the chosen format, the bytes before and after, and the measured quality (SSIM, or pixel-exact)
optimize_imagesyeswrite: "in-place" keeps formats and names, so references in code stay valid. write: "out-dir" may change formats

What each mode guarantees:

  • lossless: pixels are verified identical;
  • visually-lossless: SSIM ≥ 0.99;
  • balanced (the default): SSIM ≥ 0.975;
  • fast: the same threshold as balanced, but no AVIF and fewer encodes.

A file is replaced only when the result passes the check and is smaller. Lossy outputs carry a ~20-byte marker, so running optimize_images again does not re-encode them and cannot compound the loss (reoptimize: true overrides this).

Other options:

  • mode;
  • keepFormat;
  • formats;
  • maxSize (downscale the longest side);
  • stripMetadata (removes EXIF including GPS, and XMP);
  • minQuality;
  • minSaving.

Full docs: https://baukaalm.github.io/optiq/guide/agents

Requires Node ≥ 20. Apache-2.0. The codec licences are listed in the optiq-image NOTICE.

來源:mcp/README.md,提交 bb28477

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0-beta.3最新Oct 29, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分