🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@verusidx/data-mcp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verusidx/data-mcp

MCP server for Verus on-chain data retrieval, decryption, signing, and verification

latest
Source
npmnpm
Version
0.1.7
Version published
Weekly downloads
21
-22.22%
Maintainers
1
Weekly downloads
 
Created
Source

@verusidx/data-mcp

MCP server for Verus on-chain data retrieval, decryption, signing, and verification. Completes the store-retrieve-decrypt pipeline that starts with sendcurrency:data (send-mcp), and provides signing/verification tools for off-chain data workflows.

Setup

Prerequisite: @verusidx/chain-mcp must be configured and refresh_chains called at least once so the chain registry exists.

Add to your MCP client config (e.g., Claude Code claude_desktop_config.json):

{
  "mcpServers": {
    "verusidx-data": {
      "command": "npx",
      "args": ["-y", "@verusidx/data-mcp"],
      "env": {}
    }
  }
}

Alternative: local install. If you prefer a pinned version or offline use, install into a project directory with npm install @verusidx/data-mcp (or pnpm add / yarn add) and point your config at the local path instead of using npx.

Environment Variables

VariableDefaultDescription
VERUSIDX_READ_ONLYfalseSet to true to disable write tools (z_importviewingkey). All other tools including signdata and verifysignature remain available.
VERUSIDX_AUDIT_LOGtrueSet to false to disable audit logging of write operations.
VERUSIDX_AUDIT_DIROS defaultCustom directory for audit log files.

Read-Only Mode

Set VERUSIDX_READ_ONLY=true to disable write tools. In read-only mode, 6 tools remain available:

  • z_listreceivedbyaddress — list data/transactions received at a z-address
  • decryptdata — decrypt on-chain data
  • z_exportviewingkey — export viewing key for read-only decryption access
  • z_viewtransaction — inspect shielded transaction details
  • signdata — sign data (does not modify chain or wallet state)
  • verifysignature — verify signatures (does not modify chain or wallet state)

Write tools (z_importviewingkey) are not registered and won't appear in the tool list.

You can set read-only mode independently per MCP server.

Tools

Always available (including read-only mode)

ToolDescription
z_listreceivedbyaddressList transactions and data received at a shielded address. Data txs have amount: 0 with a data descriptor in the memo.
decryptdataDecrypt on-chain data using a data descriptor, optional viewing key, and txid. Supports both z-address data and identity content.
z_exportviewingkeyExport the extended viewing key (EVK) for a z-address. Grants read-only decryption access.
z_viewtransactionView detailed shielded transaction information including spends, outputs, and memos.
signdataSign data with a VerusID or R-address. Supports message, file, hex, base64, hash, vdxfdata, and MMR inputs. Can encrypt to a z-address.
verifysignatureVerify a signature produced by signdata. Checks against identity keys at signing height or current keys.

Write tools (disabled in read-only mode)

ToolDescription
z_importviewingkeyImport a viewing key to enable decryption of data encrypted to another z-address.

Data Workflow

Store:     sendcurrency:data  (send-mcp)
              |
List:      z_listreceivedbyaddress  (data-mcp)
              |
Decrypt:   decryptdata + z_exportviewingkey  (data-mcp)

Sign:      signdata  (data-mcp)
Verify:    verifysignature  (data-mcp)

Share access: z_exportviewingkey -> z_importviewingkey  (data-mcp)

Retrieving encrypted data (step by step)

  • List received data — call z_listreceivedbyaddress with the z-address. Data transactions appear with amount: 0 and a memo containing the data descriptor.

  • Export viewing key (if needed) — call z_exportviewingkey to get the EVK. Skip this if the wallet already holds the z-address spending key.

  • Decrypt — call decryptdata with the data descriptor from step 1, the txid, retrieve: true, and the EVK from step 2. Returns hex-encoded decrypted content.

  • Decode — the objectdata field is hex. For text messages, decode hex to UTF-8.

Audit Logging

Write operations (z_importviewingkey) are logged to date-stamped JSONL files in the audit directory. Each entry records the tool name, chain, parameters, result, and success status. Logs are append-only with 0600 permissions.

Requirements

  • Node.js >= 18.0.0
  • @verusidx/chain-mcp installed and refresh_chains called (chain registry must exist)
  • At least one Verus daemon running for RPC tools

Keywords

verus

FAQs

Package last updated on 10 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts