Rootstock MCP Server

by rsksmart

291 downloads Not rated yet MIT license
GitHub

About

[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/rsksmart/rsk-mcp-server/badge)](https://scorecard.dev/viewer/?uri=github.com/rsksmart/rsk-mcp-server) [![CodeQL](https://github.com/rsksmart/rsk-mcp-server/workflows/CodeQL/badge.svg)](https://github.com/rsksmart/rsk-mcp-server/actions?query=workflow%3…

Details

License
MIT license

Explore

- Call contract functions on Rootstock Network
- Get ERC20 token balances
- Transfer ERC20 tokens
- Get current gas prices

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 Rootstock 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

1. Clone this repository:

git clone https://github.com/rsksmart/rsk-mcp-server
cd rootstock-mcp

2. Install dependencies:

npm install

3. Build the project:

npm run build

npm start

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "rootstock mcp server": {
            "rootstock": {
                "command": "node",
                "args": [
                    "/path/to/rootstock-mcp/build/index.js"
                ],
                "env": {
                    "SEED_PHRASE": ""
                }
            }
        }
    }
}

McpServers

{
    "rootstock": {
        "command": "node",
        "args": [
            "/path/to/rootstock-mcp/build/index.js"
        ],
        "env": {
            "SEED_PHRASE": ""
        }
    }
}

This is a Model Context Protocol (MCP) server that provides onchain tools for Claude AI, allowing it to interact with the Rootstock blockchain.

Features

- Call contract functions on Rootstock Network
- Get ERC20 token balances
- Transfer ERC20 tokens
- Get current gas prices

Installation

1. Clone this repository:

git clone https://github.com/rsksmart/rsk-mcp-server
cd rootstock-mcp

2. Install dependencies:

npm install

3. Build the project:

npm run build

Configuration

Create a .env file in the root directory with the following variables:

SEED_PHRASE="your twelve word seed phrase here"

Usage

Running the server

npm start

Using with Claude

{
  "mcpServers": {
    "rootstock": {
      "command": "node",
      "args": ["/path/to/rootstock-mcp/build/index.js"],
      "env": {
        "SEED_PHRASE": "your twelve word seed phrase here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Available Tools

call_contract

Call a contract function on Rootstock Network.

Parameters:
- contractAddress: The address of the contract to call
- functionName: The name of the function to call
- functionArgs: The arguments to pass to the function
- abi: The ABI of the contract
- value (optional): The value of RBTC to send with the transaction

erc20_balance

Get the balance of an ERC20 token on Rootstock Network.

Parameters:
- contractAddress: The address of the contract to get the balance of

erc20_transfer

Transfer an ERC20 token on Rootstock Network.

Parameters:
- contractAddress: The address of the contract to transfer the token from
- toAddress: The address of the recipient
- amount: The amount of tokens to transfer

get_gas_price

Get the current gas price on Rootstock Network.

License

MIT

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.