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

@zerodust/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zerodust/mcp-server

MCP server that lets an AI agent sweep its own wallet to exactly zero on 25+ EVM chains, with no gas left stranded.

Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
107
-83.66%
Maintainers
1
Weekly downloads
 
Created
Source

@zerodust/mcp-server

Model Context Protocol (MCP) server for ZeroDust - sweep native gas tokens to exactly zero.

Installation

npm install -g @zerodust/mcp-server

Or run directly with npx:

npx @zerodust/mcp-server

Configuration

Claude Desktop

Add to your ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "zerodust": {
      "command": "npx",
      "args": ["@zerodust/mcp-server"]
    }
  }
}

Claude Code

Add to your .claude/settings.json:

{
  "mcpServers": {
    "zerodust": {
      "command": "npx",
      "args": ["@zerodust/mcp-server"]
    }
  }
}

Environment Variables

VariableDescriptionDefault
ZERODUST_API_URLCustom API URLhttps://api.zerodust.xyz
ZERODUST_API_KEYAPI key for higher rate limits-
ZERODUST_ALLOW_EXECUTESet to true to enable sweepingfalse
ZERODUST_PRIVATE_KEYSigning key for the agent's wallet-
ZERODUST_ALLOWED_DESTINATIONSComma-separated destination allowlistown address only

Available Tools

Read-only by default:

ToolDescription
zerodust_infoGet information about ZeroDust service and fees
zerodust_get_chainsList all supported blockchain chains
zerodust_get_balancesCheck native token balances across all chains
zerodust_get_quoteGet a quote for sweeping a chain
zerodust_get_sweep_statusCheck status of a submitted sweep
zerodust_list_sweepsList past sweeps for an address

Added when execution is enabled (see below):

ToolDescription
zerodust_get_agent_addressShow the signing address and permitted destinations
zerodust_sweepSweep one chain to exactly zero
zerodust_sweep_allSweep every chain with a balance to one destination

Enabling sweeps

Sweeping moves real funds, so it is off unless you turn it on. Set both:

{
  "mcpServers": {
    "zerodust": {
      "command": "npx",
      "args": ["@zerodust/mcp-server"],
      "env": {
        "ZERODUST_ALLOW_EXECUTE": "true",
        "ZERODUST_PRIVATE_KEY": "0x..."
      }
    }
  }
}

The key is used locally to sign an EIP-7702 authorization and an EIP-712 sweep intent. It is never transmitted — only signatures reach the ZeroDust API.

Destination allowlist

By default funds can only be swept to the agent's own address. This is the main protection against prompt injection: an agent talked into sweeping somewhere it shouldn't still cannot send funds to an address you never approved.

To permit other destinations, list them explicitly:

"ZERODUST_ALLOWED_DESTINATIONS": "0xYourColdWallet,0xYourExchangeDeposit"

Treat this like any other spending authority — anything listed here can receive the agent's entire balance across every supported chain.

Example Prompts

Once configured, you can ask Claude:

  • "What chains does ZeroDust support?"
  • "Check my balances on 0x1234..."
  • "Get a quote to sweep my Arbitrum ETH to Base"
  • "What's the status of my sweep?"

With execution enabled:

  • "Sweep my Arbitrum balance to Base"
  • "Exit every chain and consolidate everything on Base"

License

MIT

Keywords

zerodust

FAQs

Package last updated on 22 Jul 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