Back to Directory/Media & Images

Demarker

Identify what an AI image carries (marks, metadata, watermarks), then clean it.

Media & ImagesTypeScriptv0.1.2

Demarker agent tools

Open-source client, CLI, MCP server and agent skill for Demarker: see and remove what an AI generated image have hidden in them (visible marks, AI metadata, inferred hidden watermarks such as SynthID), then remove them!

Scanning is free and needs no account. Cleaning needs an API key and credits, and the person using it confirms a rights statement each time.

PackageWhat it is
demarkerCLI: npx demarker identify image.png
@demarker/mcpMCP server for Claude, Cursor, VS Code and others
@demarker/clientTyped API client (no runtime dependencies)
skills/demarkerAgent skill: npx skills add removeaiwatermark/demarker

Quick start

npx demarker identify image.png                          # free, no key
export DEMARKER_API_KEY=sk_live_...                      # https://demarker.io/app/settings/api
npx demarker clean image.png --max-credits 1 --attest-rights

MCP, Claude Code: claude mcp add demarker -- npx -y @demarker/mcp. One-click Cursor and VS Code installs: https://demarker.io/developers

Safety by design

  • Spending is capped: --max-credits is required, and the MCP server also enforces a per-call ceiling (default 2 credits).
  • The rights attestation is never defaulted. The CLI asks, or needs an explicit --attest-rights; the MCP server asks the user through the client where supported.
  • Results never overwrite an existing file.

Development

pnpm install && pnpm build && pnpm test

This repository is published from Demarker's main codebase; issues and pull requests are welcome here. API reference: https://demarker.io/api/v1/openapi

MIT licensed.

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y @demarker/mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-demarker-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@demarker/mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

@demarker/mcpnpm

Compatible MCP Clients

Demarker works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More