MCP ExplorerExplorer

Image Process Mcp Server

@x007xyzon a year ago
4 MIT
FreeCommunity
AI Systems
#image-processing#mcp-server#sharp
An MCP Server for image processing that uses the Sharp library to provide image manipulation functionality. 这是一个用于处理图片的MCP Server,使用 sharp 库提供图片处理功能。

Overview

What is Image Process Mcp Server

An MCP Server for image processing using the Sharp library, providing various tools for manipulating images.

Use cases

It is suitable for tasks like resizing images for web use, converting between formats for compatibility, cropping for specific aspect ratios, rotating for orientation correction, and extracting metadata about images.

How to use

To use the server, configure it in your system’s MCP server settings. For MacOS and Linux, use ‘npx -y image-process-mcp-server’, and for Windows, use ‘cmd /c npx -y image-process-mcp-server’. Then, call the desired image manipulation functions with appropriate parameters.

Key features

The server offers image resizing, format conversion (jpeg, png, webp, avif, tiff, gif), cropping, rotation, and retrieving image information.

Where to use

This MCP Server can be utilized in web applications, desktop software, or batch processing scenarios where image manipulation is required.

Content

Image Process MCP Server

An MCP Server for image processing that uses the Sharp library to provide image manipulation functionality.

这是一个用于处理图片的MCP Server,使用 sharp 库提供图片处理功能。

Features / 功能

The server provides the following image processing tools:

  1. Resize Image (resizeImage): Adjust the width and height of an image
  2. Convert Format (convertFormat): Convert images to different formats (jpeg, png, webp, avif, tiff, gif)
  3. Crop Image (cropImage): Crop a specific region of an image
  4. Rotate Image (rotateImage): Rotate an image
  5. Get Image Info (getImageInfo): Get basic information about an image (dimensions, format, etc.)

提供以下图片处理工具:

  1. 调整图片尺寸 (resizeImage):调整图片的宽度和高度
  2. 转换图片格式 (convertFormat):将图片转换为不同的格式(jpeg、png、webp、avif、tiff、gif)
  3. 裁剪图片 (cropImage):裁剪图片的指定区域
  4. 旋转图片 (rotateImage):旋转图片
  5. 获取图片信息 (getImageInfo):获取图片的基本信息(尺寸、格式等)

Usage / 使用

MacOS / Linux

{
  "mcpServers": {
    "Image Process MCP": {
      "command": "npx",
      "args": [
        "-y",
        "image-process-mcp-server"
      ]
    }
  }
}

Windows

{
  "mcpServers": {
    "Image Process MCP": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "image-process-mcp-server"
      ]
    }
  }
}

Tool Parameters / 工具参数

Resize Image (resizeImage) / 调整图片尺寸

Convert Format (convertFormat) / 转换图片格式

Crop Image (cropImage) / 裁剪图片

Rotate Image (rotateImage) / 旋转图片

Get Image Info (getImageInfo) / 获取图片信息

{
  "input_path": "Path to the image"
}
{
  "input_path": "图片的路径"
}

Examples / 示例

In Claude, you can call the tools using the following format:

Please help me resize an image to 500 pixels wide
Input path: /path/to/input.jpg
Output path: /path/to/output.jpg

在 Claude 中,可以使用以下方式调用工具:

请帮我将图片调整为宽度500像素的大小
输入路径:/path/to/input.jpg
输出路径:/path/to/output.jpg

Dependencies / 依赖

  • Node.js
  • sharp
  • @modelcontextprotocol/sdk

License / 许可证

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers