Skip to main content

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_KEY the agent's private key (JWK JSON string).
  • VOUCH_DID the 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vouch_mcp-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for vouch_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47992e489e820650ab2c43df7bc88c91162f482fdd9be0b491a186073fe52999
MD5 7491b86ef98dd4e885d09e4a94b72274
BLAKE2b-256 4c150feedbec9a8307f198cf9b74496a1e7be3207bedac39d8fe92381f724770

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page