MCP图像生成与处理工具添加福利群:解决AI开发者的「MCP实战痛点」English | 中文
一个强大的 MCP(模型上下文协议)服务器,可以通过简单的文本命令来转换图像。像专业设计师一样编辑照片 - 只需用自然语言描述你想要的效果!
原始图片
提示: 给狗加上一件外套
提示: 给它加一顶帽子
克隆此仓库:
git https://github.com/Kira-Pgr/Image-Toolkit-MCP-Server.git
cd Image-Toolkit-MCP-Server

安装 UV(如果尚未安装):
# 在 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 安装依赖项:
uv venv --python=python3.11
source .venv/bin/activate # 或在 Windows 上使用 .venv/Scripts/activate
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 密钥。cursor.sh 文件以设置您的 API 密钥和项目目录。添加新的MCP服务器,sh /absolute/path/to/cursor.sh。Windows:
修改cursor.bat文件以设置你的API密钥和项目目录。
添加新的MCP服务器,cmd /c C:\absolute\path\to\cursor.bat。