layer2-mcp
Layer2 MCP Server is a model context protocol server that facilitates interaction with Ethereum layer 2 networks. It allows AI models to efficiently manage blockchain tasks through a standardized protocol. The server supports various blockchain operations including token deployment and cross-chain transactions.
Overview
The Layer2 MCP Server is a model context protocol server designed for the Ethereum layer 2 network. It offers a standardized interface facilitating AI models to interact with blockchain networks. Key features include deploying ERC20 tokens, ETH transfers, batch transactions, and cross-chain support. The server supports Ethereum Mainnet, Layer 2 networks, and local development networks. Installation involves cloning the repository, installing dependencies, and building the project.
Installation
- Clone the repository and navigate to it.
- Install dependencies via npm.
- Build the project using npm.
Configuration
- Create a
.env
file with variables:PRIVATE_KEY
andETH_L2_RPC
.
Usage
- Configure with tools like Cursor and Claude Desktop.
- Test using MCP Inspector.
Available Tools
deployToken
: Deploy ERC20 token contracts.transferETH
: Transfer ETH to addresses.transferToken
: Token transfers.batchTransfer
: Execute batch token transfers.
Network Support
- Supports Ethereum Mainnet, Layer 2 networks, local development.