Token导航 LogoToken导航TokenDH.com
Imagician MCP logo
设计创作HTTP官方级别未说明来源级核验

Imagician MCP

MCP Server

一个提供全面图像编辑操作(包括调整大小、格式转换、裁剪、压缩等)的模型上下文协议(MCP)服务器。

工具数

8

提示词数

0

GitHub Stars

18

资源数

0
图像处理格式转换JavaScriptClaude批量处理Claude DesktopClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

flowy11

提供方

flowy11

最后核验

2026/5/17 21:11

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx 设置(推荐)

详细介绍

Imagincian-MCP图像编辑器

](https://www.npmjs.com/package/@flowy11/imagician)

一个模型上下文协议(MCP)服务器,用于全面的图像编辑操作,包括调整大小、格式转换、裁剪、压缩等。

特性

  • 调整大小:使用各种拟合选项更改图像尺寸
  • 格式转换:在JPEG、PNG、WebP和AVIF之间转换
  • 作物:从图像中提取特定区域
  • 压缩:通过质量控制减小文件大小
  • 旋转:将图像旋转任意角度
  • 翻转:水平或垂直镜像
  • 批处理:从单个图像生成多种尺寸
  • 元数据:提取图像信息和属性

安装

来自npm

npm install -g @flowy11/imagician

来源

git clone https://github.com/flowy11/imagician.git
cd imagician
npm install
npm run build

使用Claude代码

添加到您的Claude代码配置中(~/.config/claude/config/settings/mcp-servers.json):

{
  "imagician": {
    "command": "npx",
    "args": ["-y", "@flowy11/imagician"]
  }
}

使用游标

添加到游标配置(~/.cursor/mcp_settings.json):

{
  "mcpServers": {
    "imagician": {
      "command": "npx",
      "args": ["-y", "@flowy11/imagician"]
    }
  }
}

使用Claude Desktop

添加到您的Claude Desktop配置(~/Library/Application Support/Claude/claude_desktop_config.json):

使用npx快速设置(推荐):

{
  "mcpServers": {
    "imagician": {
      "command": "npx",
      "args": ["-y", "@flowy11/imagician"]
    }
  }
}

如果通过npm全局安装:

{
  "mcpServers": {
    "imagician": {
      "command": "imagician"
    }
  }
}

如果从源代码安装:

{
  "mcpServers": {
    "imagician": {
      "command": "node",
      "args": ["/path/to/imagician/dist/index.js"]
    }
  }
}

可用工具

调整图像大小

使用各种拟合选项将图像调整到指定尺寸。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save resized image
- width: Target width in pixels (optional)
- height: Target height in pixels (optional)
- fit: How to resize (cover, contain, fill, inside, outside)
- preserveAspectRatio: Maintain aspect ratio (default: true)

convert_format

通过质量控制在图像格式之间进行转换。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save converted image
- format: Target format (jpeg, png, webp, avif)
- quality: Quality for lossy formats (1-100, default: 80)

滚动图像

从图像中提取特定区域。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save cropped image
- left: Left offset in pixels
- top: Top offset in pixels
- width: Width of crop area
- height: Height of crop area

压缩图像

使用质量设置减小图像文件大小。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save compressed image
- quality: Compression quality (1-100, default: 80)
- progressive: Use progressive encoding for JPEG (default: true)

rotate_image

将图像旋转任意角度。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save rotated image
- angle: Rotation angle in degrees (positive = clockwise)
- background: Background color for exposed areas (default: #000000)

flip_image

水平或垂直镜像图像。

Parameters:
- inputPath: Path to input image
- outputPath: Path to save flipped image
- direction: Flip direction (horizontal, vertical, both)

get_image_info

提取图像的元数据和信息。

Parameters:
- inputPath: Path to image file

Returns: format, dimensions, color space, file size, etc.

批量大小

从一张图像生成多种尺寸(非常适合响应式图像)。

Parameters:
- inputPath: Path to input image
- outputDir: Directory to save resized images
- sizes: Array of {width, height?, suffix}
- format: Output format for all sizes (optional)

Claude中的示例用法

"Please resize image.jpg to 800x600 pixels"
"Convert photo.png to WebP format with 90% quality"
"Crop avatar.jpg starting at (100, 100) with 200x200 size"
"Generate thumbnail sizes: 150px, 300px, and 600px wide"

发展

# Install dependencies
npm install

# Build TypeScript
npm run build

# Run in development mode
npm run dev

许可证

麻省理工学院

目录标签

目录标签

图像处理格式转换JavaScriptClaude批量处理本地部署图像压缩图像裁剪

支持客户端

Claude DesktopClaudeCursor

接入字段

传输方式(transport,传输协议)

HTTP

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

工具数量(toolCount,工具数)

8

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

HTTPnone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP