Model Context Protocol server that issues Vouch Credentials to authorize AI agent tool calls.
Project description
vouch-mcp
A Model Context Protocol (MCP) server that issues Vouch Credentials so an AI agent can cryptographically authorize the actions it takes.
MCP standardized how agents call tools. It does not say who is calling, or on
whose authority. vouch-mcp adds that layer: every signed action carries a
W3C Verifiable Credential with an eddsa-jcs-2022 Data Integrity proof, and
optionally a delegation chain back to an accountable human principal.
Install
pip install vouch-mcp
This pulls in vouch-protocol[mcp], including the official MCP SDK.
Configure
The server reads two environment variables:
VOUCH_PRIVATE_KEYthe agent's private key (JWK JSON string).VOUCH_DIDthe agent's DID, e.g.did:web:agent.example.com.
Generate a development identity:
from vouch import generate_identity
kp = generate_identity()
print(kp.private_key_jwk) # set as VOUCH_PRIVATE_KEY
Run
VOUCH_PRIVATE_KEY='...' VOUCH_DID='did:web:agent.example.com' vouch-mcp
Register it with an MCP client (Claude Desktop, Cursor, ...) as an stdio server
running the vouch-mcp command.
Tools
| Tool | What it does |
|---|---|
sign_action(action, target, resource) |
Issue a credential authorizing one action. Returns compact JSON to attach as a Vouch-Credential header. |
create_session(purpose, valid_seconds) |
Issue a longer-lived credential covering multiple actions. |
get_identity() |
Return the agent's DID. |
Verify on the receiving side
from vouch import Verifier
ok, passport = Verifier.verify_credential(received_json, public_key=agent_pubkey)
License
Apache-2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vouch_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vouch_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47992e489e820650ab2c43df7bc88c91162f482fdd9be0b491a186073fe52999
|
|
| MD5 |
7491b86ef98dd4e885d09e4a94b72274
|
|
| BLAKE2b-256 |
4c150feedbec9a8307f198cf9b74496a1e7be3207bedac39d8fe92381f724770
|