drio
Open app

Layer2 MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

Layer2 MCP Server is a model context protocol server designed for interacting with the Ethereum layer 2 network, providing a standardized interface for AI models to engage with blockchain networks, deploy tokens, and manage transactions.

To use the Layer2 MCP Server, clone the repository, install dependencies, and configure your environment variables. You can then interact with the server through various commands to deploy tokens, transfer ETH, and perform batch operations.

  • Deploy new ERC20 token contracts - Transfer ETH and ERC20 tokens to specific addresses - Perform batch transfers for testing and simulation - Support for L1 settlement and cross-chain operations
  1. Deploying new ERC20 tokens for projects.
  2. Facilitating token transfers in decentralized applications.
  3. Conducting batch transactions for testing purposes.

Add to your AI client

Use these steps to connect Layer2 MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "layer2-mcp-anylots": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-layer2-mcp-anylots"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "layer2-mcp-anylots": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-layer2-mcp-anylots"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "layer2-mcp-anylots": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-layer2-mcp-anylots"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "layer2-mcp-anylots": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-layer2-mcp-anylots"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "layer2-mcp-anylots": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-layer2-mcp-anylots"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "layer2-mcp-anylots": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-layer2-mcp-anylots"
      ]
    }
  }
}

FAQ

Can I use Layer2 MCP Server with any Ethereum-compatible network?

Yes! It supports Ethereum Mainnet, Layer 2 networks like Optimism and Arbitrum, and local development networks.

Is there a specific setup required for using Layer2 MCP Server?

Yes! You need to create a `.env` file with your Ethereum private key and the Layer 2 RPC URL.

Layer2 MCP Server — MCP Registry