English | 中文
一款强大的MCP(模型上下文协议)服务器,使用简单的文本命令来转换图像。像专业设计师一样编辑照片——只需用自然语言描述你想要的内容!
原始图像
<img src="https://gips2.baidu.com/it/u=3839744925,2622864650&fm=3081&app=3081&f=PNG?w=226&h=155" width="300"/>
提示:给狗穿上外套
<img src="https://gips3.baidu.com/it/u=3249809768,350903426&fm=3081&app=3081&f=PNG?w=1024&h=700" width="300"/>
提示:给它戴上帽子
<img src="https://gips1.baidu.com/it/u=1336763726,2884031874&fm=3081&app=3081&f=PNG?w=1024&h=698" width="300"/>
克隆此仓库:
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集成:在你的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集成:
Linux/macOS:
修改cursor.sh文件以设置您的API密钥和项目目录。
添加新MCP服务器,sh /绝对路径/to/cursor.sh。Windows:
修改cursor.bat文件以设置您的API密钥和项目目录。
添加新MCP服务器,cmd /c C:\绝对路径\to\cursor.bat。