vouch-mcp
A Model Context Protocol (MCP) server that lets AI agents issue and verify Vouch Credentials, so every action an agent takes carries cryptographic proof of who authorized it.
MCP standardized how agents call tools. It does not say who is calling, or on
whose authority. vouch-mcp adds that layer: every authorized action carries
a W3C Verifiable Credential with an eddsa-jcs-2022 Data Integrity proof (or the
post-quantum hybrid profile), and any party can verify one over the same MCP
connection.
The key stays out of the model. MCP already runs this server in its own process, so the agent's private key lives here, never in the LLM's context. A prompt-injected model cannot exfiltrate a key it never holds.
When to use this vs vouch.autosign
Vouch gives you two front doors onto one signing primitive:
vouch.autosign(in-process, Python): wrap a tool withprotect([...])and every call is signed deterministically, before the tool runs, with no LLM cooperation. Best when your agent is Python and you want zero-effort, can't-forget signing.vouch-mcp(this package): the out-of-process, cross-language path. Any MCP client in any language callssign/verifyover the wire, and the key is isolated in the server process. Best for non-Python agents, key isolation, or exposing verification as a shared service.
Both call the same sign_intent core, so credentials are identical either way.
Install
pip install vouch-mcp # or: uvx vouch-mcp
This pulls in vouch-protocol[mcp], including the official MCP SDK. If you
install vouch-protocol itself instead, add the extra: pip install "vouch-protocol[mcp]".
The post-quantum profile is bundled, so there is nothing more to install for it.
Configure
The server signs as the identity vouch init -y saved in ~/.vouch/keys
(vouch whoami prints its DID), so for a local client there is nothing to set.
To pass a key in the environment instead, vouch init --env prints the saved
identity's key as VOUCH_DID and VOUCH_PRIVATE_KEY.
The server only signs what its rules allow. Point VOUCH_RULES at a Shield
rules file that lists this agent's DID and the actions it may take:
{
"version": 2,
"rules": [
{
"did": "did:key:z6Mk...",
"allow": [{"action": "read", "target": "calendar", "resource": "https://api.example.org/calendar"}]
}
],
"deny_default": true
}
Put the DID from vouch whoami in place of the placeholder. Without a rules
file, sign refuses every intent, and its answer tells you to set
VOUCH_RULES and shows a minimal rules file. When the rules file has no rules
for the server's DID, the answer names that DID and shows the entry to add. A
rules file written as YAML needs PyYAML (pip install pyyaml); JSON needs
nothing extra.
To check credentials from other issuers (check_revocation, and a credential
with a delegation chain in verify), name the issuers you trust in
VOUCH_TRUSTED_ISSUERS (comma separated) or the chain starting points in
VOUCH_TRUSTED_ROOTS.
Run
Local (stdio) for Claude Desktop, Cursor, and desktop agents:
VOUCH_RULES=rules.json vouch-mcp
Remote (Streamable HTTP) for hosted / networked deployments:
VOUCH_MCP_TRANSPORT=http VOUCH_MCP_HOST=0.0.0.0 VOUCH_MCP_PORT=8080 VOUCH_RULES=rules.json vouch-mcp
// Claude Desktop / Cursor MCP config
{
"mcpServers": {
"vouch": {
"command": "vouch-mcp",
"env": {
"VOUCH_RULES": "/path/to/rules.json"
}
}
}
}
Tools
| Tool | What it does |
|---|---|
sign(action, target, resource, post_quantum=False, valid_seconds=None) |
Issue a credential authorizing one action, bound to that exact resource, when the rules in VOUCH_RULES allow it (otherwise it returns a structured refusal). Pass valid_seconds to choose how long it stays valid. Set post_quantum=True for the post-quantum profile, which returns a proof set with an eddsa-jcs-2022 proof and an mldsa44-jcs-2024 proof. |
verify(credential_json, public_key=None) |
Verify a credential another agent or service presented. Any MCP client can verify without installing an SDK. A sub-grant (a credential that names its parent grant by digest) verifies on its own, and the answer adds "This is a sub-grant: verify it with its grant chain." Each short-lived credential (valid 12 hours or less) verifies once per server: the server remembers what it accepted until it expires, so a second check of the same credential answers "this credential was already used". |
create_session(purpose, valid_seconds, decay_lambda, initial_trust) |
Issue a trust-decaying session voucher (Heartbeat Protocol). |
check_revocation(credential_json) |
Check a credential's BitstringStatusList entry for an issuer this server trusts: it verifies the credential, then the status list its issuer signed. Answers ACTIVE, REVOKED, SUSPENDED, UNAVAILABLE, UNTRUSTED ISSUER, INVALID, or not individually revocable. |
get_identity() |
Return the agent's DID. |
evaluate_freshness(tier, snapshot_json=None, now_iso=None) |
Bounded-staleness revocation gate for offline/DTN use: decide if a last-synced revocation snapshot is fresh enough for the action's consequence tier, failing closed when too old. |
check_intent_freshness(credential_json, last_pulse, tier='high', escrow_public_key=None, public_key=None, now_iso=None) |
Event-triggered intent recheck: verify a reasoned action's signature, then decide if its seal is fresh for its tier. A sensitive action needs a seal an escrow witnessed (pass the escrow's key) after the last heartbeat boundary, so timing the gap between heartbeats does not help. |
verify_disconnected_edge(credential_json, public_key) |
Authenticate any disconnected-edge (DTN) credential type (freshness token, presence, ephemeris grant, revocation, bundle custody, …); returns its type and subject. |
scan(text) |
Scan text (a diff, log, message, or file) for leaked Ed25519/hybrid private keys, seed env vars, and DID documents that embed a private key, before it crosses a trust boundary. |
decode_did(key) |
Decode a did:key:z... identifier or bare Multikey and report its algorithm and public-key size, so you can confirm a peer's key is the algorithm you expect before trusting it. |
delegate(action, target, resource, to=None, valid_seconds=None, reputation_score=None, parent=None) |
Issue a narrowed sub-delegation grant to a worker agent; every action it signs chains under the grant and can only narrow the authority, never widen it (Spec §9.3). Pass parent (the JSON of a grant, or of a grant chain, root first, that this identity was handed) with to to pass authority on: the result is the grant chain to hand to the worker. |
check_action(action, target, resource, did) |
Decide whether a DID may take one action on one resource under the rules in VOUCH_RULES. This is the authorization gate Vouch Shield applies before a tool runs. Answers ALLOW or DENY with a stable reason. |
check_trust(voucher_json, threshold=0.5, now_iso=None) |
Recompute a session voucher's current trust after decay (Trust Entropy) and compare it to the threshold the action requires; refuse when trust has fallen too far. |
disclose_ai_origin(content_hash, content_ref=None) |
Sign a Vouch Credential attesting this agent produced the content at content_hash, so downstream parties verify the AI-origin claim instead of trusting an unsigned label. |
create_authority_state(authority_epoch, status="active", valid_seconds=300, subject_did=None) |
Publish this authority's current state as a signed credential carrying a monotonic authorityEpoch and a status (active, suspended, incident, exposure_breached, revoked). Bump the epoch on every authority-relevant transition. |
verify_authority_state(credential_json, public_key) |
Verify an AuthorityState credential another authority published and report its epoch and status, which is what a verifier records as the highest epoch it has seen. |
check_authority_freshness(tier, voucher_epoch=None, last_seen_epoch=None, current_status=None, live_cosign_ok=False) |
Authority Freshness gate: refuse a session voucher minted under an epoch older than the highest one this verifier has seen, even when its time-decay trust still passes. routine is time-decay only, sensitive applies the epoch rule locally, critical also requires a live M-of-N quorum co-sign whose outcome you pass in. |
reputation(did, events_json) |
Compute an agent's reputation score and success rate from a history of recorded outcomes, to weigh how much to trust a peer with a track record. |
attribute(manifest_json, path=None) |
Attribute authorship from a signed attribution manifest: a whole-manifest human/AI/pre-existing split, or per-line blame for one file. |
Why verify matters
Signing proves you acted. Verifying is how everyone else benefits: any MCP-capable agent, in any framework, can confirm another agent's credential with a single tool call and no SDK. That is what turns Vouch Protocol from a per-app library into an interoperable trust layer.
Verifying without a key
verify checks the cryptographic signature, so a credential that only looks
well-formed will not pass. When you do not pass a key, it resolves the issuer's
key from the credential's DID: did:key is
self-certifying and resolves offline, while did:web is fetched over HTTPS from
the issuer's own domain. If the key cannot be resolved, the credential is
rejected. To verify fully offline, pass the issuer's key as public_key.
Registry
This package ships a server.json manifest for the MCP registry, so it can be
discovered and installed like any other MCP server.
License
Apache-2.0.
MCP registry
This server is listed in the Model Context Protocol registry.
mcp-name: io.github.vouch-protocol/vouch-mcp
Metadata
Release files for vouch-mcp 3.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vouch_mcp-3.3.0.tar.gz | 13.4 kB | With provenance | Details for vouch_mcp-3.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vouch_mcp-3.3.0-py3-none-any.whl | Python 3 | none | any | Details for vouch_mcp-3.3.0-py3-none-any.whl |
Total release size: 19.9 kB
Release files / vouch_mcp-3.3.0.tar.gz
| Download URL | vouch_mcp-3.3.0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7abda84010529cff7dd5e15fe4d4a45197499c1656dc63a41c341ffa9cf55282
|
|
BLAKE2b-256 checksum How to use checksums |
baf3189e4abbe9d9e7f2fadb9db32ed710ec793d60af04a8d6144ad0b36c1820
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / vouch_mcp-3.3.0-py3-none-any.whl
| Download URL | vouch_mcp-3.3.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce1fe4f1d7a7220e923c4968ad2d25c39861116a17930d4f10778c91afc76230
|
|
BLAKE2b-256 checksum How to use checksums |
7bc9883d3d63039fba2e377aeedadae671189a0681d54540c34d252bfdf65179
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for vouch-mcp 3.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for vouch_mcp-3.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.