convez.ai
MCP ServerSegurançaIntermediário
harelrech

C2PA MCP — Verificador de Credenciais de Conteúdo

harelrech/c2pa-mcp

Verifica autenticidade e proveniência de mídia com C2PA — sem sair da sua máquina

Ver no GitHub
InicialPluginScore · de 0 a 100

Servidor MCP que verifica credenciais C2PA (Content Authenticity and Provenance) em imagens, vídeos e áudio, retornando um veredito legível sobre confiabilidade, autenticidade, manipulação e origem. Executa localmente via npx sem instalação global, fornecendo análise de proveniência, histórico de edições e detecção de conteúdo gerado por IA.

Instalação

$npx convez-ai harelrech/c2pa-mcp

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
2
Forks
0
Acompanhando
2
Saúde
42%
Último commit
há 1 mês
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Validar autenticidade de imagens e vídeos antes de publicar ou compartilhar
  • Auditar pasta de mídia para identificar conteúdo assinado, manipulado ou gerado por IA
  • Verificar credenciais de conteúdo e rastrear cadeia de proveniência de edições
  • Integrar verificação de mídia confiável em pipelines de moderação de conteúdo

Veredito

Ferramenta sólida e bem-arquitetada para verificação local de autenticidade de mídia. Cobre um caso de uso real (validar C2PA) com integração direta a padrões abertos e suporte a múltiplos tipos de arquivo; a dependência de trust lists externas e o escopo read-only limitam seu potencial, mas garantem foco e segurança.

README

A tradução para o português deste README ainda está na fila.

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 mcpServers entry to the client's MCP config.

Requires Node.js 18+.

Tools

ToolWhat it does
verify_c2pa_fileVerify a local image/video/audio/PDF by path.
verify_c2pa_urlDownload a public https media URL and verify it (SSRF-guarded).
scan_c2pa_directoryAudit a folder: which files have credentials, their verdict, signer, AI status.
c2pa_infoReport 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 two trust lists, fetched live and cached (24h TTL) so decisions stay current without a release:

  • the official C2PA Conformance Program list (going-forward signers), and
  • the legacy CAI Interim Trust List (frozen Jan 2026, but still the only list that recognizes pre-conformance signers — Adobe, Leica, Truepic, Canon, Samsung, and most real-world content today).

Both are on by default; without the ITL, mainstream signed content would read as valid_untrusted.

If the trust lists 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:

VariableDefaultPurpose
C2PA_TRUST_LIST_URLconformance + ITLComma-separated PEM URLs. Replaces the defaults (conformance list + Interim Trust List).
C2PA_TRUST_TTL_SECONDS86400Cache lifetime for the fetched trust list.
C2PA_MAX_FETCH_BYTES104857600Max download size for verify_c2pa_url (100 MB).
C2PA_MAX_FILE_BYTES524288000Max size of a local file the file/scan tools will verify (500 MB).
C2PA_ALLOWED_ROOTS(unset)Comma/semicolon-separated absolute paths. When set, verify_c2pa_file and scan_c2pa_directory refuse any path outside these roots.

Security

  • Local processing. Files are read and verified on your machine; nothing is uploaded.
  • SSRF-guarded URL fetching. verify_c2pa_url allows only public https, pins the resolved IP against DNS rebinding, re-validates every redirect, sends no cookies or auth, and enforces a content-type allowlist plus size cap.
  • Local path safety. The file/scan tools reject remote file:// and UNC paths, resolve symlinks before the allowed-roots check, and return a generic error for inaccessible paths.
  • Set C2PA_ALLOWED_ROOTS in any untrusted context. The file/scan tools expose the host filesystem by design, so a prompt-injected model could point them anywhere. Confining them to a specific directory is the single most important hardening setting.
  • Trust integrity. Trust lists are fetched over HTTPS (integrity rests on TLS and the upstream sources); the cache is per-user (0700/0600, ownership-checked) and bound to the configured URL set.

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 synthid entry 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, change name in package.json and the args in the install block above; nothing else depends on the package name.

Ver o original no GitHub

Bom para

Relacionados