PromptShopMCP 是一个功能强大的 MCP(模型上下文协议)服务器,它允许你使用简单的文本命令将图像转换为图像。你可以像专业设计师一样编辑照片,只需用自然语言描述你想要的内容!
PromptShopMCP 能让你轻松借助文本指令实现图像的生成与修改。你可以像专业设计师一样,用自然语言描述需求,即可完成照片编辑。
git https://github.com/Kira-Pgr/Image-Toolkit-MCP-Server.git
cd Image-Toolkit-MCP-Server
# 在 macOS 和 Linux 上。
curl -LsSf https://astral.sh/uv/install.sh | sh
# 在 Windows 上。
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# 使用 pip。
pip install uv
uv venv --python=python3.11
source .venv/bin/activate # 或 .venv/Scripts/activate 在 Windows 上
uv pip install -r requirements.txt
将以下配置添加到你的 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 密钥和项目目录。
Add new MCP server
。sh /absolute/path/to/cursor.sh
。原始图片
提示:add a coat to the dog
提示:Add a hat to it