Skip to main content
Glama

Web3 Tx Guard MCP (web3-tx-guard-mcp)

CI: Passing (Ubuntu + Windows) · Node.js >= 20 · MCP: stdio | Streamable HTTP | SSE · x402: Base USDC ($0.01/call) · License: MIT

Deterministic Pre-Flight Transaction, Calldata & EIP-712 Signature Security Guard for Web3, DeFi & Treasury AI Agents

AI agents holding USDC, ETH, SOL, BTC, USDT, or TON wallets face irreversible loss from a single corrupted checksum character, TON EQ vs UQ bounce trap, off-curve Solana PDA confusion, MAX_UINT256 / Permit2 unlimited token approval, amountOutMin == 0 MEV sandwich swap, or Seaport zero-consideration blind signature. web3-tx-guard-mcp provides sub-5ms, 100% deterministic cryptographic verification with zero external RPC or LLM API dependencies:

Tools

  • validate_multichain_address ($0.01 USDC / call): Cryptographically validates and normalizes addresses across 8 ecosystems:

    • EVM (Ethereum, Base, Arbitrum, Polygon, Optimism, BNB, Avalanche): Pure Keccak-256 EIP-55 mixed-case checksum verification (blocks character typos, normalizes unchecksummed lowercase/uppercase, flags 0x000...000 / 0x...dEaD / 0x01..0x0f precompile burn traps).

    • Tron (TRC-20): T... SHA-256d Base58Check (0x41 mainnet / 0xa0 testnet), outputs equivalent 0x... EVM address, blocks T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb burn address.

    • Bitcoin: BIP-173 Bech32 (bc1q SegWit v0 P2WPKH/P2WSH), BIP-350 Bech32m (bc1p Taproot v1 P2TR), and Legacy/P2SH Base58Check (1..., 3...) with strict witness-version encoding enforcement.

    • Solana: Base58 32-byte decode + mathematical Ed25519 Twisted Edwards curve check ($p = 2^{255}-19$) distinguishing user wallet public keys (isOnEd25519Curve: true) from off-curve Program Derived Addresses (PDA) and System/Incinerator burn IDs.

    • TON: Friendly EQ... / UQ... / kQ... / 0Q... CRC16-XMODEM verification + raw 0:<hex> conversion, warning when bounceable EQ... risks bouncing transfers to uninitialized wallets.

    • XRP Ledger: Classic r... Ripple-alphabet Base58Check + XLS-5d X... / T... X-Address decoder extracting the underlying classic r... account and destinationTag.

    • Cosmos SDK (cosmos1, noble1, osmo1, celestia1, inj1, sei1, dydx1, thor1) & Stacks (SP/SM/ST/SN c32check).

  • decode_and_audit_evm_calldata ($0.01 USDC / call): Decodes raw hex EVM calldata (to, value, data, chainId) across ERC-20, ERC-721/1155, Permit2, Uniswap V2/V3/UniversalRouter, 1inch, recursive Multicall, and Gnosis Safe execTransaction — blocking CRITICAL unlimited approvals (>= 2^255 / MAX_UINT160), setApprovalForAll(true), amountOutMin == 0 MEV sandwich exposure, payable-approval ETH traps, expired deadlines, and operation=1 DELEGATECALL takeovers.

  • audit_eip712_signature_payload ($0.01 USDC / call): Audits off-chain eth_signTypedData_v4 payloads (EIP-2612 Permit, DAI Permit, Permit2 PermitSingle/PermitBatch, Seaport OrderComponents, EIP-3009 x402 TransferWithAuthorization, ForwardRequest, SafeTx), computing the exact EIP-712 domainSeparator and catching zero-consideration NFT/token drains, unlimited gasless permits, multi-month signature expirations, and cross-chain chainId / verifyingContract spoofing.


Related MCP server: chain-signer

Quick Connect

1. Hosted x402 Streamable HTTP MCP (MCPize / Base USDC)

{
  "mcpServers": {
    "web3-tx-guard": {
      "type": "streamable-http",
      "url": "https://web3-tx-guard-mcp.mcpize.run/mcp"
    }
  }
}

2. Zero-Install Local stdio Mode (npx / Node 20+)

{
  "mcpServers": {
    "web3-tx-guard": {
      "command": "npx",
      "args": ["-y", "github:2848823170/web3-tx-guard-mcp"]
    }
  }
}

Glama MCP Directory — web3-tx-guard-mcp


中文快速上手(Web3 交易预检与防钓鱼签名卫士)

