onchain-mcp

onchain-mcp

3.5

If you are the rightful owner of onchain-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP (Model Context Protocol) server for blockchain data interaction through the Bankless API.

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. This server facilitates operations such as reading contract states, retrieving proxy addresses, fetching contract ABIs, and obtaining source code for verified contracts. Additionally, it supports event operations like fetching event logs and building event topic signatures, as well as transaction operations to retrieve transaction history and detailed transaction information. The server is designed to integrate seamlessly with AI models, enabling them to perform complex blockchain data interactions efficiently.

Features

  • Read Contract State: Allows reading of smart contract states across various blockchain networks.
  • Get Proxy: Retrieves proxy implementation contract addresses.
  • Get ABI: Fetches the Application Binary Interface for a contract.
  • Get Source: Retrieves source code and metadata for verified contracts.
  • Get Events: Fetches event logs based on specified topics.

Tools

  1. read_contract

    Read contract state from a blockchain.

  2. get_proxy

    Gets the proxy address for a given network and contract.

  3. get_events

    Fetches event logs for a given network and filter criteria.

  4. build_event_topic

    Builds an event topic signature based on event name and arguments.