Skip to main content

Model Context Protocol server that issues and verifies Vouch Credentials to authorize AI agent tool calls.

Project description

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 with protect([...]) 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 calls sign / verify over 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. For the post-quantum profile, install pip install 'vouch-protocol[mcp,pq]'.

Configure

from vouch import generate_identity
kp = generate_identity("agent.example.com")
print(kp.did)               # did:web:agent.example.com
print(kp.private_key_jwk)   # set as VOUCH_PRIVATE_KEY

Run

Local (stdio) for Claude Desktop, Cursor, and desktop agents:

VOUCH_PRIVATE_KEY='...' VOUCH_DID='did:web:agent.example.com' 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_PRIVATE_KEY='...' VOUCH_DID='did:web:agent.example.com' vouch-mcp
// Claude Desktop / Cursor MCP config
{
  "mcpServers": {
    "vouch": {
      "command": "vouch-mcp",
      "env": {
        "VOUCH_DID": "did:web:agent.example.com",
        "VOUCH_PRIVATE_KEY": "<jwk-json-string>"
      }
    }
  }
}

Tools

Tool What it does
sign(action, target, resource, post_quantum=False) Issue a credential authorizing one action, bound to that exact resource. Set post_quantum=True for the hybrid-eddsa-mldsa44-jcs-2026 profile.
verify(credential_json, public_key=None) Verify a credential another agent or service presented. Any MCP client can verify without installing an SDK.
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: ACTIVE, REVOKED, or not individually revocable.
get_identity() Return the agent's DID.

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 from a per-app library into an interoperable trust layer.

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

Project details


Download files

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

Source Distribution

vouch_mcp-2.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

vouch_mcp-2.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file vouch_mcp-2.0.1.tar.gz.

File metadata

  • Download URL: vouch_mcp-2.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for vouch_mcp-2.0.1.tar.gz
Algorithm Hash digest
SHA256 4f033b4403022aff3648ab73b0f26ecddcd690e9bb9787ee0e28c0b132735681
MD5 646c58b1342c2c4e13bb80cc068ce4f7
BLAKE2b-256 b4719528011984203f869da4965f1cd31a0326a2f726c4279e49ae7471dad52c

See more details on using hashes here.

File details

Details for the file vouch_mcp-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: vouch_mcp-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.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-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fce20a2519dc142c384e7a56b8fbacfddb5624d88986d4f13723c05b51f8c4b
MD5 252dbe333afa0ccc598f1f6f4f507226
BLAKE2b-256 825f6a99ad118cca5aad55f637e7b737cc0874d588e6e331be94695fb3dfc90e

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