RPC MCP Server

by karacurt

135 downloads
Not rated
GitHub

Description

# RPC MCP Server This is a Model Context Protocol (MCP) server implementation for interacting with any EVM-compatible RPC endpoint. It provides a standardized interface for AI models to interact with Ethereum and EVM-compatible blockchains. ## Features - Support for any…

About

# RPC MCP Server This is a Model Context Protocol (MCP) server implementation for interacting with any EVM-compatible RPC endpoint. It provides a standardized interface for AI models to interact with Ethereum and EVM-compatible blockchains. ## Features - Support for any EVM-compatible RPC endpoint - Get current block…

Details

Author
karacurt
Downloads
135
Categories
Developer Tools

- Support for any EVM-compatible RPC endpoint
- Get current block number
- Check account balances
- Get transaction counts (nonces)
- Retrieve block information
- Get transaction details
- Make contract calls

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name RPC MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via npm (npm install -g .), set the RPC_URL environment variable to your RPC endpoint, then add the server to your Cursor mcp.json configuration. The server exposes tools like eth_blockNumber, eth_getBalance, and eth_call that can be invoked through the MCP client.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "rpc mcp server": {
            "rpc-mcp": {
                "command": "npx",
                "args": [
                    "-y",
                    "rpc-mcp"
                ],
                "env": {
                    "RPC_URL": "",
                    "API_URL": ""
                }
            }
        }
    }
}

McpServers

{
    "rpc-mcp": {
        "command": "npx",
        "args": [
            "-y",
            "rpc-mcp"
        ],
        "env": {
            "RPC_URL": "",
            "API_URL": ""
        }
    }
}

RPC MCP Server

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

Features

- Support for any EVM-compatible RPC endpoint
- Get current block number
- Check account balances
- Get transaction counts (nonces)
- Retrieve block information
- Get transaction details
- Make contract calls

Prerequisites

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

Installation

1. Clone the repository:

git clone <repository-url>
cd rpc-mcp

2. Install dependencies:

npm install

3. Build the project:

npm run build

4. Install globally:

npm install -g .

This global installation makes the rpc-mcp command available system-wide, which is required for Cursor to find and execute the MCP server.

Configuration

The server uses the following environment variable:

- RPC_URL: The RPC endpoint URL to connect to (e.g., 'https://mainnet-rpc.game7.io' or 'https://testnet-rpc.game7.io')
- API_URL: The API endpoint URL to connect to (e.g., 'https://mainnet.game7.io/api/v2' or 'https://testnet.game7.io/api/v2')

Cursor MCP Configuration

Add the following to your mcp.json file in your Cursor (Settings > MCP > Add New Global Server):

{
  "mcpServers": {
    "rpc-mcp": {
      "command": "npx",
      "args": ["-y", "rpc-mcp"],
      "env": {
        "RPC_URL": "YOUR_RPC_ENDPOINT",
        "API_URL": "YOUR_API_ENDPOINT"
      }
    }
  } 
}

This configuration will make the following tools available in Cursor:

- eth_blockNumber
- eth_getBalance
- eth_getTransactionCount
- eth_getBlockByNumber
- eth_getTransactionByHash
- eth_call
- trace_transaction

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.