PromptShopMCP
English |中文
强大的 MCP(模型上下文协议)服务器,使用简单的文本命令即可转换图像。像专业设计师一样编辑照片 - 只需用自然语言描述您想要的效果!
演示
原始图像\
提示:给狗加一件外套\
提示:给它加一顶帽子
Related MCP server: MCP Gemini API Server
特征
图像生成:使用 Google 的 Gemini 模型根据文本提示创建图像
图像修改:根据文本指令转换现有图像
背景去除:使用 remove.bg API 从图像中删除背景
图片托管:通过 FreeImage.host 分享生成的图片
资源管理:跟踪和管理生成和上传的图像
要求
安装
克隆此存储库:
git https://github.com/Kira-Pgr/Image-Toolkit-MCP-Server.git cd Image-Toolkit-MCP-Server安装 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使用 UV 安装依赖项:
uv venv --python=python3.11 source .venv/bin/activate #or .venv/Scripts/activate on Windows uv pip install -r requirements.txt
用法
Claude Desktop Integration :将以下配置添加到您的
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 密钥。光标集成:
Linux/macOS :修改cursor.sh文件以设置您的 API 密钥和项目目录。
在游标设置中,转到“MCP”选项卡,点击
Add new MCP server,将服务器命名为您想要的任何名称,然后将命令设置为
sh /absolute/path/to/cursor.sh。等待服务器启动,即可看到服务器和可用的工具。
那么当你使用代理时,它会自动检测是否使用该工具。
Windows :修改cursor.bat文件以设置您的 API 密钥和项目目录。
在游标设置中,转到“MCP”选项卡,点击
Add new MCP server,根据需要为服务器命名,然后将命令设置为
cmd /c C:\absolute\path\to\cursor.bat。等待服务器启动,即可看到服务器和可用的工具。
那么当你使用代理时,它会自动检测是否使用该工具。
致谢
Google Gemini :用于图像生成功能
Remove.bg :提供背景删除服务
FreeImage.host :用于图像托管服务
MCP :用于模型上下文协议