KP

kira-pgr/promptshopmcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

18 stars 8 forks 品質 62 トレンド 22MIT

Claude Desktop / Cursor(AI Psec)で画像を編集するAIを使用する

概要

シンプルなテキストコマンドで画像を変換する強力なMCP(Model Context Protocol)サーバ。 プロのデザイナーのように写真を編集 - 自然言語で望むものを記述するだけです! オリジナルイメージ - : GoogleのGeminiモデルを使用してテキストプロンプトから画像を作成します - : テキストの指示に基づいて既存の画像を変換 - : 削除を使用して画像から背景を削除します。 bg API - : 生成された画像を FreeImage.host で共有する - : 生成された画像を追跡し、アップロードした画像をアップロード - Python 3.11以上 - 必須 API キー: - Google Gemini API キーの取得キー - FreeImage.host API キーの取得キー - Remove.bg API キーの取得キー 2. 紫外線(既にインストールされていない場合): 1. : 次の設定を claude desktop config.json ファイルに追加して、Claude Desktop からサーバーを直接実行します。注記: プレースホルダーの "key" 値を実際の API キーに置換します。 2. : API キーとプロジェクトディレクトリを設定するために cursor.sh ファイルを変更します.

概要(AI 翻訳)

日本語 English

シンプルなテキストコマンドで画像を変換する強力なMCP(Model Context Protocol)サーバ。 プロのデザイナーのように写真を編集 - 自然言語で望むものを記述するだけです!

デモ

オリジナルイメージ

プロンプト: 犬にコートを追加

プロンプト:帽子を追加

##特徴

-イメージ生成: GoogleのGeminiモデルを使用してテキストプロンプトから画像を作成する

  • イメージ変更: テキストの指示に基づいて既存の画像を変換する
  • 背景除去:削除を使用して画像から背景を削除します。 bg APIの -Image Hosting:生成された画像をFreeImage.hostで共有する
  • リソース管理: 生成された画像を追跡し、管理し、アップロード

要件

  • Python 3.11以上
  • 必須 API キー:
  • GoogleのGemini APIのキーはキーを得ます
  • FreeImage.host API キーの取得キー
  • remove.bg API キーの取得キー

インストール

  1. このリポジトリをクローンする:

  2. 紫外線(既にインストールされていない場合):

3.紫外線を使用して依存関係を取付けて下さい:

使用法

1.Claudeデスクトップの統合: 次の設定を[[T0]ファイルに追加して、Claude Desktopから直接サーバーを実行します

このページは 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 MCP 初心者?mcpskill.org のガイドから始めましょう →