Stamp it - Apply a full-screen watermark to an image

by LiuHao-1443

136 downloads Not rated yet
GitHub

About

A lightweight MCP component for adding text watermarks to pictures.

Explore

- πŸ–ΌοΈ Dual Watermark Modes: Support for both text and image watermarks
- πŸ“‚ Local File Processing: Professional local image file handling
- 🎨 Smart Adaptive Colors: Automatic color selection based on image brightness
- πŸ“ Tilted Watermark Effects: Customizable angle tilting (default 30Β° upward right)
- 🌍 Multi-language Support: Chinese, English, Japanese, Korean and more
- 🎯 High-density Coverage: Complete coverage of every corner with no gaps
- πŸ’Ž High Definition: BICUBIC resampling for smooth edges
- πŸ“ Smart Saving: Auto-save in the same directory as original image
- ⚑ Performance Optimized: Font caching, intelligent scaling, memory management
- πŸ› οΈ Rich Format Support: Supports 7 common image formats

- Smart Color Adaptation
- Bright images: Automatically use dark watermarks (RGB 20,20,20)
- Dark images: Automatically use light/white watermarks (RGB 240,240,240)
- Medium brightness: Intelligently select optimal contrast colors

- Multi-language Font Support
- Auto-detect and load system's best Chinese fonts
- Support for PingFang SC, Microsoft YaHei, SimHei, etc.
- Perfect display of Chinese, Japanese, Korean, and English

- High-quality Rendering
- Font caching for improved performance
- BICUBIC resampling for smooth edges
- Centered rendering with excellent rotation effects

- Smart Scaling: Auto-scale to appropriate size (default 15%)
- Opacity Control: Automatic opacity adjustment without affecting original image
- Aspect Ratio Preservation: Maintain watermark image aspect ratio
- High-quality Scaling: Use LANCZOS algorithm for clarity

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Stamp it - Apply a full-screen watermark to an image
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

uv pip install fastmcp pillow

uv pip install -e .


You can adjust parameters by modifying the WatermarkConfig class:

python
class WatermarkConfig:
DEFAULT_FONT_SIZE = 36 # Default font size
DEFAULT_ANGLE = 30 # Default tilt angle
SPACING_X_FACTOR = 1.1 # Horizontal spacing multiplier
SPACING_Y_FACTOR = 0.9 # Vertical spacing multiplier
BRIGHTNESS_THRESHOLDS = { # Brightness thresholds
'very_bright': 180,
'medium': 120,
'dark': 60
}
```

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "stamp it - apply a full-screen watermark to an image": {
            "stampit": {
                "command": "uvx",
                "args": [
                    "mcp-stampit"
                ]
            }
        }
    }
}

McpServers

{
    "stampit": {
        "command": "uvx",
        "args": [
            "mcp-stampit"
        ]
    }
}

A professional image watermarking service built with FastMCP, supporting both text and image watermarks with intelligent color adaptation.

δΈ­ζ–‡ζ–‡ζ‘£ | English

✨ Key Features

- πŸ–ΌοΈ Dual Watermark Modes: Support for both text and image watermarks
- πŸ“‚ Local File Processing: Professional local image file handling
- 🎨 Smart Adaptive Colors: Automatic color selection based on image brightness
- πŸ“ Tilted Watermark Effects: Customizable angle tilting (default 30Β° upward right)
- 🌍 Multi-language Support: Chinese, English, Japanese, Korean and more
- 🎯 High-density Coverage: Complete coverage of every corner with no gaps
- πŸ’Ž High Definition: BICUBIC resampling for smooth edges
- πŸ“ Smart Saving: Auto-save in the same directory as original image
- ⚑ Performance Optimized: Font caching, intelligent scaling, memory management
- πŸ› οΈ Rich Format Support: Supports 7 common image formats

πŸ“– Usage

MCP Client Configuration

Cherry Studio (Recommended)

1. Open Cherry Studio Settings
- Go to Settings β†’ MCP Servers
- Click "Add Server"

2. Configure MCP Server

Cherry Studio MCP Configuration

3. Save and Connect
- Click "Save" to add the server
- The server will automatically connect
- You can now use the watermark tools in Cherry Studio

Cherry Studio MCP Tools

Cursor

1. Open Cursor Settings
- Use shortcut Cmd+, (Mac) or Ctrl+, (Windows/Linux)
- Or click Settings β†’ Preferences

2. Configure MCP Server
- Find "MCP Servers" configuration option
- Add the following configuration:

{
  "mcpServers": {
    "stampit": {
      "command": "uvx",
      "args": [
        "mcp-stampit"
      ]
    }
  }
}

3. Save and Restart
- Save the configuration file
- Restart Cursor for changes to take effect
- You can now use the watermark tools in Cursor

πŸ“¦ Preview

preview-1.png

preview-2.png

preview-3.png

preview-4.png

πŸš€ Installation

Using uv (Recommended)

```bash

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.