Skip to content
MCP server
Registry

vouch-mcp MCP Server

Sign and verify W3C Verifiable Credentials so AI agents can cryptographically authorize actions.

vouch-mcp scores 70 (Good), licensed Apache-2.0 and written in Python. It installs as a local process. It does not declare tools yet. Filed under Uncategorized. GitHub shows 27 stars. Package registries report about 20 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by vouch-protocolApache-2.0Python27 stars
Trust score
70Good
Trust score 70 of 100, Good

Good trust

70 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 70 comes from

22 + 20 + 7 + 10 + 4 + 7 = 70. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity7 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 7 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "vouch-protocol-vouch": {      "command": "uvx",      "args": [        "vouch-mcp-signer"      ],      "env": {        "VOUCH_KEY": "YOUR_VOUCH_KEY",        "VOUCH_DID": "",        "VOUCH_MCP_TRANSPORT": "",        "VOUCH_MCP_HOST": "",        "VOUCH_MCP_PORT": ""      }    }  }}

Environment variables

NameRequiredNotes
VOUCH_KEYSecretOptionalWhere the agent's signing key is: a key file, keyring:<did>, or the key itself. Held only in this server process. Unset, the identity saved by `vouch init` is used.
VOUCH_DIDOptionalThe agent's DID, e.g. did:web:agent.example.com (needed when several identities are saved).
VOUCH_MCP_TRANSPORTOptionalTransport to serve: 'stdio' (default), 'http' (Streamable HTTP), or 'sse'.
VOUCH_MCP_HOSTOptionalBind host when VOUCH_MCP_TRANSPORT=http (default 127.0.0.1).
VOUCH_MCP_PORTOptionalBind port when VOUCH_MCP_TRANSPORT=http (default 8080).

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Vouch Protocol™

Vouch Protocol™ is a common-law trademark.


Quick Start

# Install (Linux and macOS). On Windows, use: pip install vouch-protocol
curl -fsSL https://vouch-protocol.org/install.sh | sh

# Run vouch with no arguments and pick what you want to do
vouch

Prefer to do it by hand? It is three commands:

pip install vouch-protocol

# One command to configure SSH signing + Vouch Protocol branding
vouch git init

# All future commits are now signed. GitHub shows ✅ Verified once the signing key
# is uploaded to your account (the command does it with the gh CLI when you have
# it, otherwise it opens the page and shows the key to paste)
git commit -m "Secure commit"

Setting up an agent instead of git signing? vouch onboard --quick makes a working identity, a vouch-policy.json, a verifier and a heartbeat setup in one command.


What Vouch Protocol is

The Open Standard for AI Agent Identity & Accountability

When Anthropic launched MCP, they solved "how agents call tools." They didn't solve "how we TRUST those agents."

Vouch Protocol is the SSL certificate for AI agents.

Vouch Protocol is not one tool, it is a set of them. Here is the whole map.

On the command line

  • vouch init makes an agent identity (a DID, an Ed25519 key and a post-quantum key). On its own it makes a did:key, which needs nothing hosted. --domain makes a did:web, whose DID document vouch did-document prints. vouch whoami prints the saved DID.
  • vouch sign / vouch verify sign a payload and verify it.
  • vouch policy init / vouch policy check write a starter vouch-policy.json and tell you every problem in one.
  • vouch sidecar runs the signing sidecar, which holds your agent's key so the model never has it. See the sidecar.
  • vouch validator runs a heartbeat validator: agents send a signed heartbeat at every interval and get back a short-lived session voucher.
  • vouch git signs every git commit cryptographically, set up in one command, with a verified badge for your README.
  • vouch run starts an agent inside a file-access fence on Linux: vouch run -- python agent.py. The kernel lets it reach its workspace and the paths you list, and keeps your keys out of its reach. See Fenced runs.
  • vouch scan finds leaked key material in your code before it ships (a private key in a file, a seed in an env var, a DID document that accidentally carries a private key).
  • vouch attribute separates who wrote which line. When an AI assistant and a human both edit a file, this records the AI's lines under the AI's own key and your lines under yours, so when a line causes an incident you can prove which of you wrote it. See the Claude Code integration.
  • vouch media signs images (with C2PA support) and runs the media server (vouch media serve).

For your agents

  • One guard for every receiving side. vouch.guard.Guard decides whether a call may run, and the MCP, FastAPI, Hasura, A2A, OpenAI and plain-function adapters are thin layers over it. It reads one policy file.
  • MCP signer (vouch-mcp-signer) a Model Context Protocol server so any MCP client (Claude Desktop, Cursor, any agent) can create an identity, sign and verify credentials, scan for leaked keys and decode DIDs, out of the box.
  • Signing sidecar keeps signing keys out of the model's context, so a prompt injection cannot read them.
  • Continuous trust heartbeats and session vouchers, so trust is a live signal that has to be renewed, not a badge that is issued once and trusted forever.
  • Authority freshness a signed authority state with a counter that only goes up, so a state change (a fraud signal, a suspended mandate) collapses the acceptable freshness window to now for a high-consequence action, even when time-decay trust still passes. See docs/authority-freshness.md.

Framework integrations

