KP

kira-pgr/promptshopmcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

19 stars 8 forks 质量 62 趋势 10MIT

使用 AI 在 Claude 桌面/ 光标中编辑图像( AI P 99

概览

一个强大的MCP(模式上下文协议)服务器,使用简单的文本命令来转换图像. 像专业设计师一样编辑相片——用自然语言描述你想要的! 原始图像 - : 使用 Google 的双子模型从文本提示创建图像 - : 根据文本指令变换已存在的图像 - : 使用去除的图像去除背景. bg API - : 通过 FreeImage.host 共享生成的图像 - :跟踪并管理生成并上传的图像 - Python 3.11 以上 - 所需的 API 密钥 : - Google 双子座 API 密钥 获取密钥 - FreeImage.host API 密钥 获取密钥 - 删除.bg API 密钥 获取密钥 2. 安装紫外线( 如果尚未安装): 1. : 在您的 Claude desktop config.json 文件上添加以下配置来直接从克洛德桌面运行服务器: 注: 将占位符"键"值替换为您实际的API键. 2. : 修改光标.sh文件设置您的 API 密钥和工程目录.

概述(AI 翻译)

英语

一个强大的MCP(模式上下文协议)服务器,使用简单的文本命令来转换图像. 像专业设计师一样编辑相片——用自然语言描述你想要的! □ 德莫语 原始图像

提示:给狗加上外套

提示:** 在上面加一顶帽子**

□ 特性

  • 图像一代**: 使用 Google 双子模型从文本提示创建图像
  • ** 图像修改**: 基于文本指令的变换已存在的图像
  • ** 背景清除**:使用删除的图像去掉背景。 bg API 数据
  • 图像主机:通过FreeImage.host共享生成的图像
  • ** 资源管理**: 跟踪和管理生成和上传的图像

□ 要求

  • Python 3.11 或更高层
  • 所需的 API 密钥 :
  • 谷歌双子座 API 键
  • FreeImage.host API 密钥 获取密钥
  • 删除.bg API 密钥 获取密钥

□ 安装

  1. 克隆此存储器:

  2. 安装紫外线( 如果尚未安装):

  3. 使用紫外线安装依赖性:

□ 使用量

  1. ** Claude桌面集成**: 在您的 [[T0] 文件中添加以下配置, 直接从 Claude 桌面运行服务器 :

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

PromptShopMCP

English | 中文

A powerful MCP (Model Context Protocol) server that transforms images using simple text commands. Edit photos like a professional designer - just describe what you want in natural language!

Demo

Original Image

Prompt: add a coat to the dog

Prompt: Add a hat to it

Features

  • Image Generation: Create images from text prompts using Google’s Gemini models
  • Image Modification: Transform existing images based on text instructions
  • Background Removal: Remove backgrounds from images using the remove.bg API
  • Image Hosting: Share generated images via FreeImage.host
  • Resource Management: Track and manage generated and uploaded images

Requirements

Installation

  1. Clone this repository:

    git https://github.com/Kira-Pgr/Image-Toolkit-MCP-Server.git
    cd Image-Toolkit-MCP-Server
    
  2. Install UV (if not already installed):

    # 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. Install dependencies using UV:

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

Usage

  1. Claude Desktop Integration: Add the following configuration to your claude_desktop_config.json file to run the server directly from 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"
      }
    }
    
    Note: Replace the placeholder "key" values with your actual API keys.
  2. Cursor Integration:
    Linux/macOS: Modify the cursor.sh file to set your API keys and project directory.
  • In cursor settings, go to the “MCP” tab, click on Add new MCP server,
  • Name the server whatever you want, and set the command to sh /absolute/path/to/cursor.sh.
  • Wait for the server to start, and you can see the server and available tools.
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →