Cover image
Try Now
2025-04-03

Ein MCP -Server für die Bildverarbeitung, der die Sharp Library verwendet, um Bildmanipulationsfunktionen bereitzustellen. 这是一个用于处理图片的 MCP -Server , 使用 Sharp 库提供图片处理功能。

3 years

Works with Finder

1

Github Watches

0

Github Forks

2

Github Stars

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) / 调整图片尺寸

{
  "input_path": "Path to the input image",
  "output_path": "Path to the output image",
  "width": Width in pixels (optional),
  "height": Height in pixels (optional),
  "fit": "Resizing method, options: cover, contain, fill, inside, outside, default is cover"
}
{
  "input_path": "输入图片的路径",
  "output_path": "输出图片的路径",
  "width": 宽度(像素),可选,
  "height": 高度(像素),可选,
  "fit": "调整尺寸的方式,可选值:cover, contain, fill, inside, outside,默认为cover"
}

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

{
  "input_path": "Path to the input image",
  "output_path": "Path to the output image",
  "format": "Target format, options: jpeg, png, webp, avif, tiff, gif",
  "quality": Image quality (1-100), only for formats supporting compression, default is 80
}
{
  "input_path": "输入图片的路径",
  "output_path": "输出图片的路径",
  "format": "目标格式,可选值:jpeg, png, webp, avif, tiff, gif",
  "quality": 图片质量(1-100),仅用于支持压缩的格式,默认为80
}

Crop Image (cropImage) / 裁剪图片

{
  "input_path": "Path to the input image",
  "output_path": "Path to the output image",
  "left": Left edge offset (pixels),
  "top": Top edge offset (pixels),
  "width": Crop width (pixels),
  "height": Crop height (pixels)
}
{
  "input_path": "输入图片的路径",
  "output_path": "输出图片的路径",
  "left": 左边缘的偏移量(像素),
  "top": 顶部边缘的偏移量(像素),
  "width": 裁剪宽度(像素),
  "height": 裁剪高度(像素)
}

Rotate Image (rotateImage) / 旋转图片

{
  "input_path": "Path to the input image",
  "output_path": "Path to the output image",
  "angle": Rotation angle in degrees
}
{
  "input_path": "输入图片的路径",
  "output_path": "输出图片的路径",
  "angle": 旋转角度(度)
}

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

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • pontusab
  • Die Cursor & Windsurf -Community finden Regeln und MCPs

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • jae-jae
  • MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.

  • ravitemer
  • Ein leistungsstarkes Neovim -Plugin für die Verwaltung von MCP -Servern (Modellkontextprotokoll)

  • Mintplex-Labs
  • Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.

  • GeyserMC
  • Eine Bibliothek für Kommunikation mit einem Minecraft -Client/Server.

    Reviews

    5 (1)
    Avatar
    user_aIGOpLcT
    2025-04-16

    As a dedicated user of the image-process-mcp-server by x007xyz, I couldn't be more thrilled with its performance and utility. The server's streamlined functionality for image processing is unmatched, and its integration is seamless. Whether for personal projects or professional tasks, this robust tool enhances productivity and delivers excellent results. Highly recommend!