Sponsored by Deepsite.site

Monad Custom Agent (MCP Server for Cursor)

Created By
Eccentrichealerbuilds8 months ago
This project implements a custom Model Context Protocol (MCP) server designed to work seamlessly with AI-powered IDEs like Cursor and Claude Desktop. It allows users to interact with the Monad Testnet using natural language prompts within their IDE.
Content

Monad Custom Agent (MCP Server for Cursor)

Submission for Monad MCP Madness - Mission 2

Overview

This project implements a custom Model Context Protocol (MCP) server designed to work seamlessly with AI-powered IDEs like Cursor and Claude Desktop. It allows users to interact with the Monad Testnet using natural language prompts within their IDE.

The agent leverages various tools and APIs to provide comprehensive information about the Monad ecosystem:

  • Direct Blockchain Interaction: Uses web3.py to query the Monad Testnet RPC for core data like balances, transactions, and blocks.
  • Indexed Data via Zerion: Utilizes the Zerion API for efficient fetching of ERC20 balances, transaction history analysis (used for contract interaction counts), and user NFT transaction history.
  • Marketplace Data via Magic Eden: Integrates with the Magic Eden API to provide detailed statistics on NFT collections held by a user, specific NFT activity history, and trending collections on Monad Testnet.
  • Contract Metadata via Thirdweb: Uses the Thirdweb Insight API to automatically fetch ABIs for verified contracts, simplifying contract interaction.

This project fulfills the mission requirements by using AI tools (Cursor/Claude + the MCP server itself acting as a tool bridge), working within the IDE, interacting with Monad Testnet, producing useful outputs, and demonstrating capability for complex actions via its toolset.

Features / Implemented Tools

The MCP server exposes the following custom tools accessible via natural language prompts in Cursor/Claude:

  • get_native_monad_balance_tool: Fetches the native MON balance for a Monad address.
  • get_monad_erc20_balances_tool: Lists ERC20 tokens held by an address, including name and symbol (uses Zerion Positions API).
  • get_monad_transaction_tool: Retrieves detailed information for a specific transaction hash (uses Web3.py).
  • get_monad_block_tool: Retrieves detailed information for a specific block number or identifier like "latest" (uses Web3.py).
  • read_contract_tool: Calls any read-only function on a specified contract. Automatically fetches the ABI from Thirdweb Insight if not provided by the user (requires THIRDWEB_CLIENT_ID).
  • get_contract_interactions_tool: Analyzes recent transaction history (via Zerion Transactions API) to count unique smart contracts an address has interacted with (sent transactions to). Requires ZERION_API_KEY.
  • get_nft_collection_stats_tool: Fetches detailed statistics (floor, top bid, volume, user count, etc.) for all NFT collections held by a wallet on Monad Testnet (uses Magic Eden Collections API). Requires MAGIC_EDEN_API_KEY.
  • get_nft_activity_tool: Fetches the detailed activity history (transfers, listings, sales, bids) for a specific NFT on Monad Testnet (uses Magic Eden Token Activity API). Requires MAGIC_EDEN_API_KEY.
  • get_trending_collections_tool: Fetches a list of currently trending NFT collections on Monad Testnet based on sales or volume over a defined period (uses Magic Eden Trending API). Requires MAGIC_EDEN_API_KEY.
  • get_user_nft_transactions_tool: Fetches a general feed of NFT-related transactions (mints, transfers, sales involving NFTs) for a specific user address (uses Zerion Transactions API with NFT filter). Requires ZERION_API_KEY.
  • get_contract_abi_tool: Directly fetches and returns the ABI for a verified contract from Thirdweb Insight. Requires THIRDWEB_CLIENT_ID.

Technology Stack

  • Python 3.11+
  • MCP Server Framework (mcp library / FastMCP)
  • Web3.py (for direct Monad RPC interaction)
  • Zerion API (for indexed balances, transactions, interactions)
  • Magic Eden API (for NFT stats, activity, trends)
  • Thirdweb Insight API (for ABI fetching)
  • python-dotenv (for environment variable management)
  • httpx (for asynchronous API calls)
  • click (for server CLI options)
  • Cursor / Claude Desktop (as the MCP client/interface)
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
ChatWiseThe second fastest AI chatbot™
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Tavily Mcp
Playwright McpPlaywright MCP server
Amap Maps高德地图官方 MCP Server
CursorThe AI Code Editor
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
DeepChatYour AI Partner on Desktop