Connect an AI agent
Everything an agent needs to call c2pa.design: MCP endpoints, the OpenAPI description, auth, limits and how to read a result.
This page is written to be read by an agent as much as by a person. If you are an agent: the machine-readable entry points are listed first, the rules for reporting a result last.
Install in one line
| Agent | Command |
|---|---|
| Any agent with Agent Skills | npx skills add c2pa-design/skills |
| Claude Code plugin | /plugin marketplace add c2pa-design/skills, then /plugin install c2pa-check@c2pa-design |
| Claude Code, MCP only | claude mcp add c2pa -- npx -y c2pa-check@latest mcp |
The skill checks files offline with the c2pa-check CLI and keeps every media asset in a repo
tracked. Ask your agent to "track my assets", or run it yourself from the repo root:
node <skill>/scripts/track.mjs
That writes a local lockfile, .c2pa/assets.lock.json (path → sha256, status, signer), and on
later runs prints only what changed; it exits 1 when an asset lost a valid credential. To send
the hashes and reports (never the files) to your inventory on c2pa.design, add --push with an
API key:
C2PA_API_KEY=… node <skill>/scripts/track.mjs --push
The Assets page covers the inventory and the flags.
Entry points
| What | URL |
|---|---|
| Remote MCP (Streamable HTTP) | https://api.c2pa.design/mcp |
| Local MCP (stdio, offline) | c2pa-check mcp |
| REST base URL | https://api.c2pa.design/v1 |
| Index of every page | https://c2pa.design/llms.txt |
| All docs in one file | https://c2pa.design/llms-full.txt |
Auth
An API key as a bearer token: Authorization: Bearer c2pa_live_…. Create one at
app.c2pa.design → API keys. A c2pa_test_… key costs no quota
and answers from a fixture corpus.
Without a key, POST /v1/url-checks and the MCP tool verify_url work anonymously at 20 URL
checks per hour per IP. That is enough to try the service before anyone signs up.
Claude Code
claude mcp add --transport http c2pa https://api.c2pa.design/mcp \
--header "Authorization: Bearer $C2PA_API_KEY"
Offline, no account:
claude mcp add c2pa-check -- c2pa-check mcp
Cursor, Windsurf, other mcpServers clients
{
"mcpServers": {
"c2pa": {
"url": "https://api.c2pa.design/mcp",
"headers": { "Authorization": "Bearer c2pa_live_…" }
}
}
}
VS Code
.vscode/mcp.json:
{
"servers": {
"c2pa": {
"type": "http",
"url": "https://api.c2pa.design/mcp",
"headers": { "Authorization": "Bearer ${input:c2pa_key}" }
}
},
"inputs": [{ "id": "c2pa_key", "type": "promptString", "password": true, "description": "c2pa.design API key" }]
}
Claude Desktop, claude.ai and ChatGPT connectors
Custom connectors in these apps sign in with OAuth, which the remote server does not offer yet. Use the local server there:
{
"mcpServers": {
"c2pa-check": { "command": "c2pa-check", "args": ["mcp"] }
}
}
Files you hold locally: upload them with the REST flow in Verifications, or
use the local c2pa-check mcp, whose verify_file never leaves the machine.
Without MCP
Any agent that can make an HTTP request can use the REST API directly. The OpenAPI description above is complete for the public operations; Quickstart shows the one call most tasks need.
curl -s https://api.c2pa.design/v1/url-checks \
-H "content-type: application/json" \
-d '{"url":"https://cdn.example.com/hero.jpg"}'
Tools
| MCP tool | REST equivalent | Use when |
|---|---|---|
verify_url |
POST /v1/verifications (or /v1/url-checks without a key) |
You have a public URL |
inspect_manifest |
verification with include_raw |
You need assertions, ingredients, the certificate chain |
check_pipeline |
an ad-hoc monitor run (API key required) | You want the same asset checked at several delivery stages |
ecosystem_lookup |
GET /v1/ecosystem/{slug} |
"Does this CDN keep Content Credentials?" |
trust_status |
trust list status | Which trust list results are judged against |
Reporting a result
Branch on result.credential.status and nothing else.
| Value | Say | Never say |
|---|---|---|
valid_trusted |
"Carries a valid Content Credential signed by {signer}." | "Authentic", "real" |
valid_untrusted |
"Signature intact; the signer is not on the trust list used." | "Fake", "suspicious" |
present_invalid |
"A credential exists but the file changed after signing." | "Forged" |
absent |
"No Content Credential found." | "AI-generated", "fake", "human-made" |
error |
"Could not be checked." | anything about the content |
A missing credential proves nothing: it is the ordinary state of most files. A valid one proves
who signed and that the bytes did not change, not that the content is true. Quote
result.engine.trust_list_version whenever you compare two results.