Overview
What is Rootstock MCP Server?
Rootstock MCP Server is a Model Context Protocol (MCP) server that provides onchain tools for Claude AI, enabling it to interact with the Rootstock blockchain. It is intended for developers who want to automate blockchain operations through natural language prompts in Claude.
How to use Rootstock MCP Server?
Clone the repository, run npm install and npm run build, then create a .env file with a SEED_PHRASE variable. Start the server with npm start or configure it as an MCP server in Claude’s mcpServers configuration by pointing to the built index.js and passing the seed phrase via the environment variable.
Key features of Rootstock MCP Server
- Call contract functions on Rootstock Network
- Get ERC20 token balances
- Transfer ERC20 tokens
- Get current gas prices
Use cases of Rootstock MCP Server
- Query the balance of an ERC20 token via a natural language request
- Automate token transfers between addresses on Rootstock
- Interact with any smart contract function without writing custom code
- Monitor current gas prices before submitting a transaction
FAQ from Rootstock MCP Server
What prerequisites are needed to run the server?
You need Node.js and npm. A twelve-word seed phrase must be provided either in a .env file or as an environment variable in the MCP configuration.
How do I configure the server for Claude?
Add a rootstock entry under mcpServers in your Claude configuration, specifying the path to the built index.js and the SEED_PHRASE environment variable.
What tools does the server expose?
Four tools: call_contract (invoke any contract function), erc20_balance (query token balance), erc20_transfer (send tokens), and get_gas_price (current gas price).
Is the software guaranteed to work?
No. The software is provided “as is” without any warranty, and has not undergone testing. Use is at your own risk, and the authors are not liable for any damages.
Can I modify and redistribute this server?
Yes, the server is licensed under MIT, which permits modification and distribution under the same license terms.