monad-mcp

v0.2.1
io.github.pareen/monad-mcp Checked 2 days ago Published 6 months ago

Monad 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.

ParameterTypeDescription
addressstringAddress or '.nad' name to query. Defaults to the authenticated user's wallet.
networkstringMonad 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.

ParameterTypeDescription
token *stringERC-20 contract address.
addressstringHolder address or '.nad' name. Defaults to the authenticated user's wallet.
networkstringMonad 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.

ParameterTypeDescription
addressstringAddress or '.nad' name to query. Defaults to the authenticated user's wallet.
lookback_blocksintegerNumber 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.
networkstringMonad 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.

ParameterTypeDescription
tx_hash *stringTransaction hash to look up.
networkstringMonad 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.

ParameterTypeDescription
request_id *stringThe 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.

ParameterTypeDescription
abi *Either a JSON ABI array (from artifacts) or a human-readable signature like 'function balanceOf(address) view returns (uint256)'.
address *stringContract address.
function *stringFunction name to call (must be view/pure).
argsarrayPositional args, JSON-coerced.
networkstringMonad 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.

ParameterTypeDescription
abi *Either a JSON ABI array (from artifacts) or a human-readable signature like 'function balanceOf(address) view returns (uint256)'.
data *stringHex-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.

ParameterTypeDescription
query *stringSymbol, name, alias, or 0x address.
networkstringMonad 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.

ParameterTypeDescription
token *stringERC-20 token address (or use resolve_token to look it up).
networkstringMonad 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.

ParameterTypeDescription
networkstringMonad 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.

ParameterTypeDescription
addressstringHolder address or '.nad' name. Defaults to the authenticated user's wallet.
include_zerobooleanInclude canonical tokens with zero balance in the response.
networkstringMonad 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.

ParameterTypeDescription
amount *stringAmount in source token, decimal e.g. '10'.
from_chain_id *integerSource chain ID (e.g. 1=Ethereum, 10=Optimism, 42161=Arbitrum).
from_token *stringSource token: 0x address, or '0x0000…0000' for native.
to_token *stringDestination token on Monad (0x address) or 'MON' for native.
from_decimalsinteger
recipientstringAddress on Monad to receive bridged tokens. Defaults to the user's wallet.
slippage_bpsintegerDefault 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.

ParameterTypeDescription
to *string
datastring
fromSender address. Defaults to the authenticated wallet, then to zero.
networkstringMonad network — "mainnet" or "testnet". Defaults to the server's configured network.
value_weistring

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).

ParameterTypeDescription
token *string
networkstringMonad 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.

ParameterTypeDescription
query *stringA '.nad' name (e.g. 'keone.nad') or a 0x address.
networkstringMonad 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.

ParameterTypeDescription
emailstringEmail 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.

ParameterTypeDescription
amount *stringAmount to send, as a decimal string e.g. "1.5".
to *stringRecipient — a 0x address or a Nad Name Service name like 'keone.nad' (resolved on-chain).
networkstringMonad network — "mainnet" or "testnet". Defaults to the server's configured network.
tokenstringERC-20 token address. Omit to send native MON.
ttl_secondsintegerHow 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.

ParameterTypeDescription
spend_cap_mon *stringMaximum total MON the agent can spend under this grant, as a decimal string e.g. "1.5".
allowed_selectorsarrayOptional allowlist of 4-byte function selectors (e.g. '0xa9059cbb' for ERC-20 transfer).
allowed_targetsarrayOptional allowlist of recipient/contract addresses. If unset, the grant covers any target.
approval_ttl_secondsinteger
labelstringHuman-readable label.
networkstringMonad network — "mainnet" or "testnet". Defaults to the server's configured network.
ttl_secondsintegerHow 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.

ParameterTypeDescription
grant_id *stringID 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.

ParameterTypeDescription
abi *Either a JSON ABI array (from artifacts) or a human-readable signature like 'function balanceOf(address) view returns (uint256)'.
address *stringContract address.
function *stringFunction name to call (nonpayable or payable).
argsarray
networkstringMonad network — "mainnet" or "testnet". Defaults to the server's configured network.
ttl_secondsinteger
value_monstringNative 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.

ParameterTypeDescription
max_amount_usdc *stringMaximum USDC the agent may spend on this request, decimal string e.g. "0.10". Hard cap — refuse to pay anything more.
url *stringService URL to pay for.
bodystringRequest body (POST only).
methodstringHTTP method for the resource fetch.
networkstringMonad 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.

ParameterTypeDescription
chain_id *integer
data *string
to *string
ttl_secondsinteger
value_weistring

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.

ParameterTypeDescription
amount_in *stringAmount of tokenIn to sell, e.g. "10".
token_in *stringAddress of the token being sold.
token_out *Address of the token being bought.
feenumberUniswap v3 fee tier in bps*100. If omitted, the tool tries each tier and returns the best quote.
networkstringMonad 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.

ParameterTypeDescription
amount_in *stringDecimal amount as a string, e.g. "1.5". Use a string to preserve precision.
token_in *string
token_out *
feenumberUniswap v3 fee tier. If omitted, the best tier from a quote sweep is used.
networkstringMonad network — "mainnet" or "testnet". Defaults to the server's configured network.
slippage_bpsintegerMax slippage in basis points (1bps = 0.01%). Default 50 = 0.5%.
ttl_secondsintegerHow 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.

ParameterTypeDescription
amount *stringAmount 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 *stringERC-20 token contract.
networkstringMonad network — "mainnet" or "testnet". Defaults to the server's configured network.
ttl_secondsinteger