# Moonscan MCP for AI Agents AI Agent Connect

> Moonscan MCP gives your AI agent direct access to Moonbeam blockchain data. You can check GLMR balances, track ERC-20 and NFT transfers, and inspect smart contract source code without leaving your chat. It handles everything from transaction receipt status to block rewards, making it a go-to for on-chain research, wallet auditing, and real-time blockchain monitoring.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_Mkz58k6DdR081M4NmLe4Kje02MkrSM0LYVG2kYLC/ai-agent-connect
- **Tags:** moonbeam, glmr, blockchain-explorer, smart-contracts, web3

## Description

Connect your Moonscan API key to your AI agent to explore the Moonbeam Network without the friction of manual searching. This Connector gives you a direct line to on-chain data, letting you pull balances, track token transfers, and inspect smart contract code through a simple conversation. It's built for those who need to move fast, whether you're auditing a contract's source code or checking the status of a specific transaction hash. Because Vinkius handles the connection management, you can stay focused on your analysis rather than the data fetching. Instead of digging through block explorer filters, you just tell your agent what you need to see, and it brings the specific details back to you instantly.

## Tools

### get_block_countdown
Get the estimated time remaining until the next block. This is useful for understanding network congestion.

### proxy_eth_call
Execute an eth_call to interact with a smart contract. This allows you to read data from a contract without changing state.

### proxy_eth_gas_price
Get the current gas price on the network. This is vital for timing your transactions correctly.

### proxy_eth_get_block_by_number
Get full details for a specific block by its number. Use this to see the transactions and reward data for that block.

### proxy_eth_get_transaction_by_hash
Retrieve all details for a transaction using its hash. This is the standard way to look up a specific transaction.

### proxy_eth_get_transaction_receipt
Get the final receipt for a transaction hash. This shows you the final results of a completed blockchain action.

### get_block_number_by_time
Get the specific block number for any given timestamp. This helps you pinpoint exactly when an event happened on the chain.

### get_block_reward
Check the rewards issued for a specific block. It's useful for understanding network incentives.

### get_contract_abi
Pull the Application Binary Interface for any smart contract. You'll need this to see the available functions and methods.

### get_contract_execution_status
See if a contract execution succeeded or failed. It's a quick way to verify that a specific call went through.

### get_contract_source_code
Get the actual source code for a verified smart contract. This is essential for auditing and security reviews.

### get_erc1155_transfers
List all ERC-1155 token transfer events for an address. Use this to track multi-token movements.

### get_erc20_balance
Check the balance of a specific ERC-20 token for any address. It gives you an instant look at a wallet's holdings.

### get_erc20_total_supply
Find out the total supply of an ERC-20 token. This is a core metric for any token analysis.

### get_erc20_transfers
Pull a list of all ERC-20 token transfers. It helps you track the flow of specific tokens across the network.

### get_erc721_transfers
Track all ERC-721 NFT transfers for a specific wallet. Use this to monitor NFT trading activity.

### get_glmr_balance_multi
Get the GLMR balances for a list of different addresses. This saves time when auditing multiple wallets at once.

### get_glmr_balance
Check the GLMR balance for a single wallet address. It's the simplest way to see a user's native holdings.

### get_glmr_last_price
Find out the most recent price of GLMR. This is great for quick price checks during a conversation.

### get_normal_transactions
List the normal transactions for an address. This covers the standard interactions on the blockchain.

### get_tx_receipt_status
Check the receipt status of a specific transaction hash. Use it to see if a transaction is still pending or finished.

### proxy_eth_block_number
Use the standard eth_blockNumber method to get the current block. It's a common way to get the latest chain height.

### proxy_eth_estimate_gas
Estimate the gas required for a specific transaction. It helps you avoid out of gas errors before you send a transaction.

### get_glmr_total_supply
Check the total supply of GLMR on the network. Use this to calculate market cap or circulation.

### get_internal_transactions
Retrieve all internal transactions for a specific address. This is key for seeing interactions between contracts.

### get_logs
Fetch the logs for a specific block or transaction. Use this to see the detailed events emitted by smart contracts.

## Prompt Examples

**Prompt:** 
```
What's the current GLMR balance for 0x21130d97301b6A5723dC95ca7519483491744ef1?
```

**Response:** 
```
The address **0x2113...** currently holds **1,250.45 GLMR**.

Would you like me to check any other addresses or pull the total supply for you?
```

**Prompt:** 
```
List the last 5 normal transactions for address 0x21130d97301b6A5723dC95ca7519483491744ef1 sorted by desc.
```

