Image Toolkit MCP Server

Image Toolkit MCP Server

一个服务器,通过模型上下文协议提供由人工智能驱动的图像生成、修改和处理能力,利用 Google Gemini 模型和其他图像服务。

AI内容生成
AI集成系统
访问服务器

README

PromptShopMCP

English | 中文

一个强大的 MCP (模型上下文协议) 服务器,可以使用简单的文本命令转换图像。像专业设计师一样编辑照片 - 只需用自然语言描述你想要的内容!

演示

原始图像 <img src="https://github.com/user-attachments/assets/a987b4c4-3bba-4a52-a2a8-9f088868d857" width="300"/>

Prompt: 给狗加一件外套 <img src="https://github.com/user-attachments/assets/6de3cdd1-a3b9-422b-95dd-12e2172f6f1d" width="300"/>

Prompt: 给它加一顶帽子 <img src="https://github.com/user-attachments/assets/047289ca-f3d0-4d16-acf7-09d5af641c68" width="300"/>

功能

  • 图像生成: 使用 Google 的 Gemini 模型从文本提示创建图像
  • 图像修改: 根据文本指令转换现有图像
  • 背景移除: 使用 remove.bg API 从图像中移除背景
  • 图像托管: 通过 FreeImage.host 分享生成的图像
  • 资源管理: 跟踪和管理生成和上传的图像

要求

安装

  1. 克隆此仓库:

    git https://github.com/Kira-Pgr/Image-Toolkit-MCP-Server.git
    cd Image-Toolkit-MCP-Server
    
  2. 安装 UV(如果尚未安装):

    # On macOS and Linux.
    curl -LsSf https://astral.sh/uv/install.sh | sh
    # On Windows.
    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    # With pip.
    pip install uv
    
  3. 使用 UV 安装依赖项:

    uv venv --python=python3.11
    source .venv/bin/activate #or .venv/Scripts/activate on Windows
    uv pip install -r requirements.txt
    

用法

  1. Claude Desktop 集成: 将以下配置添加到你的 claude_desktop_config.json 文件,以直接从 Claude Desktop 运行服务器:
    "PromptShopMCP": {
      "command": "uv",
      "args": [
        "--directory",
        "/project/dir/",
        "run",
        "mcp",
        "run",
        "/project/dir/server.py"
      ],
      "env": {
        "GEMINI_API_KEY": "key",
        "FREEIMAGE_API_KEY": "key",
        "REMOVEBG_API_KEY": "key"
      }
    }
    
    注意:将占位符 "key" 值替换为你实际的 API 密钥。
  2. Cursor 集成: Linux/macOS: 修改 cursor.sh 文件以设置你的 API 密钥和项目目录。
  • 在 Cursor 设置中,转到 "MCP" 选项卡,点击 Add new MCP server
  • 随意命名服务器,并将命令设置为 sh /absolute/path/to/cursor.sh
  • 等待服务器启动,你就可以看到服务器和可用的工具。
  • 然后,当你使用 agent 时,它会自动检测是否使用这些工具。 <img width="1240" alt="image" src="https://github.com/user-attachments/assets/b41016fe-a0f8-4029-8f5d-82f25c606a65" />

Windows: 修改 cursor.bat 文件以设置你的 API 密钥和项目目录。

  • 在 Cursor 设置中,转到 "MCP" 选项卡,点击 Add new MCP server
  • 随意命名服务器,并将命令设置为 cmd /c C:\absolute\path\to\cursor.bat
  • 等待服务器启动,你就可以看到服务器和可用的工具。
  • 然后,当你使用 agent 时,它会自动检测是否使用这些工具。

致谢

推荐服务器

Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
AIO-MCP Server

AIO-MCP Server

🚀 集成了 AI 搜索、RAG 和多服务(GitLab/Jira/Confluence/YouTube)的一体化 MCP 服务器,旨在增强 AI 驱动的开发工作流程。来自 Folk。

精选
本地
Knowledge Graph Memory Server

Knowledge Graph Memory Server

为 Claude 实现持久性记忆,使用本地知识图谱,允许 AI 记住用户的信息,并可在自定义位置存储,跨对话保持记忆。

精选
本地
https://github.com/Streen9/react-mcp

https://github.com/Streen9/react-mcp

react-mcp 与 Claude Desktop 集成,能够根据用户提示创建和修改 React 应用程序。

精选
本地
MCP Atlassian

MCP Atlassian

适用于 Atlassian Cloud 产品(Confluence 和 Jira)的 Model Context Protocol (MCP) 服务器。此集成专为 Atlassian Cloud 实例设计,不支持 Atlassian Server 或 Data Center 部署。

精选
any-chat-completions-mcp

any-chat-completions-mcp

将 Claude 与任何 OpenAI SDK 兼容的聊天完成 API 集成 - OpenAI、Perplexity、Groq、xAI、PyroPrompts 等。

精选
Exa MCP Server

Exa MCP Server

一个模型上下文协议服务器,它使像 Claude 这样的人工智能助手能够以安全和受控的方式,使用 Exa AI 搜索 API 执行实时网络搜索。

精选
AI 图像生成服务

AI 图像生成服务

可以用于 Cursor 集成 MCP 服务器。

精选