New advertisers: 50% off your first month with code FIRSTMONTHSee slots
drvelvetfog avatar

Kaspa Script Tools

drvelvetfog/kaspa-script-mcp

Parses, prices, and explains Kaspa txscript hex without a running node or SDK dependency.

tools
4
transport
STDIO
last updated
Nov 17, 2026
View on GitHub

What it does

  • Parses hex with disassemble_script into opcodes and data pushes, flagging disabled, reserved, and truncated pushes
  • Estimates cost with estimate_script_cost, reporting script units, compute-mass grams, and the minimum per-input budget to commit
  • Explains txscript errors with explain_script_error and looks up opcodes by hex code or name with lookup_opcode
  • Runs locally over stdio with no network access or credentials; ZK per-input pricing is flagged as an estimate
  • Designed for developers sizing budgets before signing and debugging script failures on Kaspa's Toccata-era covenant layer

Tools

4 tools

Public tool metadata for what this MCP can expose to an agent.

disassemble_scripthex → opcodes + data pushes, the way the engine's parser walks it; flags disabled/reserved opcodes and truncated pushes.

hex → opcodes + data pushes, the way the engine's parser walks it; flags disabled/reserved opcodes and truncated pushes.

No parameter schema in public metadata yet.

estimate_script_costapproximate script units, compute-mass grams, share of the 500,000-gram block compute limit, and the minimum per-input compute budget to commit.

approximate script units, compute-mass grams, share of the 500,000-gram block compute limit, and the minimum per-input compute budget to commit.

No parameter schema in public metadata yet.

explain_script_errorplain-language explanation + fix for txscript errors (metering, stack, opcode, push-encoding, ZK integrity).

plain-language explanation + fix for txscript errors (metering, stack, opcode, push-encoding, ZK integrity).

No parameter schema in public metadata yet.

lookup_opcodeby hex code or name.

by hex code or name.

No parameter schema in public metadata yet.

Readme

kaspa-script-mcp

Kaspa Script Tools MCP server

An MCP server with tooling for Kaspa's Toccata-era script/covenant layer. Pure TypeScript, no node or SDK dependency at runtime — the opcode table and pricing constants are generated from rusty-kaspa v2.1.0 (commit 01b532e).

Tools

  • disassemble_script — hex → opcodes + data pushes, the way the engine's parser walks it; flags disabled/reserved opcodes and truncated pushes.
  • estimate_script_cost — approximate script units, compute-mass grams, share of the 500,000-gram block compute limit, and the minimum per-input compute budget to commit. Size a budget before signing to avoid ExceededCommittedScriptUnits.
  • explain_script_error — plain-language explanation + fix for txscript errors (metering, stack, opcode, push-encoding, ZK integrity).
  • lookup_opcode — by hex code or name.

Install

No build needed. Add it to your MCP client (Claude Code, Claude Desktop, Cursor, VS Code):

{ "mcpServers": { "kaspa-script": { "command": "npx", "args": ["-y", "kaspa-script-mcp"] } } }

View the full README on GitHub

Details

Repository
github.com/drvelvetfog/kaspa-script-mcp
Categories
Web3 & Crypto, Developer Tools
Package
kaspa-script-mcp
Transport
STDIO
Registry
MCP registry, active

More from drvelvetfog

All 2

Similar to Kaspa Script Tools

More Web3 & Crypto