ChainRPC MCP

v2.0.2
io.github.John0n1/chainrpc-mcp Checked 2 days ago Published 3 months ago

Safety-first EVM and Bitcoin RPC tools for balances, contracts, blocks, and transactions

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

evm_getBlockNumber

Return the latest EVM block number from the configured endpoint.

evm_getChainInfo

Return the EVM chain ID and upstream client version.

evm_getNativeBalance

Read an address native-token balance at an EVM block without requiring a wallet.

ParameterTypeDescription
address *string
blockstring | numberBlock number or latest, earliest, pending, safe, or finalized

evm_getBlock

Read an EVM block by number, tag, or block hash.

ParameterTypeDescription
block *
includeTransactionsboolean

evm_getTransaction

Read an EVM transaction and its receipt by transaction hash.

ParameterTypeDescription
hash *string

evm_call

Run a read-only eth_call with pre-encoded calldata. This never submits a transaction.

ParameterTypeDescription
to *string
blockstring | number
datastring
from
valueWeistring | number

evm_readContract

Encode, execute, and decode a read-only smart-contract function using a supplied JSON ABI.

ParameterTypeDescription
abi *arrayJSON ABI entries needed for this function
address *string
functionName *string
argsarray
blockstring | number

evm_estimateTransaction

Estimate gas for an unsigned EVM transaction. Values are accepted as decimal or hex quantities.

evm_getLogs

Read EVM event logs using an address/topics filter and bounded block range.

evm_broadcastTransaction

Preflight and broadcast an already-signed EVM transaction. Disabled unless ALLOW_EVM_BROADCAST=true; never signs or stores keys.

ParameterTypeDescription
confirmation *string
expectedChainId *integer
rawTransaction *string

btc_getBlockchainInfo

Return Bitcoin network, chain height, sync, and pruning information.

btc_getAddressBalance

Scan the Bitcoin UTXO set for an address and return its confirmed spendable outputs. This is not address history and shared RPC nodes may reject concurrent scans.

ParameterTypeDescription
address *string

btc_getBlock

Read a Bitcoin block by height or hash with selectable verbosity.

ParameterTypeDescription
block *
verbosityinteger

btc_getTransaction

Read a raw Bitcoin transaction by txid. A block hash can make confirmed transaction lookup more reliable.

ParameterTypeDescription
txid *string
blockHashstring

btc_getTxOut

Read an unspent Bitcoin transaction output. Returns null when the output is spent or unknown.

ParameterTypeDescription
txid *string
vout *integer
includeMempoolboolean

btc_estimateFee

Estimate a Bitcoin fee rate for confirmation within a target number of blocks.

ParameterTypeDescription
confirmationTarget *integer
modestring

btc_decodeRawTransaction

Decode a serialized Bitcoin transaction without broadcasting it.

ParameterTypeDescription
rawTransaction *string

btc_broadcastTransaction

Validate and broadcast an already-signed Bitcoin transaction. Disabled unless ALLOW_BITCOIN_BROADCAST=true; never signs or stores keys.

ParameterTypeDescription
confirmation *string
expectedNetwork *string
rawTransaction *string
maxFeeRateBtcPerKvBnumber