Back to MCP directory
publicPublicdnsLocal runtime

watermark-mcp-server

一个简单的模型上下文协议(MCP)服务器,用于为图片添加文字或图像水印

article

README

🚀 水印 MCP 服务器

这是一个简单的模型上下文协议(MCP)服务器,可用于在图片上添加文字或图像水印,为图片处理提供便捷的水印添加功能。

🚀 快速开始

本地设置

git clone https://github.com/mang0cola/watermark-mcp-server.git
cd watermark-mcp-server
uv venv
uv pip install -r pyproject.toml

添加到 MCP 客户端

针对 Claude

{
    "mcpServers": {
        "watermark-mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "<WATERMARK_MCP_SERVER_ABSOLUTE_PATH>",
                "run",
                "-m",
                "server"
            ]
        }
    }
}

针对 CherryStudio

{
    "mcpServers": {
        "watermark-mcp-server": {
            "name": "watermark-mcp-server",
            "type": "stdio",
            "isActive": true,
            "registryUrl": "",
            "command": "uv",
            "args": [
                "--directory",
                "<WATERMARK_MCP_SERVER_ABSOLUTE_PATH>",
                "run",
                "-m",
                "server"
            ]
        }
    }
}

✨ 主要特性

可用工具

  • add_text_watermark - 在图片上添加文本水印

    • input_image_path (str): 输入图片路径
    • output_image_path (str): 输出带水印图片的路径
    • watermark_text (str): 水印文本内容
    • pos_ratio (list): 水印位置比例
    • font_path (str): 字体文件路径
    • font_size (int): 字体大小
    • color (list): 文本颜色的 RGB 值
    • transparency (int): 文本透明度
  • add_image_watermark - 在图片上添加图像水印

    • input_image_path (str): 输入图片路径
    • watermark_image_path (str): 水印图片路径
    • output_image_path (str): 输出带水印图片的路径
    • pos_ratio (list): 水印位置比例
    • transparency (int): 水印透明度
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client