Monad-MCP-Server

Monad-MCP-Server

3.1

If you are the rightful owner of Monad-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP (Monad Control Panel) server provides detailed information about wallets in the Monad Testnet network, allowing easy retrieval of data about balances and tokens via API.

๐Ÿš€ Monad MCP Server

MCP (Monad Control Panel) server for providing detailed information about wallets in the Monad Testnet network. This project allows you to easily retrieve data about balances and tokens via API.

๐Ÿ“‹ Features

The server provides access to the following information:

  • ๐Ÿ’ฐ Native token balance (MONAD)
  • ๐Ÿช™ ERC-20 token balances
  • ๐Ÿ“Š General wallet information
  • โš ๏ธ Token error analysis

๐Ÿ› ๏ธ Technologies

โš™๏ธ Installation and Running

Prerequisites

  • Node.js v16 or newer
  • npm or yarn
  • Internet access for connecting to Monad Testnet

Installation Steps

# Clone the repository
git clone https://github.com/LOFT228/Monad-MCP-Server.git
cd Monad-MCP-Server

# Install dependencies
npm install

# Start the server
npm start

For development with auto-reload:

npm run dev

๐ŸŒ API Endpoints

Home Page

GET /

Returns general information about the server and available endpoints.

Wallet Information

GET /wallet/:address

Returns complete information about the wallet, including the native token balance and all known ERC-20 tokens.

Native Token Balance

GET /wallet/:address/balance

Returns only the native token balance (MONAD).

Specific Token Balance

GET /wallet/:address/token/:tokenAddress

Returns information about a specific ERC-20 token in the specified wallet.

๐Ÿ“ Example Response

{
  "address": "0x418bF6023b30c53072bcDcc653d6e14C20ba569F",
  "nativeBalance": {
    "symbol": "MONAD",
    "name": "Monad",
    "balance": "0.121916140766047236",
    "rawBalance": "121916140766047236",
    "decimals": 18
  },
  "tokens": [
    // List of ERC-20 tokens if they exist in the wallet
  ],
  "tokenErrors": [
    // Information about errors when trying to retrieve token data
  ]
}

โš™๏ธ Configuration

Server settings are located in the config.js file. There you can change:

  • Server port
  • RPC URL for connecting to Monad Testnet
  • List of known tokens
module.exports = {
  PORT: 8080,
  MONAD_RPC_URL: 'https://testnet-rpc.monad.xyz/',
  TOKENS: {
    // Add real token contracts here
    'TOKEN_NAME': 'TOKEN_CONTRACT_ADDRESS'
  }
};

๐Ÿ” Project Structure

mcp-monad/
โ”œโ”€โ”€ config.js           # Project configuration
โ”œโ”€โ”€ index.js            # Main server file
โ”œโ”€โ”€ package.json        # Dependencies and scripts
โ”œโ”€โ”€ utils/              # Utilities
โ”‚   โ””โ”€โ”€ blockchain.js   # Functions for working with blockchain
โ””โ”€โ”€ routes/             # API routes
    โ””โ”€โ”€ wallet.js       # Routes for wallet operations

๐Ÿ”ฎ Future Improvements

  • Add NFT token support
  • Implement request caching for improved performance
  • Create a web interface for displaying information
  • Add functionality for wallet transaction analysis
  • Implement notifications for wallet changes

๐Ÿค Contributing

Contributions to the project are always welcome! If you have ideas for improvements:

  1. Fork the project
  2. Create a branch for your feature (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push the changes (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is distributed under the ISC license. See the LICENSE file for more information.

๐Ÿ“ฌ Contact

LOFT228 - @github

Project link: https://github.com/LOFT228/Monad-MCP-Server


Created with โค๏ธ for the Monad community