About Monad Magma MCP
Monad Magma MCP is an MCP server for staking MON and redeeming it through Magma on Monad Testnet. It is intended for users with a testnet wallet and returns transaction details for these operations.
Key features
- 01Stake MON for gMON
- 02Burn gMON to redeem MON
- 03Return transaction details and explorer links
Use cases
- 01Stake testnet MON through an MCP client
- 02Redeem MON by burning gMON
- 03Review staking transactions and balance results
MCP support
The server exposes MON staking and redemption operations to MCP clients and returns transaction information.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMonad Magma MCP
Features
- Stake MON: Stake MON tokens to receive gMON.
- Withdraw MON: Burn gMON to withdraw MON.
Prerequisites
- Node.js (18.x or later)
- Git
- Monad Testnet wallet with MON tokens
- MCP-compatible client (e.g., Claude)
Setup Commands
Clone Repository
git clone https://github.com/0xjaywins/magma-mcp.git
cd monad-mcp-staking
Install Dependencies
npm install
npm install --save-dev @types/node
Configure .env
- Create
.env:code .env - Add:
ReplacePRIVATE_KEY=0xYourPrivateKey0xYourPrivateKeywith your Monad Testnet private key. - Update
src/index.tswith.envpath (e.g.,/home/yourusername/monad-mcp-staking/.envfor Unix,C:\Users\windows\Desktop\monad-mcp-staking\.envfor Windows).
Build Project
npm run build
Run Script
node dist/index.js
Windows Setup Tips
- Use Windows paths (e.g.,
C:\Program Files\nodejs\node.exe,C:\Users\lenovo\Desktop\magma-mcp\dist\index.js). - Claude config for Windows:
{ "mcpServers": { "monad-mcp": { "command": "C:\\Program Files\\nodejs\\node.exe", "args": ["C:\\Users\\lenovo\\Desktop\\magma-mcp\\dist\\index.js"] } } }
Testing with MCP Inspector
- Install:
npm install @modelcontextprotocol/[email protected] - Get paths:
Windows: Usewhich node # /home/yourUsername/.nvm/versions/node/v23.11.0/bin/node pwd # /home/yourUsername/monad-mcp-stakingC:\Program Files\nodejs\node.exe,C:\Users\lenovo\Desktop\monad-mcp-staking\dist\index.js. - Run:
npx @modelcontextprotocol/inspector /home/yourUsername/.nvm/versions/node/v23.11.0/bin/node /home/yourUsername/monad-mcp-staking/dist/index.js
Configuring Claude
- Use paths from above.
- Example
claude.json:{ "mcpServers": { "monad-mcp": { "command": "node", "args": ["/home/yourUsername/.nvm/versions/node/v23.11.0/bin/node", "/home/yourUsername/monad-mcp-staking/dist/index.js"] } } }
Expected Output
- Successful Stake:
Successfully staked 0.2 MON on Magma. gMON minted: 0.2 gMON Your gMON balance: 0.2 gMON Transaction: 0x... Explorer: https://testnet.monadexplorer.com/tx/0x... - MCP Inspector: Displays tool status and transaction logs.
- Claude: Shows JSON responses with transaction details.
Troubleshooting
- Invalid .env: Ensure
PRIVATE_KEYis correct. - Insufficient Funds: Fund wallet with MON/gMON on Monad Testnet.
- Network Error: Verify RPC (
https://testnet-rpc.monad.xyz). - Path Issues: Update paths in
src/index.tsand Claude config.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.