Web3 Assistant MCP
A secure blockchain smart contract interaction toolkit with multi-chain support.
Key Features
š Smart Contract ABI Analysis
š” Contract Method Invocation (view/nonpayable/payable)
š Local Wallet Address Management
š Multi-chain Support
Project Structure
Quick Start
Prerequisites
Node.js 18+
pnpm
Configure environment variables (copy .env.example):
Installation
Build
MCP Configuration Example
Path Note: When using MCP locally, replace *** with the absolute path to your MCP server directory.
MCP Tools Documentation
š analyze_contract_abi - ABI Analysis
Features:
Parse contract ABI and list callable methods
Auto-detect method types (view/pure/payable)
Input/output parameter types
State mutability
š call_contract - Contract Interaction
Supported Operations:
Read contract state (view/pure)
Send transactions (nonpayable)
Token transfers (payable)
š local_wallet_address - Wallet Address
No parameters required:
Network Configuration
Pre-configured networks in src/common/constants/networks:
mainnet: Ethereum Mainnetsepolia: Ethereum Sepoliabase: Base MainnetbaseSepolia: Base Testnet
Security Guidelines
Private Key Management: Configure via environment variables
Transaction Verification: Confirm details for payable methods
Gas Limits: Automatic safe gas calculation