c2pa-mcp
Verifies C2PA Content Credentials for local files or URLs and returns an LLM-ready verdict on trust, AI generation, and provenance.
README
c2pa-mcp
An MCP server that verifies C2PA Content Credentials and returns an LLM-ready verdict.
Point any MCP client (Claude Desktop, Claude Code, Cursor, ...) at a local file or a URL and get back a plain-language answer: is this image/video/audio trusted, valid, tampered, or unsigned? Who signed it? Is it AI-generated? What's its edit history and provenance lineage?
Built by c2paviewer.com. Verification runs locally on the official C2PA Rust engine via @contentauth/c2pa-node. Files never leave your machine.
Read-only. This server verifies and inspects Content Credentials. It does not sign or create them.
Install
No global install needed. Add it to your MCP client config and it runs via npx:
{
"mcpServers": {
"c2pa": {
"command": "npx",
"args": ["-y", "@c2paviewer/c2pa-mcp"]
}
}
}
- Claude Desktop: Settings → Developer → Edit Config, add the block above.
- Claude Code:
claude mcp add c2pa -- npx -y @c2paviewer/c2pa-mcp - Cursor / others: add the same
mcpServersentry to the client's MCP config.
Requires Node.js 18+.
Tools
| Tool | What it does |
|---|---|
verify_c2pa_file |
Verify a local image/video/audio/PDF by path. |
verify_c2pa_url |
Download a public https media URL and verify it (SSRF-guarded). |
scan_c2pa_directory |
Audit a folder: which files have credentials, their verdict, signer, AI status. |
c2pa_info |
Report engine version, supported media types, and trust-list status. |
Each verify tool returns a human-readable summary plus a structured digest:
{
"verdict": "invalid", // trusted | valid_untrusted | valid_trust_unknown | invalid | no_credentials
"summary": "Content Credentials are INVALID: an integrity or signature check failed ...",
"signer": { "name": "Example Signer", "trusted": false },
"aiGenerated": { "isAI": true, "tools": ["DALL-E"], "digitalSourceTypes": ["...trainedAlgorithmicMedia"] },
"provenance": [ { "depth": 0, "title": "This file", "relationship": "This file", "verdict": "invalid" } ],
"edits": [ { "label": "Created", "agent": "Photoshop", "when": "...", "detail": "" } ],
"watermarks": [ { "kind": "synthid", "assertionLabel": "...", "algorithm": "" } ],
"issues": [ { "code": "assertion.dataHash.mismatch", "severity": "error",
"explanation": "The media content was changed after it was signed. ..." } ],
"trust": { "evaluated": true, "listSource": "https://.../C2PA-TRUST-LIST.pem" }
}
Pass "includeRaw": true to also get the full raw manifest store.
Trust list
To report a signer as trusted (not just cryptographically valid), the server checks the signing certificate against the official C2PA Conformance trust list, fetched live and cached (24h TTL) so trust decisions stay current without a release.
If the trust list can't be fetched, the server degrades loudly: verification still runs, but the verdict becomes valid_trust_unknown and trust.evaluated is false with a reason. It never silently treats an unknown signer as trusted, and never silently uses a stale snapshot.
Environment overrides:
| Variable | Default | Purpose |
|---|---|---|
C2PA_TRUST_LIST_URL |
conformance list | Comma-separated PEM URLs. Add the Interim Trust List (ITL) here to verify pre-2026 content. |
C2PA_TRUST_TTL_SECONDS |
86400 |
Cache lifetime for the fetched trust list. |
C2PA_MAX_FETCH_BYTES |
104857600 |
Max download size for verify_c2pa_url (100 MB). |
Security
- Local processing. Files are read and verified on your machine; nothing is uploaded.
- SSRF-guarded URL fetching.
verify_c2pa_urlaccepts only publichttpsURLs, refuses private/loopback/link-local/cloud-metadata hosts, re-validates every redirect hop, sends no cookies or auth, enforces a content-type allowlist (image/video/audio/PDF) and a size cap.
Limitations
- Experimental. Not legal evidence. C2PA tooling and trust infrastructure are still evolving. Do not rely on these verdicts for legal, compliance, or safety-critical decisions.
- Watermarks are reported as declared, not pixel-verified. A
synthidentry means the manifest declares a SynthID watermark; confirming the signal in the pixels requires the vendor's detector. - AI-generation reflects what the manifest declares via IPTC
digitalSourceType. Absence of an AI declaration is not proof the content is not AI-generated.
Development
npm install
npm run build
npm test # builds, then runs unit + end-to-end tests (network needed for the trust list)
License
Source code is dual-licensed under MIT or Apache-2.0, at your option.
The test images under test/fixtures/ are redistributed unmodified from c2pa-org/public-testfiles and are licensed separately under CC BY-SA 4.0.
Note: if you publish under an unscoped name instead of
@c2paviewer/c2pa-mcp, changenameinpackage.jsonand theargsin the install block above; nothing else depends on the package name.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.