Skip to content
← All tutorials

Tutorial · Agents

Get your AI agent to mark its own images, with one MCP server and one rule

Give Claude Markproof's MCP tools and it marks and verifies AI images on request. Add one CLAUDE.md rule, and it marks them even when the prompt never mentions it.

0:35 video · Real run on 30 November 2026 · Markproof

0:35 · text on screen, no narration

In short

  • One command gives an AI agent Markproof's tools over MCP: mark_file, verify_file and get_asset.
  • Asked to mark an AI image, Claude marked it, verified it and returned the verify link in 32 seconds.
  • With one rule in CLAUDE.md and a prompt that never mentions marking, it still marked the image and published only the marked copy.

1. Give your agent the tools

You need a Markproof API key (sign up, 250 free calls a month). In Claude Code:

Terminal
claude mcp add markproof -e MARKPROOF_API_KEY=lt_live_... -- npx -y markproof-mcp# Native Windows: ... -- cmd /c npx -y markproof-mcp

The same server works in other MCP clients, such as Cline: run npx -y markproof-mcp with MARKPROOF_API_KEY set. See the docs for the config.

2. Run 1: ask for it

The prompt, in full:

Prompt
lighthouse.jpg in this folder is an AI-generated image (MiniMax image-01) for a blog post. Mark it as AI-generated with Markproof (generator name: my-agent, model: minimax-image-01), then verify the marked copy and give me its verify link.

The tool calls Claude made, from the run's transcript:

Tool calls
markproof · mark_file   { path: "lighthouse.jpg", generator_name: "my-agent", model_name: "minimax-image-01" }  → lighthouse.marked.png · watermark 1FZA8TPH · https://markproof.co/v/1FZA8TPHmarkproof · verify_file { path: "lighthouse.marked.png" }  → Watermark detected code 1FZA8TPH, matches our record. C2PA manifest present and valid.

It also told the user to publish the marked PNG rather than the original JPEG, and explained the "untrusted certificate" note in the check.

3. Run 2: tell it once

This time a small blog project has one rule in its CLAUDE.md, and the prompt doesn't mention marking at all:

CLAUDE.md
# Blog - Every AI-generated image must be marked with Markproof (the `mark_file` tool) before it goes on the site. Publish the `.marked.png` copy, never the original.
Prompt
Add the AI-generated image drafts/lighthouse.jpg (made with MiniMax) to posts/hello.md: put the image in public/images/ and show it under the title.
Tool calls
markproof · mark_file   { path: "drafts/lighthouse.jpg", output_path: "public/images/lighthouse.marked.png" }  → watermark CTS9P8QX · https://markproof.co/v/CTS9P8QXmarkproof · verify_file { path: "public/images/lighthouse.marked.png" }  → Watermark detected code CTS9P8QX, matches our record. C2PA manifest present and valid.Edit posts/hello.md  + ![A lighthouse (AI-generated image)](/images/lighthouse.marked.png)

Claude followed the rule. It marked the image straight into public/images/, checked it, and only then added it to the post. The original stayed in drafts/, unreferenced. An independent check of the published file through the API found watermark CTS9P8QX and valid Content Credentials. Download the published file and check it yourself.

Run 1: askedRun 2: CLAUDE.md rule only
MarkedYes, 1FZA8TPHYes, CTS9P8QX
VerifiedYesYes
Published copylighthouse.marked.pngpublic/images/lighthouse.marked.png
Time32 s46 s

Tips

Name your app in the rule. In Run 2, Claude recorded MiniMax as both the generator and the model. Add "use generator name my-blog" to the rule if you want your app in the signed record.

This is technical guidance, not legal advice.

Check your own output in seconds.

Drop a file into the free checker to see whether it carries a watermark and Content Credentials. Then mark your files with one API call: 250 free calls a month, no card required.