MCP Catalogs
首页gimp-mcp screenshot

gimp-mcp

by maorcc·110·综合分 49

GIMP MCP 服务器通过 56 个专业工具提供实时视觉反馈,让 AI 助手能够编辑图像。

mediaai-llmdeveloper-tools
16
Forks
3
活跃 Issue
1 个月前
最近提交
2 天前
收录于

概述

GIMP MCP 通过模型上下文协议将 GIMP 的专业图像编辑功能与 AI 助手连接起来。它允许用户通过自然语言描述来编辑图像,AI 能够通过实时视觉反馈验证每次更改。该服务器支持完全自主的多步骤工作流程,从打开、编辑图像到验证和导出。主要功能包括 56 个专用工具命令,涵盖所有主要的 GIMP 操作,以及无需保存到磁盘即可获取状态快照的能力。

试试问 AI

装完之后,这里有 6 个你可以让 AI 做的事:

:具有视觉验证的迭代背景移除
:表情编辑和角色修改
:包含色彩调整和文本合成的复杂多步骤流程
:GIMP MCP 与其他 GIMP 集成有何不同?
:支持哪些版本的 GIMP?
:哪些 AI 客户端可与 GIMP MCP 一起使用?

什么时候选它

当您需要具有视觉验证的 AI 驱动图像编辑,特别是需要迭代反馈的复杂多步工作流时,选择此工具。

什么时候不要选它

如果您需要非破坏性编辑工作流或已锁定在 Creative Cloud 生态系统中,请不要使用此工具。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • get_state_snapshotget_state_snapshot(image_index, max_size, region, label)

    Returns a live PNG of the current image state

  • adjust_brightness_contrast

    Adjust brightness and contrast of the image

  • scale_image

    Scale the image to exact dimensions

  • select_rectangle

    Create a rectangular selection

  • create_layer

    Create a new empty layer

  • fill_selection

    Fill the current selection with a color

  • add_text

    Add a text layer to the image

  • apply_gaussian_blur

    Apply a Gaussian blur filter to the image

  • open_image

    Open an image file

  • export_image

    Export the image to a file

  • get_image_metadata

    Get metadata about the current image

  • get_context_state

    Get current GIMP context state including colors and brush settings

可对比工具

photoshop-mcpstable-diffusion-apiimageio-mcpgmic-mcp

安装

安装

前置条件

  • GIMP 3.2+ (已在 3.2.2 上测试)
  • Python 3.8+
  • uv (Python 包管理器)
  • 兼容 MCP 的 AI 客户端 (Claude Desktop, Claude Code 等)

步骤

  1. 克隆并安装依赖项:
git clone https://github.com/maorcc/gimp-mcp.git
cd gimp-mcp
uv sync
  1. 通过将 gimp-mcp-plugin.py 复制到 GIMP 的插件目录来安装 GIMP 插件:

**Linux:**

mkdir -p ~/.config/GIMP/3.0/plug-ins/gimp-mcp-plugin
cp gimp-mcp-plugin.py ~/.config/GIMP/3.0/plug-ins/gimp-mcp-plugin/
chmod +x ~/.config/GIMP/3.0/plug-ins/gimp-mcp-plugin/gimp-mcp-plugin.py

**macOS:**

mkdir -p ~/Library/Application\ Support/GIMP/3.0/plug-ins/gimp-mcp-plugin
cp gimp-mcp-plugin.py ~/Library/Application\ Support/GIMP/3.0/plug-ins/gimp-mcp-plugin/
chmod +x ~/Library/Application\ Support/GIMP/3.0/plug-ins/gimp-mcp-plugin/gimp-mcp-plugin.py

**Windows:** 复制到 %APPDATA%\GIMP\3.2\plug-ins\gimp-mcp-plugin\gimp-mcp-plugin.py

  1. 在 GIMP 中启动 MCP 服务器:打开图像 > 工具 > 启动 MCP 服务器
  1. 配置您的 MCP 客户端。对于 Claude Desktop:
{
  "mcpServers": {
    "gimp": {
      "command": "uv",
      "args": ["run", "--directory", "/full/path/to/gimp-mcp", "gimp_mcp_server.py"]
    }
  }
}

FAQ

GIMP MCP 与其他 GIMP 集成有何不同?
与其他集成不同,AI 可以使用 `get_state_snapshot` 在任何时候查看图像而无需保存到磁盘,支持自主多步骤工作流程,并提供 56 个专用工具命令涵盖所有主要的 GIMP 操作。
支持哪些版本的 GIMP?
GIMP MCP 完全兼容 GIMP 3.2.x,所有破坏性 API 变更均已解决并测试通过(56/56 工具正常)。
哪些 AI 客户端可与 GIMP MCP 一起使用?
GIMP MCP 是通用 MCP 兼容的,可与 Claude Desktop、Claude Code、Gemini CLI、PydanticAI 和其他符合 MCP 标准的 AI 助手一起使用。

gimp-mcp 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。