Monad-MCP-Server
This project is a Model Context Protocol server meant for interaction with the Monad testnet, allowing users to check balances, block numbers, and transaction counts using Claude Desktop.
About this MCP Server
This project demonstrates how to create a MCP server that interacts with the Monad testnet. The MCP server provides tools for checking the mon balance of an address, the latest block number on the monad testnet, and the total transaction count of a monad address on the monad testnet.
Prerequisites
- Node.js (v16 or later)
npm
oryarn
- Claude Desktop
Getting Started
- Clone this repository
git clone
- Install dependencies:
npm install
Configuring the MCP server
Monad Testnet related configuration is already added to index.ts
in the src
folder.
Build the project
npm run build
The server is now ready to use!
Adding the MCP server to Claude Desktop
-
Open "Claude Desktop"
-
Open Settings
Claude > Settings > Developer
-
Open
claude_desktop_config.json
-
Add details about the MCP server and save the file.
{
"mcpServers": {
...
"monad-mcp": {
"command": "node",
"args": [
"/<path to the /build/index.js file for the server, on your device>"
]
}
}
}
- Restart "Claude Desktop"
How to use the server on Claude Desktop
-
Simply type in prompts asking for 'the MON balance of an address', 'the latest block on the Monad testnet', or 'the total transaction count for an address'.
-
Note that queries involving an address require that you provide Claude with the wallet address to query. The address must be a Monad address.