nodeflare-mcp

v0.8.0
io.github.Nodeflare-app/nodeflare-mcp Checked 10 hours ago Published 4 months ago

Blockchain JSON-RPC on 23 EVM chains for AI agents - free tier, API key, or x402 pay-per-call.

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

list_chains

List the 23 EVM chains NodeFlare serves, with chain IDs and endpoint URLs.

get_block_number

Get the latest block number on a chain (decimal and hex).

ParameterTypeDescription
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.

get_balance

Get the native-token balance of an address — raw wei plus a human-readable amount in the chain's native currency. The address may be an ENS name (e.g. 'vitalik.eth').

ParameterTypeDescription
address *string0x-address or ENS name
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.

get_transaction_receipt

Get the receipt of a transaction by hash (status, logs, gas used).

ParameterTypeDescription
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.
hash *string0x-transaction hash

eth_call

Execute a read-only contract call (eth_call) and return the raw result.

ParameterTypeDescription
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.
data *stringABI-encoded calldata (0x…)
to *stringContract address or ENS name
fromstringOptional caller address or ENS name

get_logs

Fetch contract event logs (eth_getLogs). Heavy method: needs NODEFLARE_API_KEY or an x402 wallet (X402_PRIVATE_KEY) — costs ~$0.001 via x402.

ParameterTypeDescription
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.
fromBlock *stringHex block number or tag, e.g. '0x112a880' or 'latest'
toBlock *stringHex block number or tag
addressstringContract address filter
topicsarrayTopic filters

rpc_call

Make any JSON-RPC call on any supported chain. Heavy methods (eth_getLogs, trace_*, debug_*) need NODEFLARE_API_KEY or an x402 wallet.

ParameterTypeDescription
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.
method *stringJSON-RPC method name, e.g. 'eth_gasPrice'
paramsarrayJSON-RPC params array

get_transaction

Get a transaction by its hash (from, to, value, input, block, gas).

ParameterTypeDescription
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.
hash *string0x-transaction hash

get_block

Get a block by number or tag (e.g. 'latest', 'finalized', or a hex number). Set fullTransactions to include full tx objects instead of hashes.

ParameterTypeDescription
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.
blockstringHex block number or tag ('latest', 'finalized', 'safe', 'earliest')
fullTransactionsbooleanInclude full transaction objects

get_gas_price

Get current gas pricing on a chain: base gas price and the suggested priority fee (EIP-1559), both in wei (hex).

ParameterTypeDescription
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.

get_token_balance

