monad-mcp
v0.2.1Monad blockchain gateway for AI agents: balances, transfers, swaps, DeFi, with Privy signing.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_address Get connected wallet address
Returns the Monad wallet address currently linked to the authenticated user via Privy. Requires the user to be signed in.
get_balance Get native MON balance
Returns the native MON balance for an address on Monad. Accepts a 0x address or a '.nad' name (resolved via nad.domains). If no address is provided, uses the authenticated user's wallet.
| Parameter | Type | Description |
|---|---|---|
address | string | Address or '.nad' name to query. Defaults to the authenticated user's wallet. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
get_token_balance Get ERC-20 token balance
Returns the balance of an ERC-20 token for an address on Monad. Also reads the token's symbol and decimals so the output is human-readable.
| Parameter | Type | Description |
|---|---|---|
token * | string | ERC-20 contract address. |
address | string | Holder address or '.nad' name. Defaults to the authenticated user's wallet. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
get_transaction_history Get recent transaction history
Returns recent ERC-20 Transfer events involving an address by scanning the last N blocks via RPC. For a complete view including native transfers and contract calls, use the explorer URL in the response.
| Parameter | Type | Description |
|---|---|---|
address | string | Address or '.nad' name to query. Defaults to the authenticated user's wallet. |
lookback_blocks | integer | Number of blocks back from head to scan for ERC-20 Transfer events involving this address. Scanned in 100-block windows (Monad RPC caps eth_getLogs at 100 blocks). Capped at 50k. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
get_tx_receipt Get transaction receipt
Fetches a transaction receipt by hash. Returns status, gas used, block number, and the explorer URL.
| Parameter | Type | Description |
|---|---|---|
tx_hash * | string | Transaction hash to look up. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
poll_request Poll a pending approval request
Checks the status of a stored transaction request. Returns one of: pending (user hasn't approved yet), approved (with tx hash), rejected, or expired.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | The stored-request ID returned by a write tool. |
whoami Who am I
Returns the authenticated user's id, Monad wallet address, and any active session-key grants. Requires the user to be signed in.
list_session_keys List session-key grants
Lists session-key grants for the authenticated user, newest first.
read_contract Read any contract's view function
Calls a view/pure function on any Monad contract. Accepts ABI as either a parsed array or a Solidity-signature string (one per line). Args are JSON; uint/int values may be passed as decimal strings to preserve precision.
| Parameter | Type | Description |
|---|---|---|
abi * | Either a JSON ABI array (from artifacts) or a human-readable signature like 'function balanceOf(address) view returns (uint256)'. | |
address * | string | Contract address. |
function * | string | Function name to call (must be view/pure). |
args | array | Positional args, JSON-coerced. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
decode_return_data Decode hex return data against a function ABI
Given an ABI + function name + hex return data, decodes the values. Useful when you have raw eth_call output or a sim trace and want to interpret it.
| Parameter | Type | Description |
|---|---|---|
abi * | Either a JSON ABI array (from artifacts) or a human-readable signature like 'function balanceOf(address) view returns (uint256)'. | |
data * | string | Hex-encoded return data. |
function * | string |
resolve_token Resolve a token symbol/name to its Monad address
Looks up a canonical Monad token by symbol (e.g. 'USDC'), name ('Tether'), or returns an 0x address unchanged. Falls back to DexScreener search for non-canonical tokens.
| Parameter | Type | Description |
|---|---|---|
query * | string | Symbol, name, alias, or 0x address. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
get_token_price Get token USD price (DexScreener)
Returns the current USD price for a token on Monad, sourced from the deepest-liquidity pair found on DexScreener. Mainnet only — testnet has no price feed.
| Parameter | Type | Description |
|---|---|---|
token * | string | ERC-20 token address (or use resolve_token to look it up). |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
list_canonical_tokens List canonical Monad tokens
Returns the well-known tokens on Monad (MON, WMON, USDC, USDT0, AUSD, WETH, sMON, shMON). For dynamic discovery (new tokens, memes), use `resolve_token` with a name/symbol query.
| Parameter | Type | Description |
|---|---|---|
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
get_portfolio Get portfolio (balances + USD values)
Returns native MON + canonical-token balances for an address, priced in USD via DexScreener. Skips tokens with zero balance unless `include_zero` is set. USD totals are best-effort — tokens without a Monad pair on DexScreener are reported with null prices.
| Parameter | Type | Description |
|---|---|---|
address | string | Holder address or '.nad' name. Defaults to the authenticated user's wallet. |
include_zero | boolean | Include canonical tokens with zero balance in the response. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
bridge_quote Get a bridge quote into Monad (LiFi)
Queries the LiFi aggregator for the cheapest/fastest route from another chain into Monad (chain id 143). Returns the chosen route + transaction request you can submit on the source chain. If Monad isn't yet listed by LiFi, returns a clear error.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount in source token, decimal e.g. '10'. |
from_chain_id * | integer | Source chain ID (e.g. 1=Ethereum, 10=Optimism, 42161=Arbitrum). |
from_token * | string | Source token: 0x address, or '0x0000…0000' for native. |
to_token * | string | Destination token on Monad (0x address) or 'MON' for native. |
from_decimals | integer | |
recipient | string | Address on Monad to receive bridged tokens. Defaults to the user's wallet. |
slippage_bps | integer | Default 50 bps = 0.5%. |
simulate_transaction Dry-run a transaction (eth_call)
Calls eth_call against the latest block to preview the outcome of a transaction. Returns raw return data on success, or the decoded revert reason on failure. Useful before approving a swap, contract call, or bridge to confirm it won't revert.
| Parameter | Type | Description |
|---|---|---|
to * | string | |
data | string | |
from | Sender address. Defaults to the authenticated wallet, then to zero. | |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
value_wei | string |
check_token Risk check for an ERC-20 token
Runs heuristic risk checks on a token address: is it a known canonical token, is it actually a contract, does it have DexScreener liquidity, how old is the deepest pair. Returns a list of flags from `info` → `danger`. Mainnet recommended (DexScreener doesn't index testnet).
| Parameter | Type | Description |
|---|---|---|
token * | string | |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
resolve_name Resolve a Nad Name Service (.nad) name or address
Resolves Monad names to addresses and back. For '.nad' names, performs an on-chain Nad Name Service (nad.domains) lookup. For 0x addresses, returns the primary '.nad' name if one is set, otherwise passes the address through. Use this before a transfer to confirm where funds will go.
| Parameter | Type | Description |
|---|---|---|
query * | string | A '.nad' name (e.g. 'keone.nad') or a 0x address. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
create_user Create a Privy user with a Monad-ready wallet
Provisions a new Privy user and an Ethereum embedded wallet that works on Monad mainnet (143) and testnet (10143). Returns the user_id and wallet address. Server requires PRIVY_APP_ID + PRIVY_APP_SECRET to be configured.
| Parameter | Type | Description |
|---|---|---|
email | string | Email to attach as the user's linked account. If omitted, a placeholder is generated. |
transfer Send MON or an ERC-20 token
Builds an unsigned transfer transaction (native MON or ERC-20) and returns an approval URL. The user opens the URL, reviews the transaction in their Privy wallet, and approves or rejects it. After approval, poll the request with `poll_request` to retrieve the tx hash.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount to send, as a decimal string e.g. "1.5". |
to * | string | Recipient — a 0x address or a Nad Name Service name like 'keone.nad' (resolved on-chain). |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
token | string | ERC-20 token address. Omit to send native MON. |
ttl_seconds | integer | How long the approval link stays valid. Defaults to 5 minutes. |
grant_session_key Grant a session-key spend cap
Asks the user to authorize a scoped spend cap so the agent can execute write tools (transfers, swaps) WITHOUT a per-tx approval URL — within the grant's envelope. Returns an approval URL. After the user approves, transfers and swaps that fit inside the cap auto-execute and return the tx hash immediately.
| Parameter | Type | Description |
|---|---|---|
spend_cap_mon * | string | Maximum total MON the agent can spend under this grant, as a decimal string e.g. "1.5". |
allowed_selectors | array | Optional allowlist of 4-byte function selectors (e.g. '0xa9059cbb' for ERC-20 transfer). |
allowed_targets | array | Optional allowlist of recipient/contract addresses. If unset, the grant covers any target. |
approval_ttl_seconds | integer | |
label | string | Human-readable label. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
ttl_seconds | integer | How long this grant stays active, in seconds. Max 30 days. |
revoke_session_key Revoke a session-key grant
Revokes a grant immediately. Subsequent agent calls fall back to per-tx approvals.
| Parameter | Type | Description |
|---|---|---|
grant_id * | string | ID returned by `grant_session_key`. |
write_contract Send a transaction to any contract
Encodes and sends a transaction to any Monad contract. Auto-executes under a session grant if covered; otherwise returns an approval URL. Use `read_contract` for view functions — this rejects view/pure to avoid wasting a tx.
| Parameter | Type | Description |
|---|---|---|
abi * | Either a JSON ABI array (from artifacts) or a human-readable signature like 'function balanceOf(address) view returns (uint256)'. | |
address * | string | Contract address. |
function * | string | Function name to call (nonpayable or payable). |
args | array | |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
ttl_seconds | integer | |
value_mon | string | Native MON to attach (decimal string). Required for payable functions; rejected otherwise. |
pay_for_service Pay for an x402-protected service
Fetches `url`. If the server returns HTTP 402, signs an EIP-3009 USDC transferWithAuthorization via Privy, retries with the X-PAYMENT header, and returns the resulting body. The agent must specify `max_amount_usdc` as a hard ceiling — requests demanding more are refused.
| Parameter | Type | Description |
|---|---|---|
max_amount_usdc * | string | Maximum USDC the agent may spend on this request, decimal string e.g. "0.10". Hard cap — refuse to pay anything more. |
url * | string | Service URL to pay for. |
body | string | Request body (POST only). |
method | string | HTTP method for the resource fetch. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
bridge_execute Execute a bridge transaction (source chain)
Submits the source-chain transaction returned by `bridge_quote`. Currently the server-side submitter only signs on Monad — for cross-chain submission, open the approval URL on a wallet that supports the source chain.
| Parameter | Type | Description |
|---|---|---|
chain_id * | integer | |
data * | string | |
to * | string | |
ttl_seconds | integer | |
value_wei | string |
uniswap_quote Get a Uniswap v3 swap quote
Quotes an exact-input swap on Uniswap v3 on Monad. Returns amount out, best fee tier, and gas estimate. Read-only — calls QuoterV2 via eth_call.
| Parameter | Type | Description |
|---|---|---|
amount_in * | string | Amount of tokenIn to sell, e.g. "10". |
token_in * | string | Address of the token being sold. |
token_out * | Address of the token being bought. | |
fee | number | Uniswap v3 fee tier in bps*100. If omitted, the tool tries each tier and returns the best quote. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
uniswap_swap Swap tokens on Uniswap v3 (Monad)
Builds an unsigned exactInputSingle swap on Uniswap v3 and returns an approval URL. Automatically picks the best fee tier if not specified, applies slippage protection, and instructs the user to also approve the ERC-20 if needed. The user reviews and approves in the Privy wallet UI; poll the request with `poll_request` to get the tx hash.
| Parameter | Type | Description |
|---|---|---|
amount_in * | string | Decimal amount as a string, e.g. "1.5". Use a string to preserve precision. |
token_in * | string | |
token_out * | ||
fee | number | Uniswap v3 fee tier. If omitted, the best tier from a quote sweep is used. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
slippage_bps | integer | Max slippage in basis points (1bps = 0.01%). Default 50 = 0.5%. |
ttl_seconds | integer | How long the approval link stays valid. Defaults to 5 minutes. |
approve_erc20 Approve an ERC-20 spender
Builds an unsigned ERC-20 approve() and returns an approval URL. Typically used before a swap when the router doesn't have allowance yet.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount in token units. Pass "max" via a very large amount string for unlimited approval. |
spender * | Contract authorized to spend tokens (e.g. Uniswap router). | |
token * | string | ERC-20 token contract. |
network | string | Monad network — "mainnet" or "testnet". Defaults to the server's configured network. |
ttl_seconds | integer |