WebP Batch Converter is an MCP server that provides batch conversion of PNG, JPG, and JPEG images to WebP format directly through Model Context Protocol interfaces. It connects local image processing engines to AI-enabled development environments, functioning primarily with Google's cwebp utility and falling back to the Node.js Sharp library when necessary. Developers, web designers, and content managers use this server to optimize website assets, reduce media storage footprints, and automate web image preparation through natural language commands in AI assistants. By exposing the convert_to_webp tool, the server enables users to adjust compression quality levels from 0 to 100, toggle lossless encoding for graphics, and preserve EXIF and ICC metadata. It supports multi-threaded processing utilizing available CPU cores to handle large photo directories quickly, allowing users to choose between overwriting source assets, saving outputs side-by-side, or exporting converted files to a designated flat directory.
Category: Design, Media & Creative
Tags: batch-processing, conversion, image-processing, webp
bash git clone https://github.com/mhe8mah/webp-batch-mcp.git cd webp-batch-mcp npm install npm run build Alternatively, install globally via npm: bash npm install -g webp-batch-mcp 2. Open Cursor Settings and navigate to Features > MCP. 3. Add the server configuration to your settings: json { "mcpServers": { "webp-batch": { "command": "node", "args": ["/path/to/webp-batch-mcp/dist/server.js"] } } } 4. Restart Cursor to load the convert_to_webp tool.Part of MCP Servers
WebP Batch Converter converts folders containing PNG, JPG, and JPEG files into WebP format. It allows you to configure compression quality between 0 and 100, activate lossless mode for graphics, preserve EXIF and ICC metadata, control concurrency across CPU threads, and specify whether to replace source files or output them to a dedicated directory.
The server employs a dual-engine architecture. It prioritizes Google's native cwebp utility from libwebp-tools for optimal compression and speed. If cwebp is not available on the host system, it automatically falls back to Sharp, a pure Node.js image processing library.
It is designed to work with any MCP-compatible environment that supports local command execution, including Cursor and Claude Desktop. The documentation provides explicit setup instructions for adding the server to Cursor's MCP configuration.
Yes, WebP Batch Converter is open source and licensed under the MIT License. The code and issue tracker are publicly accessible on GitHub.