Skip to main content

Watermark Buster Local

Run Watermark Buster on your computer. The package includes a command line tool and a local stdio MCP server for Codex, Claude Code, Gemini CLI, Cursor, Antigravity, and other MCP clients.

Normal text and file cleaning uses the CPU and Python standard library. It does not send content to watermarkbuster.com.

Install

Python 3.10 or newer is required. pipx keeps the command in its own Python environment:

pipx install watermarkbuster-local
watermarkbuster-local doctor

To install this source checkout before the public package is released:

cd /path/to/watermarkbuster.com
pipx install .
watermarkbuster-local doctor

Upgrade a released install with:

pipx upgrade watermarkbuster-local

Use the CLI

Inspect or clean one file:

watermarkbuster-local inspect draft.md
watermarkbuster-local clean draft.md -o draft.cleaned.md

Audit a folder:

watermarkbuster-local audit-directory ./content --json > audit.json

Audit same-site URLs from a sitemap:

watermarkbuster-local audit-website \
  --sitemap https://example.com/sitemap.xml \
  --max-pages 100 \
  --json > website-audit.json

The audit follows only URLs with the same scheme, host, and port as the sitemap. It reads at most 4 MB from each URL by default.

Connect an AI agent

The safest setup gives the agent access to one folder:

watermarkbuster-local mcp --root /ABSOLUTE/PATH/TO/YOUR/FILES

The command waits for MCP messages on standard input. An MCP client starts it for you.

Codex

codex mcp add watermark-buster-local -- \
  watermarkbuster-local mcp --root /ABSOLUTE/PATH/TO/YOUR/FILES

Then run codex mcp list.

Gemini CLI

gemini mcp add --scope user watermark-buster-local \
  watermarkbuster-local mcp -- --root /ABSOLUTE/PATH/TO/YOUR/FILES

Then run gemini mcp list.

Claude Code

claude mcp add --scope user watermark-buster-local -- \
  watermarkbuster-local mcp --root /ABSOLUTE/PATH/TO/YOUR/FILES

Then run claude mcp list or use /mcp inside Claude Code.

Cursor, Antigravity, and JSON clients

Use this stdio MCP server object in the client's MCP settings:

{
  "mcpServers": {
    "watermark-buster-local": {
      "command": "watermarkbuster-local",
      "args": [
        "mcp",
        "--root",
        "/ABSOLUTE/PATH/TO/YOUR/FILES"
      ]
    }
  }
}

Use a real absolute path. Restart the client after you save its settings.

Use npx or npm

The npm command can start the local Python package after pipx install watermarkbuster-local:

npx -y watermarkbuster-mcp --local --root "$PWD"

Or install both commands once:

pipx install watermarkbuster-local
npm install --global watermarkbuster-mcp
watermarkbuster-mcp --local --root "$PWD"

npx installs the small MCP launcher. pipx installs the local cleaning engine.

Local MCP tools

  • inspect_text finds hidden Unicode without changing text.
  • clean_text returns clean text and removal counts.
  • inspect_file checks one file inside the allowed folder.
  • clean_file writes a clean copy inside the allowed folder.
  • audit_directory checks a folder tree.
  • audit_website checks same-site sitemap URLs when network access is enabled.
  • rewrite_text_local uses an Ollama server on this computer.
  • remove_pixel_watermark uses the optional noai-watermark command.
  • get_local_capabilities shows the folder boundary and optional tool status.

Optional local model rewriting

Install and start Ollama separately. Pull a model that is suitable for your computer, then run:

watermarkbuster-local rewrite draft.txt \
  --model YOUR_LOCAL_MODEL \
  -o draft.rewritten.txt

Only loopback Ollama URLs such as http://127.0.0.1:11434 are accepted. This prevents an agent from sending the text to a remote rewrite server.

Optional pixel cleaning

Pixel cleaning uses the separate noai-watermark project. It can run on a CPU, but the first use can download about 4 GB for the default model or about 10 GB for CtrlRegen.

That project does not currently publish a license file. Watermark Buster does not include its code or model files. Confirm that you have permission to install and use it before you continue.

pipx install noai-watermark
watermarkbuster-local remove-pixel source.png \
  -o source.pixel-cleaned.png

Use --model-profile ctrlregen for the larger CtrlRegen pipeline. Watermark Buster does not bundle its code or model files.

Website access for agents

Website audit is off in MCP mode by default. Turn it on only when the agent must audit a site:

watermarkbuster-local mcp \
  --root /ABSOLUTE/PATH/TO/YOUR/FILES \
  --allow-network

The direct CLI website command does not need this flag because you start that command yourself.

File safety

  • The MCP server can access only --root. Its default is the folder where it starts.
  • Paths that leave the allowed folder are rejected.
  • Cleaning writes a new file unless you give the same output path yourself through the direct CLI.
  • Normal cleaning needs no account, token, model, GPU, or internet connection.
  • rewrite_text_local needs a local Ollama model.
  • remove_pixel_watermark needs the separate pixel tool and its model files.

Use these tools only on content that you own or have permission to change.

License

MIT. See the repository LICENSE file.

Metadata

Release files for watermarkbuster-local 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for watermarkbuster-local 0.1.0
File Size Uploaded Provenance Actions
watermarkbuster_local-0.1.0.tar.gz 65.2 kB Without provenance Details for watermarkbuster_local-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for watermarkbuster-local 0.1.0
File Interpreter ABI Platform Actions
watermarkbuster_local-0.1.0-py3-none-any.whl Python 3 none any Details for watermarkbuster_local-0.1.0-py3-none-any.whl

Total release size: 115.7 kB

Release files / watermarkbuster_local-0.1.0.tar.gz

Download URL watermarkbuster_local-0.1.0.tar.gz
Size 65.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b8f89225c089ad453813e4e837ac5b83739d4df495e035d6f3246a63c38bb435
BLAKE2b-256 checksum
How to use checksums
bac1ae6360d85b3e98ffef560aefbcdc9853a3857a78ea7f0f569a600a5fb960
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / watermarkbuster_local-0.1.0-py3-none-any.whl

Download URL watermarkbuster_local-0.1.0-py3-none-any.whl
Size 50.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11c23ded50bba7782322f40450545f7e53e73f50aaf0deaee31c47fb988006b3
BLAKE2b-256 checksum
How to use checksums
e6cc2d0a35d9e0c1664ccecf10982939a8c4ebe6da27ff2ac48b2484ca8a6db3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for watermarkbuster-local 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page