Skip to main content

Available Tools

The MCP 0G Server provides 50+ tools organized into categories for comprehensive blockchain interaction.

Blockchain Query Tools (11 tools)

Network Information

get_chain_info

Returns complete information about the 0G Galileo testnet including chain ID, RPC endpoints, and network status.

get_block

Get detailed block information by number or hash.

get_gas_price

Get current gas prices for transaction estimation.

Account Queries

get_balance

Get OG token balance for any address.

get_transaction_count

Get the nonce (transaction count) for an address.

get_code

Get bytecode at an address to check if it’s a contract.

Transaction Queries

get_transaction

Get detailed transaction information by hash.

estimate_gas

Estimate gas required for a transaction.

Smart Contract Interaction

call_contract

Call smart contract methods (read-only).

get_logs

Query event logs from smart contracts.

get_faucet_info

Get testnet faucet information for obtaining test tokens.

Wallet Management Tools (10 tools)

Wallet Creation

create_wallet

Create a new encrypted wallet with secure key generation.

import_wallet

Import wallet from private key or seed phrase.

Wallet Operations

list_wallets

List all stored wallets (public information only).

get_wallet

Get wallet details (public information only).

delete_wallet

Remove a wallet from storage.

set_default_wallet

Set the default wallet for transactions.

Advanced Wallet Features

export_wallet

Export wallet information (public data only).

derive_addresses

Derive multiple addresses from HD wallet.

sign_message

Sign a message with a wallet.

verify_message

Verify a signed message.

Transaction Tools (13 tools)

Transaction Preview and Creation

preview_transaction

Preview transaction with gas estimation and validation.

create_transaction_request

Create a transaction request for approval.

Transaction Approval Workflow

approve_transaction

Approve a pending transaction.

reject_transaction

Reject a pending transaction.

execute_transaction

Execute an approved transaction.

Transaction Management

list_pending_transactions

List all transactions awaiting approval.

get_transaction_request

Get details of a transaction request.

track_transaction

Monitor transaction status and confirmations.

Batch and Advanced Operations

batch_transactions

Send multiple transactions in a batch.

simulate_transaction

Simulate transaction execution without sending.

replace_transaction

Replace (speed up or cancel) a pending transaction.

send_transaction

Direct transaction sending (requires caution).

Security Configuration

set_approval_policy

Configure transaction approval policies.

add_to_whitelist

Add addresses to trusted whitelist.

Token Management Tools (16 tools)

Token Discovery & Metadata (5 tools)

get_token_metadata

Get comprehensive token information including name, symbol, decimals.

get_token_balance

Check token balance for any address.

get_token_allowance

Check token approval amounts.

search_tokens

Find tokens by name, symbol, or address.

add_custom_token

Add custom tokens to watchlist.

Token Operations (4 tools)

preview_token_transfer

Preview token transfer with cost estimation.

create_token_transfer

Execute token transfer.

create_token_approval

Approve tokens for contract spending.

revoke_token_approval

Revoke token approvals for security.

Portfolio Management (4 tools)

get_token_portfolio

Get complete portfolio overview.

get_portfolio_metrics

Get portfolio analytics and risk assessment.

manage_watchlist

Manage token watchlist.

discover_tokens

Find new token opportunities.

Batch Operations (3 tools)

batch_token_transfers

Execute multiple token transfers.

batch_token_approvals

Execute multiple token approvals.

get_token_portfolio_with_prices

Get portfolio with current market prices.

Smart Contract Deployment Tools (5 tools)

Contract Development

compile_contract

Compile Solidity source code to bytecode.

deploy_contract

Deploy compiled contracts to blockchain.

estimate_deployment_cost

Estimate gas costs for contract deployment.

verify_contract

Verify deployed contract matches source code.

get_deployment_history

Track all deployed contracts.

Usage Examples

Natural Language Interaction

You can use these tools through natural language with AI assistants:

Programmatic Usage

Tools can also be called directly through the MCP protocol for programmatic access.