evm-mcp-server

v2.0.4
@mcpdotdirect/evm-mcp-server Checked 9 hours ago Published 1 year ago

MCP server for interacting with EVM-compatible blockchains - supports 22 tools and 10 prompts across 60+ networks

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_wallet_address

Get the address of the configured wallet. Use this to verify which wallet is active.

get_chain_info

Get information about an EVM network: chain ID, current block number, and RPC endpoint

ParameterTypeDescription
networkstringNetwork name (e.g., 'ethereum', 'optimism', 'arbitrum', 'base') or chain ID. Defaults to Ethereum mainnet.

get_supported_networks

Get a list of all supported EVM networks

get_gas_price

Get current gas prices (base fee, standard, and fast) for a network

ParameterTypeDescription
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

resolve_ens_name

Resolve an ENS name to an Ethereum address

ParameterTypeDescription
ensName *stringENS name to resolve (e.g., 'vitalik.eth')
networkstringNetwork name or chain ID. ENS resolution works best on Ethereum mainnet. Defaults to Ethereum mainnet.

lookup_ens_address

Lookup the ENS name for an Ethereum address (reverse resolution)

ParameterTypeDescription
address *stringEthereum address to lookup
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

get_block

Get block details by block number or hash

ParameterTypeDescription
blockIdentifier *stringBlock number (as string) or block hash
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

get_latest_block

Get the latest block from the network

ParameterTypeDescription
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

get_balance

Get the native token balance (ETH, MATIC, etc.) for an address

ParameterTypeDescription
address *stringThe wallet address or ENS name
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

get_token_balance

Get the ERC20 token balance for an address

ParameterTypeDescription
address *stringThe wallet address or ENS name
tokenAddress *stringThe ERC20 token contract address
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

get_allowance

Check the allowance granted to a spender for a token. This tells you how much of a token an address can spend on your behalf.

ParameterTypeDescription
spenderAddress *stringThe address allowed to spend the token (usually a contract address)
tokenAddress *stringThe ERC20 token contract address
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.
ownerAddressstringThe owner address (defaults to the configured wallet)

get_transaction

Get transaction details by transaction hash

ParameterTypeDescription
txHash *stringTransaction hash (0x...)
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

get_transaction_receipt

Get transaction receipt (confirmation status, gas used, logs). Use this to check if a transaction has been confirmed.

ParameterTypeDescription
txHash *stringTransaction hash (0x...)
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

wait_for_transaction

Wait for a transaction to be confirmed (mined). Polls the network until confirmation.

ParameterTypeDescription
txHash *stringTransaction hash (0x...)
confirmationsnumberNumber of block confirmations required. Defaults to 1.
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

get_contract_abi

Fetch a contract's full ABI from Etherscan/block explorers. Use this to understand verified contracts before interacting. Requires ETHERSCAN_API_KEY. Supports 30+ EVM networks. Works best with verified contracts on block explorers.

ParameterTypeDescription
contractAddress *stringThe contract address (0x...)
networkstringNetwork name or chain ID. Defaults to ethereum. Supported: ethereum, polygon, arbitrum, optimism, base, avalanche, gnosis, fantom, bsc, celo, scroll, linea, zksync, manta, blast, and testnets (sepolia…

read_contract

Call read-only functions on a smart contract. Automatically fetches ABI from block explorer if not provided (requires ETHERSCAN_API_KEY). Falls back to common functions if contract is not verified. Use this to query contract state and data.

ParameterTypeDescription
contractAddress *stringThe contract address
functionName *stringFunction name (e.g., 'name', 'symbol', 'balanceOf', 'totalSupply', 'owner')
abiJsonstringFull contract ABI as JSON string (optional - will auto-fetch verified contract ABI if not provided)
argsarrayFunction arguments as strings (e.g., ['0xAddress'] for balanceOf)
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

write_contract

Execute state-changing functions on a smart contract. Automatically fetches ABI from block explorer if not provided (requires ETHERSCAN_API_KEY). Use this to call any write function on verified contracts. Requires wallet to be configured (via private key or mnemonic).

ParameterTypeDescription
contractAddress *stringThe contract address
functionName *stringFunction name to call (e.g., 'mint', 'swap', 'stake', 'approve')
abiJsonstringFull contract ABI as JSON string (optional - will auto-fetch verified contract ABI if not provided)
argsarrayFunction arguments as strings (e.g., ['0xAddress', '1000000'])
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.
valuestringETH value to send with transaction in ether (e.g., '0.1' for payable functions)

multicall

Batch multiple contract read calls into a single RPC request. Significantly reduces latency and RPC usage when querying multiple functions. Uses the Multicall3 contract deployed on all major networks. Perfect for portfolio analysis, price aggregation, and querying multiple contract states efficiently.

ParameterTypeDescription
calls *arrayArray of contract calls to batch together
allowFailurebooleanIf true, returns partial results even if some calls fail. Defaults to true.
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

transfer_native

Transfer native tokens (ETH, MATIC, etc.) to an address. Uses the configured wallet.

ParameterTypeDescription
amount *stringAmount to send in ether (e.g., '0.5' for 0.5 ETH)
to *stringRecipient address or ENS name
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

transfer_erc20

Transfer ERC20 tokens to an address. Uses the configured wallet.

ParameterTypeDescription
amount *stringAmount to send (in token units, accounting for decimals)
to *stringRecipient address or ENS name
tokenAddress *stringThe ERC20 token contract address
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

approve_token_spending

Approve a spender (contract) to spend tokens on your behalf. Required before interacting with DEXes, lending protocols, etc.

ParameterTypeDescription
amount *stringAmount to approve (in token units). Use '0' to revoke approval.
spenderAddress *stringThe address that will be allowed to spend tokens (usually a contract)
tokenAddress *stringThe ERC20 token contract address
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

get_nft_info

Get information about an ERC721 NFT including metadata URI

ParameterTypeDescription
contractAddress *stringThe NFT contract address
tokenId *stringThe NFT token ID
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

get_erc1155_balance

Get ERC1155 token balance for an address

ParameterTypeDescription
address *stringThe owner address or ENS name
contractAddress *stringThe ERC1155 contract address
tokenId *stringThe token ID
networkstringNetwork name or chain ID. Defaults to Ethereum mainnet.

sign_message

Sign an arbitrary message using the configured wallet. Useful for authentication (SIWE), meta-transactions, and off-chain signatures. The signature can be verified on-chain or off-chain.

ParameterTypeDescription
message *stringThe message to sign (plain text or hex-encoded data)

sign_typed_data

Sign structured data (EIP-712) using the configured wallet. Used for gasless transactions, meta-transactions, permit signatures, and protocol-specific signatures. The signature follows the EIP-712 standard.

ParameterTypeDescription
domainJson *stringEIP-712 domain as JSON string with fields: name, version, chainId, verifyingContract, salt (all optional)
messageJson *stringThe message data to sign as JSON string
primaryType *stringThe primary type name (e.g., 'Mail', 'Permit', 'MetaTransaction')
typesJson *stringEIP-712 types definition as JSON string (exclude EIP712Domain type - it's added automatically)