npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

wallet-agent

v0.3.2

Published

MCP server for Web3 wallet interactions on EVM-compatible chains using Wagmi

Readme

Wallet Agent

WalletAgent

CI codecov

MCP server enabling Web3 wallet interactions in AI tools such as Claude Code and Cursor, with support for mock wallets during testing and real wallets via private-key import.

⚠️ WARNING: Beta Software

This is beta software under active development. DO NOT use on mainnet or with wallets containing real funds. This software has not been audited and may contain bugs that could result in loss of funds. Use only on testnets or local development environments.

Quick Start

Claude Code

claude mcp add wallet-agent bunx wallet-agent@latest

Verify with /mcp in Claude Code.

Cursor

Add to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "wallet-agent": {
      "command": "bunx",
      "args": ["wallet-agent"]
    }
  }
}

Then restart Cursor.

Usage Examples

Basic Flow

"Connect to 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
"Check my balance"
"Send 0.1 ETH to shanev.eth"
"Switch to Polygon"

Token Operations

"Transfer 100 USDC to 0x..."
"Get my DOGE balance"
"Approve USDC spending for 0xDEX..."

Supported Chains

Built-in Chains

Wallet Agent includes the following chains by default:

  • Anvil (Local, Chain ID: 31337) - Default chain for local development
  • Ethereum Mainnet (Chain ID: 1) - Using public RPC
  • Sepolia (Chain ID: 11155111) - Ethereum testnet
  • Polygon (Chain ID: 137) - Polygon PoS mainnet

⚠️ Note: Built-in chains use public RPC endpoints which may have rate limits. For production use, consider adding custom chains with your own RPC endpoints.

Custom Chain Support

Add any EVM-compatible chain with the add_custom_chain tool:

  • Local development networks (Anvil, Hardhat, Ganache)
  • Layer 2 networks (Base, Arbitrum, Optimism)
  • Alternative L1s (BNB Chain, Avalanche)
  • Private/enterprise networks

Available Tools

Wallet Management

  • connect_wallet - Connect to a wallet using the specified address
  • disconnect_wallet - Disconnect the currently connected wallet
  • get_accounts - Get the list of available mock accounts
  • get_current_account - Get the currently connected account information
  • get_wallet_info - Get current wallet configuration info
  • get_balance - Get the balance of an address

Transaction Operations

  • send_transaction - Send a transaction
  • estimate_gas - Estimate gas for a transaction before sending
  • get_transaction_status - Get the status of a transaction by its hash
  • get_transaction_receipt - Get detailed receipt of a mined transaction
  • simulate_transaction - Simulate a contract transaction before sending

Signing

  • sign_message - Sign a message with the connected wallet
  • sign_typed_data - Sign EIP-712 typed data

Chain Management

  • switch_chain - Switch to a different chain
  • add_custom_chain - Add a custom EVM-compatible blockchain network
  • update_custom_chain - Update an existing custom chain's configuration
  • remove_custom_chain - Remove a previously added custom chain

Token Operations (ERC-20)

  • transfer_token - Transfer ERC-20 tokens to another address
  • approve_token - Approve ERC-20 token spending
  • get_token_balance - Get ERC-20 token balance
  • get_token_info - Get ERC-20 token information (name, symbol, decimals)

NFT Operations (ERC-721)

  • transfer_nft - Transfer an ERC-721 NFT to another address
  • get_nft_owner - Get the owner of an ERC-721 NFT
  • get_nft_info - Get ERC-721 NFT information (name, symbol, tokenURI)

Contract Operations

  • load_wagmi_config - Load contract ABIs from a Wagmi-generated file
  • list_contracts - List all available contracts from Wagmi config
  • read_contract - Read from a smart contract using Wagmi-generated ABIs
  • write_contract - Write to a smart contract using Wagmi-generated ABIs

Private Key Management

  • import_private_key - Import a private key from environment variable or file
  • list_imported_wallets - List all imported private key wallets
  • remove_private_key - Remove an imported private key
  • set_wallet_type - Switch between mock and private key wallets

ENS

  • resolve_ens_name - Resolve an ENS name to an Ethereum address (mainnet only)

Real Wallets (Development Only)

⚠️ NEVER paste private keys in chat!

Option 1: Environment Variable

# When adding server
claude mcp add wallet-agent bunx wallet-agent -e WALLET_PRIVATE_KEY=0x...

# Or in shell
export WALLET_PRIVATE_KEY="0x..."

Then: "Import private key from WALLET_PRIVATE_KEY"

Option 2: Secure File

echo "0x..." > ~/.wallet-key
chmod 600 ~/.wallet-key

Then: "Import private key from ~/.wallet-key"

Workflow

  1. "Set wallet type to privateKey"
  2. "Connect to my wallet"
  3. Use normally

Mock Accounts

Pre-configured for testing:

  • 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
  • 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
  • 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC

Development

git clone https://github.com/wallet-agent/wallet-agent.git
cd wallet-agent
bun install
bun run dev

For local testing:

claude mcp add wallet-agent bun /path/to/wallet-agent/dist/index.ts

Testing

See the Testing Guide for comprehensive testing documentation, including:

  • Running tests in mock and real blockchain modes
  • Testing with Anvil
  • Writing new tests
  • CI/CD integration

Security

  • Private keys stored in memory only
  • No network transmission of secrets
  • Use testnets for development
  • Audit code before mainnet use