Skip to main content
Glama
WebP Conversion MCP Server

WebP Conversion MCP Server

by xoy8n

WebP Conversion MCP Server

This project is a Model Context Protocol (MCP) server that converts image files to WebP format.

Features

  • Convert PNG, JPG, and JPEG files to WebP

  • Support for single image or batch image conversion

  • Option to configure quality and lossless compression

  • Option to keep original files

  • Provides a detailed report of the conversion result

Installation & Execution

npx -y @xoy8n/webp-converter@latest

Cursor mcp.json Configuration

{
  "mcpServers": {
    "webp-converter": {
      "command": "npx",
      "args": ["-y", "@xoy8n/webp-converter@latest"]
    }
  }
}

Related MCP server: Image Converter MCP Server

MCP Tool List

1. convert_to_webp

Converts a single image file to WebP format.

Parameters:

  • image_path: Path to the image file to convert

  • base_path: Base directory path

  • quality: WebP quality setting (default: 95)

  • lossless: Whether to use lossless compression (default: false)

  • keep_original: Whether to retain the original file (default: false)

Returns:

  • Conversion success status

  • Input/output file paths

  • File size before/after conversion

  • Applied quality and compression settings

2. batch_convert_to_webp

Converts multiple image files to WebP format in one go.

Parameters:

  • image_paths: Array of paths to image files to convert

  • base_path: Base directory path (optional)

  • quality: WebP quality setting (default: 95)

  • lossless: Whether to use lossless compression (default: false)

  • keep_original: Whether to retain the original files (default: false)

Returns:

  • Array of conversion results for each image file

How to Use

  1. Select the image files you want to convert.

  2. Run the convert_to_webp or batch_convert_to_webp command via the MCP tools.

  3. Check the conversion results.

MCP Badge

License

MIT

Available Tools

2 tools
batch_convert_to_webpD

Inputs: image_paths (required), quality, lossless, base_path, +1 more.

convert_to_webpD

Inputs: base_path (required), image_path (required), quality, lossless, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    D1.8/5.0

    Scored across 2 tools

    Disambiguation4/5

    Despite lacking descriptions, the names clearly distinguish between single and batch conversion, reducing ambiguity for an agent.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern with snake_case ('convert_to_webp', 'batch_convert_to_webp').

    Tool Count3/5

    With only two tools, the server feels thin for a conversion domain, but it covers the essential single and batch operations.

    Completeness3/5

    Basic conversion functionality is present, but missing tools for settings, status, or output management, making it minimally complete.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers