MCP Content Credentials Server
MCP (Model Context Protocol) server for reading C2PA Content Credentials from images and videos. Detects credentials from both embedded manifests and invisible watermarks.
Features
š Embedded C2PA Detection - Read manifests from file metadata
š TrustMark Watermark Detection - Detect credentials in image pixels (survives social media!)
š URL Support - Check credentials from web URLs
š Direct Filesystem Access - Claude can browse your directories
ā” Smart Detection - Checks embedded first, watermark as fallback
š¤ Automatic Installation - Zero configuration setup
š Structured Output - Human-readable parsed data
š”ļø Production Ready - Full error handling and logging
š REST API - HTTP endpoints for ChatGPT and web integration
Quick Start
REST API (for ChatGPT & Web Apps)
Want to use this with ChatGPT or your own web app? Start the HTTP REST API:
The server runs on http://localhost:3000. See REST-API.md for full documentation.
For ChatGPT: Use ngrok to expose your local server, or deploy to Render/Railway. See REST-API.md for instructions.
Prerequisites
Node.js v18+
Python 3.8.5+ (for TrustMark watermarks)
All other dependencies auto-install during
ā c2patool (Homebrew on macOS, binary on Linux)
ā TrustMark Python package (via pip)
Manual Installation (if auto-install fails)
Usage
Check a Specific File
Browse Directories
Check URLs
How It Works
Detection Flow
Why This Order?
Performance: 80% of credentialed images have embedded manifests
Speed: Skip expensive watermark check when not needed
Completeness: Still catch stripped metadata via watermarks
TrustMark Watermarks
Invisible watermarks embedded in image pixels that:
ā Survive JPEG compression
ā Persist through social media uploads (Instagram, Twitter)
ā Work after print-scan cycles
ā Remain when metadata is stripped
Supported Formats
Images: JPEG, PNG, WebP, GIF, TIFF, AVIF, HEIC
Video: MP4, MOV
API Response
Filesystem Access
Claude can browse these directories automatically:
~/Desktop~/Downloads~/Documents~/Pictures
No need to provide exact paths! Just ask:
"What images are in my Desktop?"
"Check recent downloads"
Development
Architecture
Troubleshooting
"Unable to access that file"
Restart Claude Desktop (most common fix!)
Use absolute paths:
/Users/you/...not~/...Verify MCP is connected: Ask "What tools do you have?"
"c2patool: command not found"
"Python or TrustMark not found"
No Content Credentials Found
This is normal! The file either:
Wasn't created with content authentication
Had credentials removed
Is a screenshot/copy without provenance
Performance
Embedded check: ~150ms (fast path, 80% of cases)
+ Watermark check: ~600ms (fallback, 20% of cases)
First watermark: ~30s (downloads ONNX model, one-time)
Security
ā Read-only filesystem access
ā Limited to user directories (Desktop, Downloads, etc.)
ā Input validation on all paths and URLs
ā Temporary files auto-deleted
ā No access to hidden/system files
Contributing
See CONTRIBUTING.md
Resources
License
MIT