Get an ERC-20 token balance for an address, returned both raw and human-readable (uses the token's decimals and symbol).

ParameterTypeDescription
address *stringHolder address or ENS name to check
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.
token *stringERC-20 contract address

get_token_metadata

Get ERC-20 token metadata: name, symbol, decimals and total supply (raw + human-readable).

ParameterTypeDescription
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.
token *stringERC-20 contract address

resolve_ens

Resolve an ENS name to an address (forward), or a 0x-address to its primary ENS name (reverse). ENS is read from Ethereum mainnet.

ParameterTypeDescription
name *stringAn ENS name like 'vitalik.eth' to resolve to an address, or a 0x-address to reverse-resolve to its primary ENS name

get_multichain_balances

Get native + ERC-20 token balances for one address across many of the 23 EVM chains in a SINGLE call — including young chains (Robinhood, Plasma, Ink) that Alchemy/Moralis omit. With an x402 wallet (X402_PRIVATE_KEY) this is paid per request (~$0.0003/chain); otherwise it uses the free public tier.

ParameterTypeDescription
address *string0x-address to look up
chainsarrayChains to include — slug, name, or chain ID; defaults to all 23
discoverbooleanAuto-discover the ERC-20 tokens the address holds via Transfer logs. Needs an x402 wallet (heavy method). Comprehensive on young chains; large chains cap the scan — narrow with fromBlock.
fromBlockstringStart block for discovery (hex or 'earliest'); narrow the window on high-history chains
includeDustbooleanDiscovery only: keep dust balances below 1e-9 units. Default false.
includeSpambooleanDiscovery only: keep tokens with no DefiLlama price (likely spam/airdrops) on price-covered chains. Default false.
minUsdnumberDiscovery only: drop discovered tokens worth less than this USD value on price-covered chains (default 0.01, filters near-worthless spam). Set 0 to keep any priced token.
tokensobjectERC-20 contract addresses per chain, e.g. { base: ['0x833589…'] }

get_token_allowances

ERC-20 approvals a wallet has granted (what it approved and for how much) across many of the 23 EVM chains in ONE call — including young chains (Robinhood, Plasma, Ink) that revoke.cash-style tools skip. Scans Approval logs, reads the live allowance, drops revoked ones, flags unlimited approvals. Heavy: needs NODEFLARE_API_KEY or X402_PRIVATE_KEY.

ParameterTypeDescription
address *string0x owner/approver address to look up
chainsarrayChains to include — slug/name/ID; defaults to all 23

get_wallet_report

The full agent-ready 'know this wallet' report in ONE call: native + ERC-20 balances (USD-priced), a rolled-up total + top holdings, AND the active token approvals (revoke risk) across many of the 23 EVM chains — including young chains big indexers skip. The approvals half is heavy: needs NODEFLARE_API_KEY or X402_PRIVATE_KEY (balances/USD come back either way).

ParameterTypeDescription
address *string0x-address to report on
chainsarrayChains to include — slug/name/ID; defaults to all 23

check_token_safety

Risk-check an ERC-20 before trading it: metadata, contract + ownership status, upgradeable-proxy detection, holder concentration, and a transfer/honeypot simulation → risk signals + a score. The deep checks (concentration, honeypot) are heavy: needs NODEFLARE_API_KEY or X402_PRIVATE_KEY. Works on young chains (Zircuit, Robinhood, Plasma, Ink) that big indexers leave empty.

ParameterTypeDescription
chain *stringChain — slug (eth, base, robinhood…), name, or chain ID
token *string0x ERC-20 contract address to check

simulate_transaction

Transaction pre-flight on one chain: will this tx revert (and why), how much gas, and which tokens/ETH move? The asset-change tracing is heavy: needs NODEFLARE_API_KEY or X402_PRIVATE_KEY (revert/gas come back either way). Built for agents checking a tx before broadcasting.

ParameterTypeDescription
chain *stringChain — slug/name/ID
to *string0x target/contract address
datastring0x calldata (default 0x)
fromstringOptional 0x sender address
valuestringHex wei to send (default 0x0)

onchain_answer

Onchain Answer Engine: ask a plain-English question about any wallet or token across the 23 EVM chains and get back a CITED verdict in one call — 'is token 0x… on <chain> a scam?', 'what does wallet 0x… hold?'. NodeFlare plans the on-chain lookups, runs them on its own nodes, and synthesizes a sourced answer. Paid: needs NODEFLARE_API_KEY or X402_PRIVATE_KEY (no free anonymous tier — it runs on a GPU).

ParameterTypeDescription
question *stringNatural-language question about a wallet or token, e.g. 'Is token 0xdAC17…ec7 on eth a scam?'

get_token_price

Current USD price of an ERC-20 token from DefiLlama (free, keyless): price + symbol + confidence, or null for unlisted/thin-market tokens. Well-covered chains only (eth, base, bnb, arb, op, avax, polygon, linea, mantle, sonic, unichain, sei, cronos).

ParameterTypeDescription
chain *stringChain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values.
token *string0x ERC-20 contract address

compare_gas

Compare current gas price ACROSS chains in one call — gwei per chain, cheapest first, so an agent can pick where to transact. Defaults to the majors (eth, base, arb, op, bnb, polygon); pass chains to override.

ParameterTypeDescription
chainsarrayChains to compare — slug/name/ID; defaults to the majors