Monad Magma MCP
@0xjaywins
A simple Model Context Protocol (MCP) server for staking and withdrawing MON tokens on the Magma platform (magmastaking.xyz) on the Monad Testnet
Overview
What is Monad Magma MCP?
Monad Magma MCP is an MCP server that enables staking and withdrawing of MON tokens on the Monad Testnet via the Magma protocol. It is built for developers and users who want to interact with Magma staking through MCP-compatible clients like Claude.
How to use Monad Magma MCP?
Clone the repository, install dependencies, configure a .env file with your Monad Testnet private key, then build and run the project. Configure your MCP client (e.g., Claude) with the path to the compiled dist/index.js file. On Windows, adjust file paths accordingly and use the provided Claude configuration example.
Key features of Monad Magma MCP
- Stake MON tokens to receive gMON.
- Withdraw MON by burning gMON.
- Integrates with Monad Testnet.
- Displays transaction hash and explorer link.
- Configurable via
.envand MCP client settings.
Use cases of Monad Magma MCP
- Liquid staking on Monad Testnet using Magma.
- Testing staking workflows with MCP-compatible AI assistants.
- Automating MON delegation and withdrawal with Claude.
FAQ from Monad Magma MCP
What are the prerequisites?
Node.js 18 or later, Git, a Monad Testnet wallet with MON tokens, and an MCP-compatible client such as Claude.
How do I configure the .env file?
Create a .env file in the project directory and add PRIVATE_KEY=0xYourPrivateKey, replacing with your Monad Testnet private key.
What does staking MON do?
It stakes MON tokens and receives gMON tokens. The transaction hash and Monad Testnet explorer link are printed in the output.
How do I troubleshoot an insufficient funds error?
Ensure your wallet has enough MON tokens on the Monad Testnet to cover the stake amount.
How do I set up on Windows?
Use Windows file paths (e.g., C:\Users\lenovo\Desktop\magma-mcp) and configure Claude with the full path to node.exe and the dist/index.js file.