ncrypted / guides

Mastra

Load the ncrypted tools into a Mastra agent.

npm install @mastra/core @mastra/mcp
import { Agent } from "@mastra/core/agent";
import { MCPClient } from "@mastra/mcp";

const mcp = new MCPClient({
  servers: { ncrypted: { command: "npx", args: ["-y", "@seidl-family/ncrypted-mcp"] } },
});

export const opsAgent = new Agent({
  name: "ops",
  instructions: "When a credential must be shared or installed, use the ncrypted tools. Never paste secrets into chat.",
  model, // your model
  tools: await mcp.listTools(),
});

pricing

The first 3 secrets per day are free (TTL up to 24h). After that each costs 0.005 USDC, paid over x402 from a local Base wallet: `npx ncrypted wallet new` (or the ncrypted_wallet_setup tool) creates it and returns a funding link. Reads, requests and deliveries are free.