Each framework has an extra of the same name on the one package. Each one issues a credential for a tool call, with optional delegation back to a human principal.

  • vouch-protocol[langchain] signs each LangChain tool call, sync or async, before the tool runs.
  • vouch-protocol[langgraph] signs LangGraph tool calls and graph nodes, so a signed trail runs across the whole graph.
  • vouch-protocol[crewai] a CrewAI tool, with supervisor-to-worker delegation that can only narrow authority, never widen it.
  • vouch-protocol[a2a] binds an A2A (Agent2Agent) Agent Card to an identity, so two agents can verify each other before they collaborate.
  • vouch-protocol[openai] signs OpenAI function calls and checks them on the other side.
  • vouch-protocol[goose] registers the MCP signer as an extension for Block's Goose agent, so a Goose session can sign and verify out of the box.
  • vouch-protocol[mlflow] signs an MLflow model artifact at registration time, bound to a content digest so any change to the weights breaks the signature.
  • vouch-protocol[safetensors] embeds a credential in a .safetensors header, complementary to OpenSSF Model Signing, so a model carries who produced it.

SDKs, in the language you use

Python, TypeScript, and Go are the full reference implementations. A Rust core with idiomatic Swift, JVM (Java and Kotlin), .NET, and C wrappers shares one codebase, so every language produces byte-identical output, verified against shared test vectors. A WebAssembly build is included for the browser and the edge.

LanguageWhereWhat it is
Pythonpip install vouch-protocolThe reference implementation, the command line, the guards, the servers
TypeScript@vouch-protocol-official/sdkThe SDK, the guard engine, robotics, and the sidecar launcher
Gogo-sidecar/The signing sidecar, the signer and robotics packages
Rustcore/vouch-coreThe canonical crypto and decision code the bindings share
Swift, JVM, .NET, C++, WebAssemblysdks/, core/wasmWrappers over the Rust core

Robots and embodied agents

A robot is an agent with a body, so identity and accountability matter even more once it can cause physical harm. See Robots below.

Inside your AI tools

  • Claude Skill, OpenAI Custom GPT, and Gemini Gem packages that teach your AI assistant how to add Vouch Protocol to your code, running on your own AI subscription.

Media and the web

  • C2PA Content Credentials for images, with trust anchors you choose. See C2PA.
  • Vouch Sonic an audio watermark that carries provenance through sound.
  • Browser extension for Chrome and Edge that signs and verifies content on the page, through the signing sidecar.

For your repositories

  • Gatekeeper GitHub App verifies commit signatures on every pull request and blocks leaked keys before they merge.

For the ecosystem

  • Agent Trust Index an open benchmark that scans agents in the wild and measures how many can actually prove who they are. (Spoiler: today, almost none.)

Read the spec → | Join Discord →


The Problem

AI agents are making real-world API calls with ZERO cryptographic proof of:

  • WHO they are
  • WHAT they intended to do
  • WHEN they did it

Examples of the risk:

  • Healthcare AI accesses patient data → HIPAA violation risk
  • Financial AI makes unauthorized trades → Liability nightmare
  • Customer service AI leaks data → Compliance failure

Current solutions:

  • DIY JWT signing → No agent-specific features, security mistakes easy
  • Nothing → Most people just YOLO it and hope for the best

The Solution

Vouch Protocol provides cryptographic identity for AI agents, modeled after SSL/TLS:

  • Verifiable Credentials (VC Data Model 2.0)
  • Data Integrity proofs (eddsa-jcs-2022 cryptosuite, no JOSE/JWS dependency)
  • Decentralized Identifiers (did:web, did:webvh, did:key)
  • Multikey verification methods (algorithm-agnostic, post-quantum ready)
  • Post-quantum profile (optional proof set: eddsa-jcs-2022 + mldsa44-jcs-2024)
  • Human-readable JSON (proof attaches as a sibling object, no Base64-wrapped opaque payload)
  • Framework-agnostic (works with MCP, LangChain, CrewAI, AutoGPT, AutoGen, Vertex AI)
  • Cross-language interop (Python, TypeScript, Go, byte-identical canonical form)
  • Open source (Apache 2.0 license, with a public portfolio of defensive prior-art disclosures)

Think of it as:

  • SSL certificate = Proves website identity
  • Vouch Protocol = Proves AI agent identity

How It Works

The Workflow

flowchart LR
  P["👤 Principal<br/>did:web:user.example.com"]
  A["🤖 AI Agent<br/>did:web:agent.example.com<br/>+ Signing Sidecar"]
  C["📄 Vouch Protocol credential<br/>VC + Data Integrity<br/>(eddsa-jcs-2022)"]
  API["🔐 API Endpoint<br/>Guard + vouch-policy.json"]
  V{"✅ Allowed"}

  P -->|"Delegation VC"| A
  A -->|"sign(intent)"| C
  C -->|"Vouch-Credential<br/>header"| API
  API -->|"guard.check()"| V

