The Bankless Onchain MCP Server provides a framework for interacting with on-chain data via the Bankless API. It implements the Model Context Protocol (MCP) to allow AI models to access blockchain state and event data in a structured way.
Features
The server provides the following onchain data operations:
Contract Operations
Read Contract State (read_contract): Read state from smart contracts on various blockchain networks.
Get Proxy (get_proxy): Retrieve proxy implementation contract addresses.
Get ABI (get_abi): Fetch the ABI (Application Binary Interface) for a contract.
Get Source (get_source): Retrieve the source code for a verified contract.
Event Operations
Get Events (get_events): Fetch event logs for a contract based on topics.
Build Event Topic (build_event_topic): Generate an event topic signature from event name and argument types.
Transaction Operations
Get Transaction History (get_transaction_history): Retrieve transaction history for a user address.
Get Transaction Info (get_transaction_info): Get detailed information about a specific transaction.