WEB3-MCP
Verified Safeby 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
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-serverEnvironment 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
mcp-server-typescript
Provides a Model Context Protocol (MCP) server to enable AI assistants to access DataForSEO's SEO data APIs through a standardized interface.
devtool-mcp
Provides an AI coding agent with browser superpowers for real-time debugging, visual feedback, process management, and frontend diagnostics. It acts as a bridge between an AI assistant and a web browser.
mcp_tools_server
An MCP server that empowers an LLM to act as a comprehensive, multi-platform AI assistant capable of managing files, system processes, web browsing, personal organization, and media control on a local device.
ping-mcp
A Model Context Protocol (MCP) server for Solana blockchain interactions, enhancing DApp development with agentic capabilities.