evm-rpc-mcp-server

evm-rpc-mcp-server

0

The RPC MCP Server is designed to facilitate interactions with EVM-compatible blockchain networks. It provides a standard interface for accessing blockchain data and performing operations using AI models. Key features include retrieving blockchain information and making contract calls.

RPC MCP Server

This is a Model Context Protocol (MCP) server implementation for interacting with any EVM-compatible RPC endpoint, offering a standardized interface for AI models with Ethereum and EVM-compatible blockchains.

Features

  • Support for EVM-compatible RPC endpoints
  • Retrieval and management of blockchain data such as current block number, account balances, transaction counts, block information, transaction details, and contract calls.

Prerequisites

  • Node.js (v16 or higher)
  • npm (Node Package Manager)

Installation

  1. Clone the repository and navigate to the project directory.
  2. Install dependencies using npm.
  3. Build the project.
  4. Install globally to make the rpc-mcp command available.

Configuration

Environment variables:

  • RPC_URL: The RPC endpoint URL (e.g., mainnet or testnet).
  • API_URL: The API endpoint URL (e.g., mainnet or testnet).

Cursor MCP Configuration

Add required configuration in mcp.json to enable tools in Cursor, including block number retrieval, balance checks, transaction counts, block retrieval, transaction details, and contract calls.