4 Simple Steps:

  1. Generate Identity: vouch init makes an Ed25519 keypair and a DID. A did:key needs nothing hosted. For a did:web, publish a DID Document listing the key (#key-1 for Ed25519, plus #key-2 as a Multikey for ML-DSA-44 when you add the post-quantum key).
  2. Sign Action: The agent (or its sidecar) issues a Verifiable Credential carrying action, target, and resource, secured by an eddsa-jcs-2022 Data Integrity proof.
  3. Send to API: Send the credential in the Vouch-Credential request header (or in the _meta of an MCP call).
  4. Guard: The API resolves the issuer's DID, validates the proof, checks the time window, that the credential names exactly this call, that the issuer is trusted and that the policy's rules allow it, and marks the credential used so it cannot be replayed.

The Trust Model

flowchart TB
  subgraph IDENTITY["Identity Layer"]
    DID["DID<br/>did:web / did:webvh / did:key"]
    MK["Multikey<br/>algorithm-agnostic key encoding"]
  end
  subgraph FORMAT["Credential Layer"]
    VC["Verifiable Credential<br/>(VC Data Model 2.0)"]
    INTENT["Intent payload<br/>action · target · resource"]
  end
  subgraph CRYPTO["Cryptographic Proof"]
    JCS["JCS canonicalization (RFC 8785)"]
    DEFAULT["eddsa-jcs-2022<br/>(Ed25519, default)"]
    PQ["mldsa44-jcs-2024<br/>(ML-DSA-44, optional second proof)"]
  end
  IDENTITY --> FORMAT
  FORMAT --> CRYPTO
  JCS --> DEFAULT
  JCS --> PQ

Trust = Verifiable Credentials + Data Integrity + Decentralized Identifiers + Multikey, with an optional post-quantum proof set. The same math that secures SSL/TLS, plus the standardized primitives that secure verifiable credentials elsewhere on the web, applied to AI agents.


Why Vouch Protocol?

vs. DIY JWT

FeatureVouch ProtocolDIY JWT
Agent-specific✅ (designed for agents)❌ (generic)
MCP integration✅ (native)❌ (manual)
Framework integrations✅ (LangChain, CrewAI, etc.)❌
Audit trail format✅ (VC standardized)❌ (custom)
standards-aligned✅ (eddsa-jcs-2022 Data Integrity)❌
Multikey verification methods✅ (algorithm-agnostic)❌
Post-quantum signatures✅ (mldsa44-jcs-2024 proof set)❌
Cross-implementation interop tests✅ (Python, TypeScript, Go)❌
Security best practices✅ (built-in)⚠️ (easy to mess up)

Install

One package, with an extra for each thing you want on top:

pip install vouch-protocol                       # the core: identity, signing, verifying, guards, heartbeats
pip install "vouch-protocol[mcp,fastapi]"        # more than one extra at once
pip install "vouch-protocol[all]"                # every extra except openvla and dev

import vouch loads in a few milliseconds and pulls in only the names most programs need. Everything else is at its full module path (vouch.heartbeat.canary, vouch.profiles.robotics), and loads when you import it.

ExtraAdds
mcp, fastapi, hasuraThe guard for MCP servers, FastAPI and Starlette routes, and the Hasura auth webhook
mcp-signerThe MCP signer server (vouch mcp-signer, vouch-mcp-signer)
validatorThe heartbeat validator service (vouch validator)
sidecarThe Python launcher and client for the Go sidecar (no extra packages)
media, media-serverC2PA and native image signing, and the media server (vouch media serve)
robotics, pacing, budgets, reputation, reasoning, transportThe opt-in profiles under vouch.profiles
langchain, langgraph, crewai, autogen, openai, a2a, goose, adk, vertex, n8n, mlflow, safetensors, streamlitThe framework signers under vouch.integrations
yaml, redis, metrics, tracing, aws, gcpYAML policy files, a shared replay store, Prometheus and OpenTelemetry, and cloud keys

A guard or server that needs an extra you have not installed stops with the exact pip install "vouch-protocol[<extra>]" line.


Sign, verify and guard

1. Make an identity

vouch init -y          # makes a did:key: nothing to host, anyone can verify it offline
vouch whoami           # prints its DID

The identity is saved in ~/.vouch/keys, and the commands below find it there. For an identity on your own domain, run vouch init --domain agent.example.org, then host the file that vouch did-document --out did.json writes at https://agent.example.org/.well-known/did.json.

vouch init also writes the identity as a key file in ~/.vouch/keyfiles and prints its path, so VOUCH_KEY=<that file> signs as the same identity on another machine or in a container (an identity locked with a passphrase gets no key file). Older key files convert once with vouch keys convert <file> --out <new file>.

On a server, name the key with VOUCH_KEY instead: a key file, keyring:<did>, kms:aws:<key> or kms:gcp:<key version>, the key itself, or ephemeral for a throwaway key while you try things out. VOUCH_DID picks the identity when more than one is saved, and VOUCH_KEY_PASSPHRASE unlocks an encrypted key file.

2. Sign an action (agent side)

From the command line:

vouch sign '{"action":"read_database","target":"users_table","resource":"https://api.example.org/v1/users"}' --json > credential.json

Or from Python, with the identity you just saved:

import json
from vouch.autosign import resolve_signer

signer = resolve_signer()   # the identity `vouch init` saved, or the one VOUCH_KEY names

credential = signer.sign(
  action='read_database',
  target='users_table',
  resource='https://api.example.org/v1/users',
)
print(json.dumps(credential)[:80])

To sign every tool call an agent makes, with no wiring and nothing for the model to remember:

from vouch import sign_tools, current_credential

def search(query: str) -> str:
  return "results for " + query

tools = sign_tools([search])     # each call is signed before the tool runs
tools[0]("vouch protocol")
print(current_credential()["issuer"])

3. Check it (service side)

From the command line:

vouch verify credential.json

From Python:

import vouch

is_valid, passport = vouch.verify(credential)
# A did:key issuer needs no lookup. A did:web issuer is resolved from its
# DID document. Pass public_key=... to check against a key you already hold.
print(is_valid, passport.intent)

A verifier accepts each credential once, so that a copied credential cannot be replayed. Verifying the same credential a second time in a demo returns (False, None). To check it again while you experiment, pass replay_store=False: vouch.verify(credential, replay_store=False). The vouch verify command checks one credential and does not remember it from one run to the next, so it accepts the same credential again. vouch.verify remembers each credential it accepted for as long as the process runs, and a guard can share its memory across processes and replicas (VOUCH_REPLAY_STORE).

4. Guard a service with a policy

A service that acts on credentials reads one file, vouch-policy.json: who may call, how long a credential may live, and what each caller may do.

vouch policy init       # writes a starter vouch-policy.json
vouch policy check      # prints every problem in it, one per line, each with its place in the file

A small one, with the DID from vouch whoami in place of the placeholder:

{
  "version": 1,
  "target": "payments",
  "trust": { "issuers": ["did:key:z6Mk..."] },
  "rules": [
    {
      "did": "did:key:z6Mk...",
      "allow": [{ "action": "pay", "resource": "invoice/*" }]
    }
  ]
}

Then one guard decides every call, and a thin adapter puts it in front of your framework. Each credential must name exactly this call (its action, this service as the target, and the call's resource), come from a trusted issuer, live no longer than the policy allows, and be unused. It is marked used only after every other check passes.

import vouch
from vouch.guard import Guard, Refused, require

guard = Guard(vouch.load_policy())      # ./vouch-policy.json, or the file VOUCH_POLICY names

@require(guard, resource=lambda args: args["invoice"])
def pay(invoice: str) -> str:
  return "paid " + invoice

pay("invoice/42", credential=credential_for_this_call)   # runs

A refusal raises Refused, whose .decision says why (credential already used, no matching rule, untrusted issuer, and so on), and the function body never runs.

Every receiving side has the same shape:

# FastAPI and Starlette routes (pip install "vouch-protocol[fastapi]")
from typing import Annotated, Any
from fastapi import Depends, FastAPI
from vouch.guard.fastapi import RouteGuard

app = FastAPI()
route_guard = RouteGuard(guard)

@app.get("/reports")
async def reports(passport: Annotated[Any, Depends(route_guard(action="read"))]):
  return {"agent": passport.sub}
# The credential comes in the Vouch-Credential header. Its resource is the request:
# what vouch.guard.http_resource returns for it (the method and the URL, and for a
# method with a body, a hash of the body), so the agent signs that same string.
# MCP servers (pip install "vouch-protocol[mcp]"): every tool is guarded by default
from vouch.guard.mcp import FastMCP

mcp = FastMCP("payments")            # reads vouch-policy.json, or takes policy= or guard=

@mcp.tool(resource=lambda args: args["invoice"])
def pay_invoice(invoice: str) -> str:
  return "paid " + invoice
# The credential travels in the call's _meta. A client that cannot set _meta passes it in
# the tool's `credential` argument instead, as the credential's JSON in a string.
# Already have a server? vouch.guard.mcp.guard_server(server, guard=guard) guards its tool calls.
# The Hasura auth webhook (pip install "vouch-protocol[hasura]")
from vouch.guard.hasura import HasuraWebhook

webhook = HasuraWebhook(guard, resource="https://hasura.example.com/v1/graphql")
allowed, session_variables = webhook.authenticate({"Vouch-Credential": credential_json})
# OpenAI tool calls
from vouch.guard.openai import check_tool_call

decision = check_tool_call(guard, tool_call, credential)
if not decision.allowed:
  print(decision.reason)
# A2A Agent Cards
from vouch.guard.a2a import check_agent_card

decision = check_agent_card(guard, signed_card)

For TypeScript, the same engine ships in the SDK (Guard, checkRequest, requireGuard), and @vouch-protocol-official/mcp-guard is the thin adapter for MCP servers.

5. Keep trust live with a heartbeat validator

A validator takes a signed heartbeat from an agent at every interval and answers with a short-lived session voucher. It reads the heartbeat.validator section of its policy: agents lists the agents it accepts, and requireAudience (on by default) means a heartbeat must name this validator. Put your agent's DID from vouch whoami in validator-policy.json:

{
  "version": 1,
  "heartbeat": {
    "validator": {
      "agents": ["did:key:z6Mk..."],
      "requireAudience": true
    }
  }
}
pip install "vouch-protocol[validator]"
vouch validator --dev --did did:web:localhost --policy validator-policy.json   # a local trial on 127.0.0.1:8088

The agent sends its heartbeat over HTTP:

import httpx
from vouch.autosign import resolve_signer
from vouch.heartbeat.session import HeartbeatSession

agent = resolve_signer()                      # the identity `vouch init` saved
session = HeartbeatSession(
  subject_did=agent.did,
  signer=agent,
  audience="did:web:localhost",               # the validator's DID: GET /healthz names it
)
beat = session.build_request()
answer = httpx.post("http://127.0.0.1:8088/heartbeat", json=beat.to_dict())
print(answer.status_code, answer.json()["ok"])  # 200 True, with a signed session voucher

vouch.heartbeat.scheduler.HeartbeatScheduler sends one at every interval and resends when a send fails.


One policy file

vouch-policy.json is the one place a guard, the MCP signer, the validator and the sidecar read their settings. Each section is optional, and each component checks that the sections it needs are there.

SectionWhat it holds
targetThe service name a credential must carry
trustWho may call: issuers, pinned keys, delegation roots, acceptDelegates
credentialHow long a credential may live (maxLifetime, 1 hour by default), its size, clock skew, post-quantum requirement
checksRevocation, delegation chains, and whether a resource is required
rulesWhat each caller (a DID, or "*") may do: action, target and resource patterns, with an optional consequence tier
freshnessHow live trust must be per tier: a session voucher, a trust threshold, authority freshness
networkThe replay store, the hosts and origins a server answers, and DID resolution
heartbeatThe validators a guard trusts, and the validator's own settings
signingWhat the signers will sign: default and maximum validity, the post-quantum proof, consent

A policy that does not load stops the component, and it prints every problem, one per line, with the file and the place in it. A JSON Schema ships in the package and at schemas/vouch-policy-1.json. JSON is read everywhere. YAML is read too in Python and TypeScript (pip install "vouch-protocol[yaml]").

The environment names only the things a file should not hold:

SettingMeaning
VOUCH_POLICYThe policy file
VOUCH_KEY, VOUCH_KEY_PASSPHRASE, VOUCH_DIDThe signing key, its passphrase and which identity to use
VOUCH_DIRVouch Protocol's own folder (default ~/.vouch)
VOUCH_REPLAY_STOREA shared store for used credentials, such as redis://...
VOUCH_SIDECAR_HOST, VOUCH_SIDECAR_PORT, VOUCH_SIDECAR_TOKENThe sidecar's address and the token its callers send
VOUCH_MCP_TRANSPORT, VOUCH_MCP_HOST, VOUCH_MCP_PORTThe MCP signer server's transport and address
VOUCH_VALIDATOR_HOST, VOUCH_VALIDATOR_PORT, VOUCH_VALIDATOR_REVOKE_TOKEN, VOUCH_VALIDATOR_DATA_DIRThe validator's address, its /revoke credential and its data folder
VOUCH_MEDIA_HOST, VOUCH_MEDIA_PORT, VOUCH_MEDIA_TOKENThe media server's address and token

The command-line tools also keep a personal policy in $VOUCH_DIR/policy.json. vouch trust <did or domain> adds a delegation starting point to it, and only the command-line tools read it. A guard or library verifier never reads anything it was not handed.


Heartbeats and session chains

A credential says who an agent was when it signed. A heartbeat says it is still there. The agent sends a small signed heartbeat at every interval. A validator checks its signature, its place in the sequence and a chain of commit-and-reveal canary values, and answers with a short-lived session voucher. Trust decays with time and is renewed only by a live, in-order agent.

import base64
import json
from datetime import datetime, timezone

import vouch
from vouch.autosign import resolve_signer
from vouch.credential import sign_session_voucher
from vouch.crypto import multikey
from vouch.heartbeat.lineage import AgentLineageStore
from vouch.heartbeat.session import HeartbeatSession
from vouch.heartbeat.trust import compute_trust_at
from vouch.heartbeat.validator import HeartbeatValidator

agent = resolve_signer()

# A validator is an identity of its own. For a local trial, make a throwaway did:key.
keys = vouch.generate_identity()
raw = base64.urlsafe_b64decode(json.loads(keys.public_key_jwk)["x"] + "==")
validator_signer = vouch.Signer(
  private_key=keys.private_key_jwk, did="did:key:" + multikey.encode_ed25519_public(raw)
)
validator = HeartbeatValidator(
  validator_did=validator_signer.did, interval_seconds=60, max_missed_intervals=2
)

# The agent keeps its session chain on disk, so a restart continues where it left off.
session = HeartbeatSession(
  subject_did=agent.did, signer=agent, lineage_store=AgentLineageStore(agent.did)
)

now = datetime.now(timezone.utc)
session.record_action(b"read:calendar")              # what the agent did since the last beat
beat = session.build_request(now=now)
result = validator.validate(beat.to_dict())
voucher = sign_session_voucher(result.session_voucher, validator_signer)
print(result.ok, round(compute_trust_at(voucher, now), 2))

In production the agent sends beat.to_dict() to a validator over HTTPS (HeartbeatScheduler calls your send function at every interval, resends a lost heartbeat and keeps the latest voucher), and the validator is vouch validator --policy vouch-policy.json (pip install "vouch-protocol[validator]"). It reads what it accepts from heartbeat.validator in the policy. For a local trial, set "heartbeat": {"validator": {"acceptAnyDidKey": true}} and run vouch validator --policy vouch-policy.json --dev --did did:web:localhost. A guard that wants a live session for a consequence tier names its validators and the tier in the same file:

{
  "heartbeat": { "trustedValidators": ["did:web:validator.example.com"] },
  "freshness": { "tiers": { "sensitive": { "requireSession": true, "trustThreshold": 0.8 } } }
}

Each new session names the one it follows, so a validator holds a chain per agent. Two sessions that follow the same session prove that a key was copied, and the validator freezes that key and shows a proof anyone can check. vouch init starts the chain at genesis when it makes an identity, AgentLineageStore keeps it on disk, and session.start_new_session() continues it. Running copies of one agent use replica identities, so each has its own chain under one grant.


The signing sidecar

The sidecar is one Go program. It holds the agent's key and signs what the agent is about to do, so a prompt-injected model has no key to leak. The agent asks it over HTTP on localhost, and the sidecar signs only what the policy's rules allow for its own DID.

vouch policy init                             # then add rules for the DID from `vouch whoami`
vouch sidecar --policy vouch-policy.json      # listens on 127.0.0.1:8877

vouch sidecar finds the Go binary and starts it with the flags you gave. The TypeScript SDK ships the same launcher (vouch-sidecar-ts). To get the binary:

go install github.com/vouch-protocol/vouch/go-sidecar/cmd/vouch-sidecar@latest
docker run ghcr.io/vouch-protocol/sidecar:latest        # or the container image

The sidecar will not start without a policy file. The policy's signing section sets the validity window, the post-quantum proof and consent, and its network section sets the browser origins and host names it answers. --key (or VOUCH_KEY) picks the key (a key file, keyring:<did>, kms:aws:<key>, kms:gcp:<key version>, or ephemeral), and VOUCH_SIDECAR_TOKEN is the bearer token callers send.

From Python:

import vouch
from vouch.servers.sidecar import SidecarClient

sidecar = SidecarClient()      # http://127.0.0.1:8877
credential = sidecar.sign({"action": "transfer", "target": "payments", "resource": "invoice/42"})
print(vouch.verify(credential, replay_store=False)[0])

An agent that holds a grant from a person or another agent passes it as parent_credential. The sidecar builds the delegation links itself and refuses anything outside the grant. The browser extension signs page content through the same sidecar, asking the person first when signing.consent says so.


Robots across languages

A robot is an agent with a body. The robotics profile ships capabilities on the same eddsa-jcs-2022 credentials as the rest of Vouch Protocol: hardware-rooted identity, model and config provenance, physical capability scopes, robot-to-robot trust handshakes, a black box and kill switch, perception provenance, and more, with disconnected-edge support for robots that cannot reach the network. A robot credential signed in any language verifies in every other, pinned by the shared vectors in test-vectors/robotics/.

LanguageWhere
Pythonvouch.profiles.robotics (pip install "vouch-protocol[robotics]")
TypeScriptpackages/sdk-ts/src/robotics
Gogo-sidecar/robotics
Rust, and through it Swift, JVM, .NET, C++, WebAssemblycore/vouch-core (robotics), wrapped in sdks/ and core/wasm
from vouch.autosign import resolve_signer
from vouch.profiles.robotics import PhysicalAction, build_physical_scope_credential, check_physical_action

operator = resolve_signer()

credential = build_physical_scope_credential(
  operator,
  subject_did="did:web:robot-7.example.com",
  max_force_n=100,
  max_speed_mps=2.0,
  max_speed_near_humans_mps=0.5,
  allowed_zones=["zone-A"],
  shift_windows=[{"start": "08:00", "end": "18:00"}],
)
scope = credential["credentialSubject"]["physicalScope"]

near_a_person = PhysicalAction(force_n=50, speed_mps=1.5, near_humans=True, zone="zone-A", time_hm="10:00")
print(check_physical_action(scope, near_a_person).reasons)   # ['near_humans speed_exceeded: 1.5 m/s > 0.5 m/s']

A robotics verifier trusts a did:key issuer only when you tell it which key or issuer to trust: pass the key, name the issuer in the verifier's trusted set, or pin the subject of a self-attestation. A handshake trust policy that names a domain trusts that domain only; name the path to trust a DID under it. See docs/robotics.md and the ROS 2 package.


C2PA Content Credentials

vouch media sign --c2pa signs an image with a C2PA manifest that also carries the signer's Vouch Protocol identity. Verification trusts only the certificate authorities you give it:

pip install "vouch-protocol[media]"

# Sign with a throwaway test certificate (development only) and keep its CA
vouch media sign photo.jpg --c2pa --save-test-ca test-ca.pem -o photo_signed.jpg -n "Demo Signer"

vouch media verify photo_signed.jpg --c2pa                                    # refused: the certificate chains to no trusted CA
vouch media verify photo_signed.jpg --c2pa --trust-anchors test-ca.pem        # trusted

In Python:

from vouch.profiles.media.c2pa import MediaVerifier

verifier = MediaVerifier(trust_anchors=open("test-ca.pem").read())
result = verifier.verify_image("photo_signed.jpg")
print(result.is_valid, result.signer_identity.display_name)

Nothing is trusted by default. To check manifests from real cameras and editing tools, pass the PEM file of the C2PA trust list as trust_anchors. The DID in the manifest counts as the signer only when a credential issued by that DID ties it to this file. A file whose manifest is stored somewhere else is refused, and nothing is fetched. For production signing, use a certificate from a CA on the C2PA trust list and run the media server (vouch media serve, pip install "vouch-protocol[media-server]"). See examples/c2pa.


Integrations

Works with all major AI frameworks out-of-the-box:

  • Model Context Protocol (MCP): a signer for Claude Desktop and Cursor, and a guard for MCP servers
  • LangChain: sign tool calls automatically
  • CrewAI: multi-agent identity management
  • AutoGPT: autonomous agent signing
  • AutoGen: Microsoft multi-agent framework
  • Google Vertex AI: sign function calls
  • Google ADK: native ADK tool integration
  • n8n: low-code agent workflows

See all integrations →


Enterprise Features

  • Key Rotation: automatic rotating keys for production
  • Voice AI Signing: sign audio frames in real-time
  • Cloud keys: Ed25519 keys in AWS KMS and Google Cloud KMS sign credentials, and the private key never leaves the service (VOUCH_KEY=kms:aws:<key> or kms:gcp:<key version>, for the sidecar and the Python signer). Azure Key Vault does not offer Ed25519 keys
  • Heartbeat validator service: vouch validator runs a heartbeat validator that renews agent sessions, with a container image and a Kubernetes manifest
  • Reputation Scoring: track agent behavior over time
  • Revocation Registry: revoke a single credential with a status list, or a whole DID with the registry
  • Redis Caching: production-scale verification, and one replay store shared by every replica (VOUCH_REPLAY_STORE=redis://...)
  • Post-Quantum Profile: an optional proof set carrying an eddsa-jcs-2022 proof and an mldsa44-jcs-2024 proof for regulated deployments aligning with NIST CNSA 2.0 / NSM-10 migration timelines

Post-Quantum Example

# Optional profile, bundled with `pip install vouch-protocol`
credential = signer.sign_hybrid(
  action='submit_clinical_finding',
  target='trial:NCT00000001',
  resource='https://fda-submissions.example.com/api/findings',
)
# The credential's `proof` is an array of two independent Data Integrity proofs,
# eddsa-jcs-2022 and mldsa44-jcs-2024, over the same document.
# Verification REQUIRES both to validate.

# A did:key carries only the Ed25519 key, so hand the verifier the ML-DSA-44
# key too. A did:web DID lists it in its DID document instead
# (`vouch did-document --post-quantum`).
ok, passport = vouch.verify(credential, mldsa44_public_key=signer.public_key_mldsa44())

What changed in 4.0

Release 4.0 is a simplification. The same protocol, with fewer ways to do each thing:

  • One guard engine (vouch.guard.Guard) behind every receiving side, instead of one per framework.
  • One policy file (vouch-policy.json) instead of a pile of environment variables and rule files.
  • One signing sidecar (the Go program), and one key variable (VOUCH_KEY).
  • One package with extras. import vouch gives 42 names, and everything else is at its full module path.

The CHANGELOG has the full list and an "Upgrading to 4.0" guide that maps every removed name to its replacement.


Use cases

  • Financial services. A signed, accountable record of every trade or transfer an agent makes.
  • Healthcare. An auditable trail for every access to patient data.
  • Customer service. Proof of which agent touched which customer record, and on whose authority.
  • Agent to agent. When one organization's agent calls another's, each can verify the other before acting.

See full examples →


Documentation


Community


Roadmap

v1.6 (current release)

  • Verifiable Credentials + Data Integrity (eddsa-jcs-2022 cryptosuite)
  • Multikey verification methods (algorithm-agnostic, multibase + multicodec)
  • Post-quantum profile (eddsa-jcs-2022 + mldsa44-jcs-2024 proof set, NIST CNSA 2.0 / NSM-10 aligned)
  • Three-language reference implementation (Python, TypeScript, Go) with byte-identical canonical form via RFC 8785 JCS, verified against shared test vectors
  • Specification drafted and submitted to the open standards group for incubation
  • More than 130 Prior Art Disclosures (defensive publications)
  • Identity Sidecar architecture (LLM-isolated keys)
  • Heartbeat Protocol with adaptive Trust Entropy
  • Resource-bound delegation chains with capability narrowing
  • MCP integration (Claude Desktop, Cursor)
  • Framework adapters (LangChain, CrewAI, AutoGPT, AutoGen, Vertex AI, Google ADK, n8n)
  • C2PA Content Credentials integration
  • Audio watermarking (Vouch Sonic, sub-band steganography)
  • DID-linked voice biometric enrollment
  • Browser extension (Chrome / Edge content signing)
  • GitHub App and Cloudflare Workers verification gateway

Next (v1.7 and beyond)

  • Independent third-party cryptographic security audit (Trail of Bits / NCC Group / Cure53)
  • Specification stabilization and external review
  • Algorithm Quorum verification (M-of-N cryptosuite diversity, per PAD-046)
  • Verifiable Delay Function rate-limiting for high-stakes agent actions (per PAD-047)
  • Cryptographic Weight Binding for model-intrinsic AI identity (per PAD-043)
  • Ephemeral ZK-State Channels for high-frequency agent-to-agent negotiation (per PAD-044)
  • Retrieval-anchored proof of non-hallucination (per PAD-045)
  • Standardized agent ledger metadata schema (per PAD-042)
  • Edge-first WASM + ONNX client-side processing
  • Hardware key support (YubiKey, TPM, Secure Enclave)
  • Native Rust implementation for edge and embedded deployments

View full roadmap and issue tracker →


License

Apache License 2.0: See LICENSE

You can use this freely in commercial and open-source projects.

The defensive prior-art disclosures in docs/disclosures are published to keep these methods free from patent capture. They are dedicated to the public domain under CC0 1.0 Universal, so anyone may copy, quote and build on them without asking.

The Vouch Protocol specification is being developed as a open standard submission via the open standards group. The implementation is also being proposed to the Linux Foundation's AI & Data Foundation.


Acknowledgments

Inspired by:

  • SSL/TLS (the gold standard for identity)
  • OAuth 2.0 (federated identity done right)
  • Verifiable Credentials (the future of digital identity)

Built by Ramprasad Gaddam (Twitter/X)


Contributing

Contributions welcome. See CONTRIBUTING.md. Looking for a place to start? Browse our good first issues, and open a ready-made dev environment with one click using the Open in GitHub Codespaces badge above.

Areas where help is most useful:

  • Additional framework integrations (Haystack, Semantic Kernel, LlamaIndex, others)
  • Cross-implementation interop test vectors (additional edge cases for JCS, VC, post-quantum proof sets)
  • Tutorials and worked examples for regulated-sector deployments
  • Independent security review and audit
  • Wrappers for more languages (Ruby, PHP, Dart, others)

Contributors

Thanks goes to these wonderful people. This section is maintained automatically by the all-contributors bot.


Star this repo if you find it useful.

Star on GitHub | Join Discord | Follow on X


Prior Art Disclosures

To ensure ecosystem freedom, we publish more than 130 defensive prior art disclosures covering novel methods across cryptographic identity, media provenance, voice biometrics, AI safety, post-quantum cryptography, AI coding assistant governance, and content authenticity. The first 55 are listed below. The full list is in docs/disclosures:

IDTitleCategory
PAD-001Cryptographic Agent IdentityIdentity
PAD-002Chain of Custody DelegationIdentity
PAD-003Identity Sidecar PatternArchitecture
PAD-004DOM-Traversing Signature MatchingVerification
PAD-005Detached Signature RecoveryVerification
PAD-006URL-Based Credential ChainingTrust
PAD-007Automated Provenance via Input TelemetryProvenance
PAD-008Hybrid Identity BootstrappingIdentity
PAD-009Unified Local Identity via Localhost BridgeArchitecture
PAD-010Context-Adaptive Semantic ConsentPrivacy
PAD-011Hierarchical Discovery ProtocolDiscovery
PAD-012Executable Usage Covenants in Media ManifestsMedia / Rights
PAD-013Air-Gapped Identity via Psychoacoustic SteganographyAudio
PAD-014Robust Acoustic Provenance via SteganographyAudio
PAD-015Ambient Witness Protocol (BLE Crowdsourcing)IoT / Provenance
PAD-016Dynamic Credential Renewal ("Heartbeat Protocol")Identity
PAD-017Cryptographic Proof of ReasoningAI Safety
PAD-018Model Lineage Provenance ("Birth Certificate Protocol")AI Safety
PAD-019Transparent Agent CommunicationAI Safety
PAD-020Capability Acquisition ContainmentAI Safety
PAD-021Graduated Autonomy via Inverse Capability ScalingAI Safety
PAD-022Agent Population GovernanceAI Safety
PAD-023Machine-Readable Content Usage Policies in Audio WatermarksAudio / Rights
PAD-024Temporal Perceptual Hashing for Video ProvenanceVideo
PAD-025Edge-First Content Provenance via Client-Side WASMArchitecture
PAD-026DID-Linked Voice Biometric EnrollmentVoice / Biometrics
PAD-027Shamir Secret Sharing of Biometric Enrollment DataRecovery / Biometrics
PAD-028Unified Cross-Modal Identity-Bound ProvenanceMulti-Modal / Identity
PAD-029Identity-Verified Communication ShieldElder Safety / Voice
PAD-030Zero-Knowledge Reputation PortabilityPrivacy / Trust
PAD-031Adversarial Provenance HoneypotsAdversarial Detection
PAD-032Cryptographic Mortality ProtocolIdentity Lifecycle
PAD-033ZK Proof Compression for Post-Quantum SignaturesPost-Quantum / ZKP
PAD-034Composite Threshold Aggregation for Swarm ConsensusPost-Quantum / Swarm
PAD-035Asynchronous Chunked Verification and Edge PQ SignaturesPost-Quantum / Edge
PAD-036Aggregated Reputation Scoring via Verifiable State ReceiptsTrust / Enterprise
PAD-037Cross-Protocol Agent Credential FederationIdentity / Enterprise
PAD-038Decentralized Agent Capability DiscoveryDiscovery / Multi-Agent
PAD-039Cross-Implementation Deterministic Multi-Party Trust State via JCSCross-Impl Determinism
PAD-040Hybrid Composite Signature Bound to Same Canonical Bytes (Ed25519 + ML-DSA-44)Post-Quantum / Hybrid
PAD-041Algorithm-Agnostic Verification Method Resolution via Multikey MulticodecVerification / Multikey
PAD-042Standardized Metadata Schema for AI Agent Ledger SignaturesMetadata / Audit
PAD-043Cryptographic Weight Binding for Model-Intrinsic AI IdentityAI Identity / Model
PAD-044Ephemeral ZK-State Channels for Agentic Layer 2 ScalabilityScalability / ZK
PAD-045Proof of Non-Hallucination via Cryptographic Retrieval AnchoringAI Safety / RAG
PAD-046Algorithm Quorum Verification via M-of-N Cryptosuite DiversityDefense in Depth
PAD-047Verifiable Delay Functions for Cryptographic Rate-LimitingAgent Containment
PAD-048Write-Only Async Context Ledger for LLM Coding AssistantsAI Coding / IP Protection
PAD-049Decoupled Semantic Policy Extraction via Passive Source MonitoringAI Coding / IP Protection
PAD-050Zero-Context Deterministic Egress InterceptionAI Coding / Egress Control
PAD-051Parallel Intent Extraction via Local Shadow ModelsAI Coding / Local-First
PAD-052UI State Sniffing for Closed-Box AI Coding ToolsAI Coding / Compatibility
PAD-053Time-Bounded Ephemeral Rules with Auto-ExpiryAI Coding / Lifetime
PAD-054Filesystem-Hierarchy Policy Inheritance for AI Coding WorkspacesAI Coding / Composition
PAD-055Cross-Session Policy Re-Anchoring via Pre-Flight Context ReplayAI Coding / Continuity

View all disclosures →

Frequently asked questions

What is vouch-mcp MCP Server?

Sign and verify W3C Verifiable Credentials so AI agents can cryptographically authorize actions.

How do I install vouch-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. vouch-mcp MCP Server runs locally from the PyPI package vouch-mcp-signer with the command uvx vouch-mcp-signer.

Is vouch-mcp MCP Server free and open source?

Yes. vouch-mcp MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does vouch-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for vouch-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is vouch-mcp MCP Server's trust score calculated?

vouch-mcp MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server