Back to Home
MaitreyaM icon

WEB3-MCP

Verified Safe

by MaitreyaM

Overview

An MCP server enabling AI agents to perform Ethereum blockchain operations, including wallet management, ERC-20 token handling, DeFi swaps on Uniswap V3, and generic smart contract interactions on Sepolia or Mainnet.

Installation

Run Command
docker run -p 3000:3000 -e WEB3_PROVIDER_URL="https://sepolia.infura.io/v3/YOUR_PROJECT_ID" -e AGENT_PRIVATE_KEY="your_private_key_without_0x" -e NETWORK="sepolia" web3-mcp-server

Environment Variables

  • WEB3_PROVIDER_URL
  • AGENT_PRIVATE_KEY
  • NETWORK

Security Notes

The server loads the `AGENT_PRIVATE_KEY` from an environment variable, which is a good practice for handling sensitive data. Input validation for addresses and amounts is present. The `interact_with_contract` tool allows for generic contract function calls, including write operations, where the ABI is supplied as a string. While `json.loads` itself is not an execution vulnerability like `eval`, an untrusted or maliciously crafted ABI could lead to unintended contract interactions if the agent's calls are not carefully validated. The primary risk comes from the necessity of using an active private key for automated transactions; users must ensure it belongs to a dedicated, monitored wallet.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2025-11-23

Tags

EthereumWeb3DeFiWalletSmart ContractsToken Swaps