**Response:** 
```
I've retrieved the 5 most recent transactions for that address:

| Block | Type | Amount | To | 
| :--- | :--- | :--- | :--- | 
| 4,500,123 | Transfer | 50 GLMR | 0xabc... | 
| 4,500,122 | Transfer | 10 GLMR | 0xdef... | 
| 4,500,121 | Transfer | 5 GLMR | 0xghi... | 
| 4,500,120 | Transfer | 100 GLMR | 0xjkl... | 
| 4,500,119 | Transfer | 1 GLMR | 0xmno... |
```

**Prompt:** 
```
Get the ABI for the smart contract at 0xacc15dc74880c9944775448304b263d191c6077f.
```

**Response:** 
```
I've retrieved the ABI for the contract at **0xacc15...**. It includes the following core functions:

*   `transfer(address to, uint256 amount)`
*   `balanceOf(address account)`
*   `approve(address spender, uint256 amount)`

Let me know if you'd like me to explain any of these functions or pull the source code.
```

## Capabilities

### Fetch GLMR balances
Get current holdings for one or many addresses in one go.

### Track token movements
See every ERC-20, NFT, and ERC-1155 transfer for any account.

### Audit smart contracts
Pull verified source code and ABIs for deep technical reviews.

### Monitor transaction history
Filter through normal and internal transactions with specific sorting.

### Verify receipt status
Check if a transaction actually landed on the network or failed.

## Use Cases

### Debugging failed swaps
A developer is debugging a failed swap and needs to check the get_contract_execution_status to see exactly where it failed.

### Auditing whale wallets
A researcher wants to see the total GLMR holdings of five different wallets and uses get_glmr_balance_multi to get the list.

### Tracking NFT movements
An NFT collector wants to see every time a specific collection was moved and uses get_erc721_transfers to track the history.

### Aggregating transfer data
A data scientist needs to pull all ERC-20 transfers for a specific day and uses get_erc20_transfers to gather the raw data.

## Benefits

- Stop manual tab-switching by pulling GLMR balances and ERC-20 totals directly into your chat using get_glmr_balance and get_erc20_total_supply.
- Speed up smart contract audits by pulling verified source code and ABIs using get_contract_source_code and get_contract_abi.
- Track complex token movements easily with get_erc721_transfers and get_erc1155_transfers to monitor NFTs and other assets.
- Debug failed interactions faster by checking get_contract_execution_status and get_tx_receipt_status without opening a block explorer.
- Analyze network behavior in depth by pulling get_internal_transactions and get_logs to see how contracts interact behind the scenes.

## How It Works

The bottom line is you get live Moonbeam blockchain data in your chat without the manual research.

1. Grab your Moonscan API key from your developer dashboard.
2. Plug the key into your Connector client via Vinkius.
3. Ask your agent to pull specific Moonbeam data or contract details.

## Frequently Asked Questions

**What is the Moonscan MCP?**
The Moonscan MCP connects your AI agent to the Moonbeam blockchain. It allows your agent to perform actions like checking balances, tracking transfers, and inspecting smart contracts directly in your chat.

**Can I use it to check GLMR balances?**
Yes, you can ask your agent to find the GLMR balance for a single address or a list of multiple addresses at once.

**How do I get my API key for Moonscan?**
You can get your API key from the Moonscan developer dashboard. Once you have it, you just need to add it to your Connector client to get started.

**Does it work for NFTs?**
Yes, it supports tracking ERC-721 and ERC-1155 token transfers, making it easy to monitor NFT movements on the Moonbeam Network.

**Can I see smart contract source code?**
Yes, if a contract is verified on Moonscan, your agent can pull the source code and the ABI for you to review during your research.

**Is it only for Moonbeam?**
This specific MCP is dedicated to the Moonbeam Network. It provides deep, specialized access to Moonbeam's on-chain data and smart contracts.

**Can I check the GLMR balance of multiple wallets in a single request?**
Yes! Use the `get_glmr_balance_multi` tool and provide a comma-separated list of addresses to get all balances at once.

**How do I view the verified source code of a Moonbeam smart contract?**
Simply use the `get_contract_source_code` tool with the contract address. If the contract is verified on Moonscan, the agent will retrieve the source code for you.

**Is it possible to track NFT movements for a specific address?**
Yes, you can use `get_erc721_transfers` for standard NFTs or `get_erc1155_transfers` for multi-token standards to see all recent transfer events.