Skip to main content
Glama

PromptShopMCP

English |中文

强大的 MCP(模型上下文协议)服务器,使用简单的文本命令即可转换图像。像专业设计师一样编辑照片 - 只需用自然语言描述您想要的效果!

演示

原始图像\

提示:给狗加一件外套\

提示:给它加一顶帽子

Related MCP server: MCP Gemini API Server

特征

  • 图像生成:使用 Google 的 Gemini 模型根据文本提示创建图像

  • 图像修改:根据文本指令转换现有图像

  • 背景去除:使用 remove.bg API 从图像中删除背景

  • 图片托管:通过 FreeImage.host 分享生成的图片

  • 资源管理:跟踪和管理生成和上传的图像

要求

安装

  1. 克隆此存储库:

    git https://github.com/Kira-Pgr/Image-Toolkit-MCP-Server.git cd Image-Toolkit-MCP-Server
  2. 安装 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
  3. 使用 UV 安装依赖项:

    uv venv --python=python3.11 source .venv/bin/activate #or .venv/Scripts/activate on Windows uv pip install -r requirements.txt

用法

  1. 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 密钥。

  2. 光标集成
    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

  • 等待服务器启动,即可看到服务器和可用的工具。

  • 那么当你使用代理时,它会自动检测是否使用该工具。

致谢

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kira-Pgr/PromptShopMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server