web3-tx-guard-mcp 为 AI Agent、量化脚本与多链金库提供零外部 API 依赖的确定性链上交易安全预检:

  1. validate_multichain_address:支持 EVM / Tron (TRC-20) / Bitcoin (Taproot & SegWit) / Solana (自动区分钱包公钥与链下 PDA) / TON (EQ/UQ 退回陷阱预警) / XRP (X-Address 标签解析) / Cosmos / Stacks 八大生态地址密码学校验与黑洞地址拦截。

  2. decode_and_audit_evm_calldata:离线解码原始十六进制 calldata(含嵌套 Multicall 与 Safe 多签),精准拦截无限授权(MAX_UINT256 / Permit2)、setApprovalForAll(true)、amountOutMin == 0 三明治夹子风险与恶意 DELEGATECALL。

  3. audit_eip712_signature_payload:在调用 eth_signTypedData_v4 前审计 Permit / Permit2 / Seaport / x402 EIP-3009 离线签名,防止零对价钓鱼盗币与跨链重放攻击。


Local Verification

npm ci
npm test

Available Tools

3 tools
audit_eip712_signature_payloadAudit Off-Chain EIP-712 Typed-Data Signature PayloadA
Read-onlyIdempotent

Audits off-chain eth_signTypedData_v4 JSON objects or strings (Permit, DAI Permit, PermitSingle, PermitBatch, PermitTransferFrom, Seaport OrderComponents, Circle USDC EIP-3009 TransferWithAuthorization / x402, ForwardRequest, SafeTx) before signing. Computes EIP-712 domainSeparator and flags unlimited allowances, Seaport zero-consideration NFT/token drains, DELEGATECALL meta-txs, multi-month/infinite signature expirations, and domain chainId/contract spoofing.

Inputs: typedData (required), expectedChainId, expectedMaxAmount, expectedRecipient, +2 more.

decode_and_audit_evm_calldataDecode & Audit Raw EVM Transaction CalldataA
Read-onlyIdempotent

Deterministically decodes raw hex EVM transaction payloads (to, value, data, chainId) across ERC-20 (transfer, approve, transferFrom, increaseAllowance), ERC-721/1155 (setApprovalForAll, safeTransferFrom), Permit2, Uniswap V2/V3/UniversalRouter, 1inch, Multicall (recursive inner-call decoding), and Gnosis Safe execTransaction. Flags CRITICAL unlimited approvals (>= 2^255 / MAX_UINT160), setApprovalForAll(true), zero-minOut MEV sandwich exposure, non-zero ETH sent with approvals, expired deadlines, and DELEGATECALL takeovers.

Inputs: data (required), to, value, sender, +2 more.

validate_multichain_addressValidate & Normalize Multichain Wallet AddressA
Read-onlyIdempotent

Cryptographically validates and normalizes wallet/contract addresses across 8 ecosystems: EVM (Keccak-256 EIP-55 checksum + typo/burn detection), Tron (T... SHA-256d Base58Check + 0x41/EVM conversion), Bitcoin (BIP-173 Bech32 bc1q SegWit v0, BIP-350 Bech32m bc1p Taproot v1+, Legacy/P2SH Base58Check), Solana (Base58 32-byte Ed25519 curve point check distinguishing user wallets from off-curve PDAs), TON (friendly EQ/UQ CRC16-XMODEM + bounceable uninitialized-wallet trap warning), XRP Ledger (classic r... + XLS-5d X-address destination-tag decoder), Cosmos Bech32, and Stacks c32check.

Inputs: address (required), chain, expectedNetwork.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 3 tools

    Disambiguation5/5

    The three tools target clearly distinct inputs: wallet/contract addresses, raw EVM calldata, and EIP-712 typed-data payloads. An agent can easily select the correct tool based on the artifact being audited.

    Naming Consistency4/5

    All names use snake_case and begin with action verbs, making them predictable. The compound verb in decode_and_audit_evm_calldata slightly breaks a strict verb_noun pattern, but the set remains highly readable.

    Tool Count5/5

    Three tools is a well-scoped set for a focused pre-signing transaction guard: address validation, calldata decoding/audit, and typed-data audit. Each tool covers a substantial, non-overlapping responsibility.

    Completeness4/5

    The tools cover the core EVM transaction-safety surfaces plus multichain address validation. Minor gaps remain around non-EVM transaction payload auditing and wallet-state approval scanning, but agents can still handle the main pre-signing workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Per-transaction crypto trade validator for AI agents, validates trades with PROCEED/CAUTION/BLOCK verdicts, scans tokens for anomalies, detects rug pulls, and searches across DEXes. Powered by WaveGuard physics engine with deterministic PDE-based analysis.
      5
      14 PyPI
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Non-custodial agent wallet with a transaction preflight that decodes an unsigned EVM tx and flags drain patterns (unlimited/large approval, approve-all, token & NFT transferFrom, proxy upgrade, on-chain permit, approvals hidden in multicall) before signing.
      9
      36 PyPI
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to run pre-sign risk checks on transactions, approvals, EIP-712 signatures, token addresses, wallet approvals, sanctions screening, and prompt-injection texts, returning green/orange/red verdicts with machine-readable reason codes before signing.
      1
      AGPL 3.0