Introduction

WalletAgent

CI codecov

WalletAgent is an MCP (Model Context Protocol) server that enables Web3 wallet interactions in AI tools like Claude Code and Cursor. It provides safe testing with mock wallets and real wallet support via secure private key management.

What is WalletAgent?

WalletAgent enhances AI coding agents with Web3 development capabilities by providing:

  • 🔐 Secure Wallet Management - Mock wallets for testing, encrypted private keys for real use

  • Contract Testing - Simulate contract calls without spending gas

  • 🔗 Multi-chain Support - Works with Ethereum, Polygon, and major EVM chains

  • 📋 Wagmi Integration - Extract, analyze, and test smart contract ABIs

  • 🛡️ Security First - Private keys never logged, comprehensive validation

  • 🤖 AI-Native - Prompts for complex Web3 operations

Quick Navigation

New to WalletAgent? Start here to set up the MCP server with your AI agent.

Learn how to perform wallet operations, send transactions, and manage tokens using prompts.

Build and test smart contracts, integrate with Wagmi, and extend WalletAgent's capabilities.

Complete reference for all AI agent tools and conversational commands.

Encrypted key management, advanced features, Hyperliquid integration, and extending functionality.

Key Features

Safe Development Environment

  • Mock Wallets: Pre-configured test accounts for safe development

  • Contract Simulation: Test functions without gas costs using eth_call

  • Anvil Integration: Local blockchain for accurate testing

Production-Ready Security

  • Encrypted Key Storage: AES-256-GCM with PBKDF2 key derivation

  • Session Management: 30-minute timeouts with automatic key clearing

  • Environment Variables: Secure private key loading from files or env vars

Comprehensive Web3 Toolkit

  • Multi-chain Support: Ethereum, Polygon, major EVM chains

  • Token Operations: ERC-20 transfers, approvals, balance checks

  • NFT Management: ERC-721 transfers and metadata

  • Contract Testing: Automated scenario generation and validation

  • Wagmi Integration: ABI extraction, function analysis, standard detection

AI-Optimized Experience

  • Prompts: "Send 100 USDC to 0x..." instead of complex function calls

  • Rich Feedback: Detailed transaction previews and error explanations

  • User Instructions: Customize behavior with plain English preferences

  • Context Aware: Remembers wallet state and provides relevant suggestions

Example Workflows

Basic Wallet Operations

Smart Contract Operations

Token Management

Supported AI Tools

Claude Code

Cursor

Configure in your MCP settings to enable Web3 operations through prompts with Cursor's AI agent.

Community & Support

What's Next?

  1. Install WalletAgent in your AI agent

  2. Explore the User Guide for common operations

  3. Dive into Development for advanced features


Ready to enhance your AI agent with Web3 capabilities? Let's get started.

Last updated