Skip to main content

A powerful MCP server that transforms images using simple text commands

Project description

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

  • Python 3.11 or higher
  • Required API keys:

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.
  • Then when you use the agent, it would automatically detect whether use the tools.
image

Windows: Modify the cursor.bat 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 cmd /c C:\absolute\path\to\cursor.bat.
  • Wait for the server to start, and you can see the server and available tools.
  • Then when you use the agent, it would automatically detect whether use the tools.

Acknowledgements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_kira_pgr_promptshopmcp-0.1.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_kira_pgr_promptshopmcp-0.1.1.tar.gz.

File metadata

  • Download URL: iflow_mcp_kira_pgr_promptshopmcp-0.1.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_kira_pgr_promptshopmcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 862403ee6747d616ce0364993b93ee95b9a4430d5163da16ed64e63b4f373129
MD5 7e4166516bd053437654b886bb7a9dcf
BLAKE2b-256 b2052099fe07abb6418e3685d6c75ba2109c63f2d607e813334af4ab18df6299

See more details on using hashes here.

File details

Details for the file iflow_mcp_kira_pgr_promptshopmcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_kira_pgr_promptshopmcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_kira_pgr_promptshopmcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ddb554d31ebf01243898e0586b56815852308a529ea2b67fecf84eae9fb5691
MD5 077b0c87e39ab190b68ad4f6f969f34a
BLAKE2b-256 2cc4b1efa2af210f4f3690f741ba210a953d3ae217e790e5746c5066209bbf09

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page