Just ask. Your AI handles the images.

Give your AI assistant the ability to convert images — automatically, without leaving your machine.

GetWebP MCP 伺服器是一款開源的 Model Context Protocol 伺服器,讓 Claude、Cursor、Windsurf 等 AI 程式設計助理獲得本地轉換影像的能力。它完全在您的機器上執行:沒有雲端上傳、沒有 API 金鑰、沒有隱私權衡。支援把 PNG、JPG、GIF、TIFF 和 BMP 轉換為 WebP 和 AVIF,並提供可設定的品質預設。一條 npx 指令即可安裝。

Claude Code

claude mcp add getwebp -- npx -y @getwebp/mcp-server

OpenClaw / KimiClaw / WorkBuddy / Cursor / Windsurf / other

json
{
  "mcpServers": {
    "getwebp": {
      "command": "npx",
      "args": ["-y", "@getwebp/mcp-server"]
    }
  }
}

Using Claude? Paste this into your terminal. Using OpenClaw, KimiClaw, WorkBuddy, or another tool? See setup below — it takes 30 seconds.

Works with your tools

ClaudeClaude
CursorCursor
WindsurfWindsurf
OpenClawOpenClaw
QClawQClaw
KimiClawKimiClaw
JVSClawJVSClaw
WorkBuddyWorkBuddy
ArkClawArkClaw

Don't see your tool? If it supports MCP, it works — check its settings for "MCP" or "integrations".

Sound familiar?

Before
After

Search for an online tool, upload one by one

Tell your AI assistant, it handles everything

Not sure if the website is trustworthy

Files never leave your computer

Don't know what quality setting to use

Automatically finds the best quality

Download the results, move files manually

Output appears right next to your originals

Three things your AI can now do on its own

Find images

Scan any folder to see which images haven't been converted yet — sizes, formats, everything. Nothing is changed.

Which images in my photos folder haven't been converted to WebP yet?

Convert images

Convert JPG, PNG, and more (including HEIC, AVIF, BMP) to optimized WebP. Automatically finds the best quality — no guessing required.

Convert everything in my images folder, skip files that already have a WebP version.

Check remaining quota

Ask your AI how many images you have left this month before starting a large job.

A real conversation

YouThere are a bunch of unoptimized images in my photos folder on the Desktop. Can you check what's there and convert them to WebP?
AgentI found 23 images — 14 PNGs and 9 JPEGs, 21.6 MB total. 2 already have WebP versions. Want me to convert the rest?
YouYes.
AgentDone. 21 images converted. 21.6 MB to 4.1 MB. Over 70% average file size reduction.

Two messages. You never opened a terminal.

Your files stay on your machine

Fast

No uploading, no waiting. Conversion happens on your computer — a batch of 50 images takes seconds.

Automatic

No quality settings to figure out. The engine finds the smallest file that still looks identical to the original.

Zero setup

No extra software. No accounts. Works on macOS, Windows, and Linux.

Free vs Pro

FreePro
Files per run20Unlimited
ProcessingOne at a timeAll at once
Max file size5 MB50 MB

Free plan processes one file at a time. A batch of 20 images takes about 60 seconds.

The same license covers both the CLI and the MCP server. Activate once, both tools pick it up.

Ready to try it?

Claude Code

claude mcp add getwebp -- npx -y @getwebp/mcp-server

OpenClaw / KimiClaw / WorkBuddy / Cursor / Windsurf / other

json
{
  "mcpServers": {
    "getwebp": {
      "command": "npx",
      "args": ["-y", "@getwebp/mcp-server"]
    }
  }
}

Paste this into your tool's MCP settings, then restart it. Not sure where? See the setup guide below.

MCP 伺服器常見問題

它是一款開源的 Model Context Protocol 伺服器,讓 AI 程式設計助理 — Claude、Cursor、Windsurf 以及任何相容 MCP 的客戶端 — 把本地影像轉換作為工具呼叫。伺服器直接內嵌 GetWebP CLI 的核心轉換函式庫(以 TypeScript 模組形式匯入,不會啟動子程序),因此所有處理都在您的機器上、在同一個行程內完成。

任何支援 MCP 的客戶端都可以,包括 Claude Code、Cursor、Windsurf 和 Claude Desktop。註冊之後,助理便能看到 GetWebP 的工具(scan、convert、status),並在對話中直接呼叫。

不需要。伺服器 100% 在本地執行,呼叫本地 GetWebP CLI,永遠不會聯繫外部服務。您可以離線使用,也可以在隔離網路環境中使用。

三個:scan(列出目錄中可轉換的影像)、convert(依品質參數產生 WebP 或 AVIF 檔案)、status(回報轉換進度與體積節省)。每個工具都回傳結構化 JSON,便於代理推理。

MCP 伺服器本身免費。Pro 適用於底層 CLI:免費版每次執行有檔案數與單檔大小限制;Pro 解鎖更高額度並提供優先處理。具體配額詳見定價頁面。

先確認伺服器已註冊到客戶端的 MCP 設定中並重新啟動客戶端。仍然失敗時,在終端機執行 `npx -y @getwebp/mcp-server --help` 驗證 npx 能否解析該套件,再查看客戶端的 MCP 日誌取得具體錯誤。