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

@verusidx/chain-mcp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verusidx/chain-mcp

Foundation MCP server — chain discovery, daemon management, health checks, raw transactions

latest
Source
npmnpm
Version
0.1.7
Version published
Maintainers
1
Created
Source

@verusidx/chain-mcp

Foundation MCP server for the Verus blockchain. Handles chain discovery, daemon management, health checks, and raw transaction operations. All other verusidx MCP servers depend on this one.

Setup

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

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

Alternative: local install. If you prefer a pinned version or offline use, install into a project directory with npm install @verusidx/chain-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 (verusd, stop, sendrawtransaction, signrawtransaction). Read tools and refresh_chains remain available.
VERUSIDX_DATA_DIROS defaultOverride the chain data directory for discovery. Defaults to ~/Library/Application Support/Komodo (macOS), ~/.komodo (Linux), %AppData%\Komodo (Windows).
VERUSIDX_EXTRA_CHAINSAdd remote daemons. Format: name:host:port:user:pass, comma-separated. Example: remote-vrsc:192.168.1.50:27486:rpcuser:rpcpass
VERUSIDX_BIN_PATHDirectory containing the verusd binary. If not set, searches PATH then OS-specific default locations.
VERUSIDX_AUDIT_LOGtrueSet to false to disable audit logging of write operations.
VERUSIDX_AUDIT_DIROS defaultCustom directory for audit log files. Defaults to ~/.config/verusidx-mcp/audit (Linux), ~/Library/Application Support/verusidx-mcp/audit (macOS).

Read-Only Mode

Set VERUSIDX_READ_ONLY=true to run in read-only mode. This is useful for monitoring, research, or exploration — no blockchain state can be modified. Write tools are not registered (they won't appear in the tool list). If a stale client attempts to call a write tool anyway, it receives a WRITE_DISABLED error.

You can set read-only mode independently per MCP server. For example, keep chain-mcp read-write (for refresh_chains and daemon management) while running send-mcp in read-only mode.

Tools

Always available

ToolDescription
getinfoGet blockchain and node info (version, block height, connections, sync status)
getwalletinfoGet wallet balances (confirmed, unconfirmed, immature, reserve currencies)
helpGet daemon documentation for any RPC command
getblockcountGet current block height (lightweight)
getcurrencyGet full definition and state of a currency (reserves, weights, prices, fees)
statusCheck registry freshness and daemon reachability
refresh_chainsRe-run chain discovery and rewrite the registry file

Write tools (disabled in read-only mode)

ToolDescription
stopStop a running daemon (terminates the process for ALL clients)
verusdStart a Verus daemon instance (spawns detached process)
sendrawtransactionBroadcast a signed raw transaction to the network
signrawtransactionSign inputs of a raw transaction (for multisig workflows)

Chain Registry

On first run, call refresh_chains to discover local chains. The server scans for .conf files in the chain data directory and PBaaS directory, checks which daemons are running, and writes a registry file (chains.json). All other verusidx MCP servers read this file to know what chains are available.

Every tool that talks to a daemon requires a chain parameter (e.g., "VRSC", "vrsctest"). There is no default chain — the agent or user always specifies which chain to operate on.

Audit Logging

All write operations (stop, verusd, sendrawtransaction, signrawtransaction, refresh_chains) 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
  • At least one Verus daemon installed (for verusd tool) or already 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