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.
- Node.js (v16 or later)
npmoryarn- Claude Desktop
- Clone this repository
git clone - Install dependencies:
npm install
Monad Testnet related configuration is already added to index.ts in the src folder.
npm run buildThe server is now ready to use!
-
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"
-
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.