watermark-mcp-server

watermark-mcp-server

0

This project is a Model Context Protocol server designed to add watermarks to images. It supports both text and image watermarks and includes tools for specifying various parameters, such as position and transparency.

Watermark MCP Server

a simple Model Context Protocol (MCP) server that adds text or images watermarks to picture.

Available Tools

  • add_text_watermark - add text watermark to picture

    • input_image_path (str): Path to the input image
    • output_image_path (str): Output path for the watermarked image
    • watermark_text (str): Watermark text content
    • pos_ratio (list): Watermark position ratio
    • font_path (str): Path to the font file
    • font_size (int): Font size
    • color (list): RGB value of the text color
    • transparency (int): Text transparency
  • add_image_watermark - add image watermark to picture

    • input_image_path (str): Path to the input image
    • watermark_image_path (str): Path to the watermark image
    • output_image_path (str): Output path for the watermarked image
    • pos_ratio (list): Watermark position ratio
    • transparency (int): Watermark transparency

Local Setup

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

Add to MCP client

for claude

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

for 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"
      ]
    }
  }
}