image-toolkit-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
本地图片批量处理服务,绝不访问网络、不上传图片,照片不离开本机。支持整文件夹或单文件:resize(按长边/宽高/百分比,只缩不放)、convert(jpg/png/webp/bmp/tiff 互转)、compress(质量压缩)、watermark(右下角半透明文字水印)、strip(清除 EXIF 拍摄地点设备)。所有路径必须是服务器本地绝对路径。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| image_resizeA | 批量调整图片尺寸。input_path 可为单文件或目录;输出到 output_dir。四选一:long_side(按长边等比缩,只缩不放)、width+height(精确)、width(定宽等比)、percent(百分比,如 50 表示缩到一半)。返回处理张数与输出目录。 |
| image_convertC | 批量格式转换,fmt 取 jpg/png/webp/bmp/tiff(不带点也行)。input_path 可为单文件或目录。 |
| image_compressC | 批量按质量压缩(quality 1-100,越小文件越小,常用 60-85)。 |
| image_watermarkB | 批量加右下角半透明文字水印。text 为水印文字;size_ratio 为字号占图宽比例(默认 0.05);opacity 0-255(默认 160)。 |
| image_stripC | 批量清除 EXIF 元数据(拍摄地点、设备、时间等隐私信息),重写图片。 |
| image_selftestB | 运行核心引擎自检(resize/convert/strip/watermark/compress 五项)。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool maps to a clearly distinct image operation (resize, convert, compress, watermark, strip, selftest), and the descriptions spell out the parameters and boundaries of each, including the four mutually exclusive resize modes. There is little chance of an agent picking the wrong tool, since resize (dimensions), compress (quality/size), and convert (format) are explicitly differentiated.
All tools use snake_case with a consistent 'image_' prefix, giving a predictable pattern. The only minor deviation is image_selftest, which is a noun-ish operation rather than the verb style of the other five, but it remains readable and on-pattern.
Six tools is well-scoped for a batch image-processing toolkit: five core operations plus one selftest, with no redundant or filler tools. Each tool earns its place and the surface stays easy to reason about.
The surface covers the main batch workflows (resize, convert, compress, watermark, EXIF strip) with consistent single-file-or-directory input, which is strong coverage. Minor gaps exist for common operations like crop/rotate or an image-info/inspect tool, but nothing that blocks typical pipelines.