Labsco
LaplaceMan logo

Web3 Assistant MCP

โ˜… 1

from LaplaceMan

A secure, multi-chain toolkit for interacting with blockchain smart contracts.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

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

web3-assistant-mcp/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ common/
โ”‚   โ”‚   โ”œโ”€โ”€ clients/        # Blockchain client implementations
โ”‚   โ”‚   โ”œโ”€โ”€ constants/      # Network configurations
โ”‚   โ”‚   โ”œโ”€โ”€ services/       # Core services (contract, wallet)
โ”‚   โ”‚   โ””โ”€โ”€ utils/          # Helper functions
โ”‚   โ”œโ”€โ”€ tools/              # MCP tool implementations
โ”‚   โ””โ”€โ”€ types/              # TypeScript type definitions
โ”œโ”€โ”€ test/                   # Test suites
โ”œโ”€โ”€ .env.example            # Environment template
โ””โ”€โ”€ smithery.yaml           # MCP server configuration

MCP Tools Documentation

๐Ÿ” analyze_contract_abi - ABI Analysis

{
  "abi": "[Contract ABI JSON string]"
}

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

{
  "abi": "[Method ABI]",
  "networkName": "base|baseSepolia",
  "contractAddress": "0x...",
  "functionName": "methodName",
  "args": ["param1", param2],
  "value": 0.001 // ETH amount for payable methods (in ETH)
}

Supported Operations:

  • Read contract state (view/pure)
  • Send transactions (nonpayable)
  • Token transfers (payable)

๐Ÿ‘œ local_wallet_address - Wallet Address

No parameters required:

{
  "address": "0x..."
}

Security Guidelines

  1. Private Key Management: Configure via environment variables
  2. Transaction Verification: Confirm details for payable methods
  3. Gas Limits: Automatic safe gas calculation