Converts to and from JPG/JPEG format with quality control and resizing capabilities
Provides specific configuration paths for macOS when used with Claude Desktop
Runs on Node.js runtime with version requirements of Node.js >= 18.0.0
Available through npm package manager with requirements of npm >= 8.0.0
Uses Sharp as one of the image processing engines for high-performance image conversions
Supports SVG as an input format for conversion to other image formats
Built with TypeScript providing complete type safety
Uses Zod for runtime type checking to ensure data validity
图像转换MCP服务器
基于MCP协议的多格式图像转换服务器,支持JPG/PNG/WebP/GIF/BMP/TIFF/SVG/ICO/AVIF等格式互转。
🚀 快速开始
安装
使用方法
方式1: 直接启动
方式2: 通过MCP配置文件
在你的MCP客户端配置文件中添加:
或者如果已全局安装:
方式3: Claude Desktop配置
在 ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) 或 %APPDATA%\Claude\claude_desktop_config.json
(Windows) 中添加:
✨ 功能特性
- 多格式支持: 支持11种输入格式和9种输出格式
- 高性能: 基于Sharp和Jimp双引擎优化
- 批量处理: 支持多文件同时转换
- 质量控制: 可调节压缩质量和图片尺寸
- MCP协议: 完整的4个工具接口
- 类型安全: 完整的TypeScript支持
📋 支持格式
输入格式 (11种)
- JPG/JPEG
- PNG
- WebP
- GIF
- BMP
- TIFF
- SVG
- ICO
- AVIF
- HEIC
输出格式 (9种)
- JPG/JPEG
- PNG
- WebP
- GIF
- BMP
- TIFF
- ICO
- AVIF
🛠️ MCP工具接口
1. convert_image
单个图像格式转换
参数:
inputPath
: 输入图片路径outputPath
: 输出图片路径format
: 目标格式quality
: 压缩质量 (1-100)width
: 输出宽度height
: 输出高度
2. batch_convert_images
批量图像格式转换
参数:
inputDir
: 输入目录路径outputDir
: 输出目录路径format
: 目标格式quality
: 压缩质量width
: 输出宽度height
: 输出高度
3. get_image_info
获取图片详细信息
参数:
imagePath
: 图片路径
4. list_supported_formats
列出所有支持的格式
💻 开发
环境要求
- Node.js >= 18.0.0
- npm >= 8.0.0
本地开发
📦 技术栈
- MCP SDK: @modelcontextprotocol/sdk
- 图像处理: Sharp + Jimp
- 类型检查: Zod
- 开发语言: TypeScript
📄 许可证
MIT License
🤝 贡献
欢迎提交Issue和Pull Request!
📞 联系
如有问题或建议,请通过GitHub Issues联系我们。
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables conversion between multiple image formats including JPG, PNG, WebP, GIF, BMP, TIFF, SVG, ICO, and AVIF with quality control and batch processing capabilities.
Related MCP Servers
- AsecurityAlicenseAqualityConverts various file types and web content to Markdown format. It provides a set of tools to transform PDFs, images, audio files, web pages, and more into easily readable and shareable Markdown text.Last updated -10161,927TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that provides tools for converting SVG code to high-quality PNG and JPG images with detailed customization options.Last updated -152JavaScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that converts SVG code to PNG images, offering two conversion methods (CairoSVG and Inkscape) with support for custom working directories.Last updated -3Python
- AsecurityAlicenseAqualityConverts video files to GIF animations with customizable settings like FPS, dimensions, and duration.Last updated -17JavaScriptMIT License