NestDaddy

Onchain Agent Wallets

io.github.nirholas/onchain-agent-wallets · v0.1.1

Give an AI agent a Solana spending allowance instead of your key. Chain-enforced cap, x402.

Connect Runs on your machine

Terminal
claude mcp add onchain-agent-wallets -e OWNER_SECRET_KEY=<OWNER_SECRET_KEY> -e OAW_NETWORK=<OAW_NETWORK> -e SOLANA_RPC_URL=<SOLANA_RPC_URL> -e OAW_STATE_DIR=<OAW_STATE_DIR> -e REQUIRE_CONFIRM=<REQUIRE_CONFIRM> -- npx -y @three-ws/[email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "onchain-agent-wallets": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/[email protected]"
      ],
      "env": {
        "OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>",
        "OAW_NETWORK": "<OAW_NETWORK>",
        "SOLANA_RPC_URL": "<SOLANA_RPC_URL>",
        "OAW_STATE_DIR": "<OAW_STATE_DIR>",
        "REQUIRE_CONFIRM": "<REQUIRE_CONFIRM>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "onchain-agent-wallets": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/[email protected]"
      ],
      "env": {
        "OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>",
        "OAW_NETWORK": "<OAW_NETWORK>",
        "SOLANA_RPC_URL": "<SOLANA_RPC_URL>",
        "OAW_STATE_DIR": "<OAW_STATE_DIR>",
        "REQUIRE_CONFIRM": "<REQUIRE_CONFIRM>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "onchain-agent-wallets": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/[email protected]"
      ],
      "env": {
        "OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>",
        "OAW_NETWORK": "<OAW_NETWORK>",
        "SOLANA_RPC_URL": "<SOLANA_RPC_URL>",
        "OAW_STATE_DIR": "<OAW_STATE_DIR>",
        "REQUIRE_CONFIRM": "<REQUIRE_CONFIRM>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
OWNER_SECRET_KEY
Optional, secret
Owner secret key, base58 or a JSON byte array. Optional: without it every owner action is returned as an unsigned transaction for Phantom, Solflare, Backpack, or a Ledger to sign.
OAW_NETWORK
Optional
Cluster: mainnet or devnet. Defaults to mainnet. State is kept per network, so a devnet rehearsal never touches mainnet agents.
SOLANA_RPC_URL
Optional
HTTPS Solana RPC endpoint. Defaults to the public endpoint for the configured network; bring your own (Helius / Quicknode / Triton) for production.
OAW_STATE_DIR
Optional
Where agent keypairs, guardrails, and the spend ledger are stored. Defaults to ~/.onchain-agent-wallets, written 0600 inside a 0700 directory.
REQUIRE_CONFIRM
Optional
Refuse to broadcast anything that moves value until the call is re-issued with confirm:true. Default true.

Details

Package@three-ws/[email protected] (NPM, stdio)
First published10 Oct 2026
Last updated10 Oct 2026
Registry nameio.github.nirholas/onchain-agent-wallets

More ai and media servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.