Image Toolkit
Use AI to edit image in Claude Desktop / Cursor (AI P图) - Kira-Pgr/PromptShopMCP
Kira-Pgr
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
<img src="https://github.com/user-attachments/assets/a987b4c4-3bba-4a52-a2a8-9f088868d857" width="300"/>
Prompt: add a coat to the dog
<img src="https://github.com/user-attachments/assets/6de3cdd1-a3b9-422b-95dd-12e2172f6f1d" width="300"/>
Prompt: Add a hat to it
<img src="https://github.com/user-attachments/assets/047289ca-f3d0-4d16-acf7-09d5af641c68" width="300"/>
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
-
Clone this repository:
git https://github.com/Kira-Pgr/Image-Toolkit-MCP-Server.git cd Image-Toolkit-MCP-Server -
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 -
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
- Claude Desktop Integration: Add the following configuration to your
claude_desktop_config.jsonfile to run the server directly from Claude Desktop:Note: Replace the placeholder"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"values with your actual API keys. - Cursor Integration:
Linux/macOS: Modify thecursor.shfile 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.
<img width="1240" alt="image" src="https://github.com/user-attachments/assets/b41016fe-a0f8-4029-8f5d-82f25c606a65" />
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
- Google Gemini: For the image generation capabilities
- Remove.bg: For background removal services
- FreeImage.host: For image hosting services
- MCP: For the Model Context Protocol
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
React MCP
react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts
AIO-MCP Server
🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from
Persistent Knowledge Graph
An implementation of persistent memory for Claude using a local knowledge graph, allowing the AI to remember information about users across conversations with customizable storage location.
Search1API MCP Server
A Model Context Protocol (MCP) server that provides search and crawl functionality using Search1API.
Fetch MCP Server
Provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
Perplexity Server
Interacting with Perplexity API.
OpenRouter MCP Server
Provides integration with OpenRouter.ai, allowing access to various AI models through a unified interface.