MCP Server
Image conversion for AI workflows
Convert2WebP is available as a Model Context Protocol (MCP) server. This lets AI assistants, coding agents, and LLM-powered tools convert images to and from WebP as part of automated pipelines. Install the server, register it with your MCP-compatible client, and your AI can call image conversion tools directly.
Installation
Install the MCP server package globally via npm:
npm install -g convert2webp-mcpConfiguration
Add the server to your MCP client configuration. For Claude Desktop, add this to your claude_desktop_config.json:
{
"mcpServers": {
"convert2webp": {
"command": "npx",
"args": ["-y", "convert2webp-mcp"]
}
}
}Available tools
convert_image
Convert an image to or from WebP. Accepts URL or base64 input.
image_urlimage_base64output_formatquality
get_format_info
Get information about image formats, WebP benefits, and conversion guidance.
topic
Usage examples
Once configured, your AI assistant can convert images directly:
> Convert screenshot.png to WebP with 85% quality
Using convert_image tool...
Converted successfully.
Format: webp | Original: 1.2 MB | Converted: 340 KB | Savings: 72%