New:Socket for Asana Is Now Available.Learn more
Get Started

@treza/mcp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@treza/mcp

Model Context Protocol server for Treza Enclaves — lets AI agents manage TEEs, verify attestations, redact PII, and sign transactions

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

@treza/mcp

npm version License: MIT

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

npm install -g @treza/mcp
treza-mcp

Environment Variables

VariableDefaultDescription
TREZA_BASE_URLhttps://app.trezalabs.comTreza Platform API URL
TREZA_TIMEOUT30000Request timeout in milliseconds
TREZA_API_KEYAPI key (treza_live_...) for authenticated tools like treza_redact_text and treza_pii_audit_query
TREZA_ACCOUNTOptional tenant account the API key belongs to

Available Tools

Enclave Management

ToolDescription
treza_list_enclavesList all enclaves owned by a wallet address
treza_get_enclaveGet detailed info about a specific enclave
treza_create_enclaveCreate a new AWS Nitro Enclave with hardware-isolated TEE
treza_update_enclaveUpdate enclave name, description, or config
treza_delete_enclavePermanently delete a terminated enclave
treza_enclave_actionPause, resume, or terminate an enclave
treza_get_enclave_logsRetrieve logs filtered by source type

Attestation & Verification

ToolDescription
treza_get_attestationGet attestation document with PCR measurements and certificate chain
treza_verify_attestationFull cryptographic verification with compliance checks (SOC2, HIPAA, FIPS)
treza_get_verification_statusQuick trust level check

Platform

ToolDescription
treza_list_providersList available enclave providers and regions
treza_get_providerGet provider details and config schema
treza_list_tasksList scheduled tasks
treza_create_taskCreate a cron-scheduled task in an enclave
treza_list_api_keysList scoped API keys
treza_create_api_keyCreate a new API key with specific permissions

PII & Redaction

ToolDescription
treza_redact_textRedact PII from a text string via the redaction enclave; returns redacted text, detected entities, and mode (requires TREZA_API_KEY with redact:run)
treza_redact_chat_completionsOpenAI-compatible chat completion with PII redacted before forwarding upstream; returns the provider response, request id, mode, and optional rehydration map (requires TREZA_API_KEY with redact:proxy)
treza_pii_scanHeuristically classify which fields in a JSON payload contain PII
treza_pii_workflow_checkAudit a workflow definition for where PII flows in, is stripped, or leaks
treza_pii_audit_queryQuery the PII audit log for past workflow runs (requires TREZA_API_KEY)

MCP Resources

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

Resource URIDescription
treza://enclaves/{walletAddress}All enclaves for a wallet
treza://enclaves/{enclaveId}/detailsFull enclave details
treza://enclaves/{enclaveId}/attestationAttestation document
treza://enclaves/{enclaveId}/verificationVerification status

Example Agent Interactions

An AI agent using the Treza MCP server can:

"Create me a Nitro Enclave in us-west-2 for my trading bot"
→ treza_create_enclave

"Is my enclave verified? What's the trust level?"
→ treza_verify_attestation

"Show me the last 20 error logs from my enclave"
→ treza_get_enclave_logs

"Pause my enclave to save costs while I'm not using it"
→ treza_enclave_action (pause)

Architecture

AI Agent (Claude, Cursor, etc.)
    │
    ▼
┌──────────────┐
│  @treza/mcp  │  ← MCP Server (this package)
│  16 tools    │
│  4 resources │
└──────┬───────┘
       │ HTTP
       ▼
┌──────────────────┐
│  Treza Platform  │  ← https://app.trezalabs.com
│  REST API        │
└──────┬───────────┘
       │
       ▼
┌──────────────────┐
│  AWS Nitro       │  ← Hardware-isolated TEEs
│  Enclaves        │
└──────────────────┘

Development

git clone https://github.com/treza-labs/treza-sdk.git
cd treza-sdk/packages/mcp
npm install
npm run build
npm start

License

MIT

Keywords

treza

FAQs

Package last updated on 19 Jun 2026

Related posts