mcpTreza MCP

npm versionarrow-up-right License: MITarrow-up-right

Model Context Protocol (MCP) server for Treza Enclaves. Lets AI agents manage hardware-isolated TEEs, verify cryptographic attestations, and interact with the Treza platform — all through natural tool calls.

Quick Start

With Claude Desktop / Cursor / Any MCP Client

Add to your MCP configuration:

{
  "mcpServers": {
    "treza": {
      "command": "npx",
      "args": ["@treza/mcp"],
      "env": {
        "TREZA_BASE_URL": "https://app.trezalabs.com"
      }
    }
  }
}

As a Standalone Server

Environment Variables

Variable
Default
Description

TREZA_BASE_URL

https://app.trezalabs.com

Treza Platform API URL

TREZA_TIMEOUT

30000

Request timeout in milliseconds

Available Tools

Enclave Management

Tool
Description

treza_list_enclaves

List all enclaves owned by a wallet address

treza_get_enclave

Get detailed info about a specific enclave

treza_create_enclave

Create a new AWS Nitro Enclave with hardware-isolated TEE

treza_update_enclave

Update enclave name, description, or config

treza_delete_enclave

Permanently delete a terminated enclave

treza_enclave_action

Pause, resume, or terminate an enclave

treza_get_enclave_logs

Retrieve logs filtered by source type

Attestation & Verification

Tool
Description

treza_get_attestation

Get attestation document with PCR measurements and certificate chain

treza_verify_attestation

Full cryptographic verification with compliance checks (SOC2, HIPAA, FIPS)

treza_get_verification_status

Quick trust level check

Platform

Tool
Description

treza_list_providers

List available enclave providers and regions

treza_get_provider

Get provider details and config schema

treza_list_tasks

List scheduled tasks

treza_create_task

Create a cron-scheduled task in an enclave

treza_list_api_keys

List scoped API keys

treza_create_api_key

Create a new API key with specific permissions

MCP Resources

The server also exposes browsable resources that give agents ambient context:

Resource URI
Description

treza://enclaves/{walletAddress}

All enclaves for a wallet

treza://enclaves/{enclaveId}/details

Full enclave details

treza://enclaves/{enclaveId}/attestation

Attestation document

treza://enclaves/{enclaveId}/verification

Verification status

Example Agent Interactions

An AI agent using the Treza MCP server can:

Architecture

Development

License

MIT

Readme

Last updated