Bankless Onchain MCP Server

Query Onchain data, like ERC20 tokens, transaction history, smart contract state.

Local serverstdio

What is the Bankless Onchain MCP Server?

Query Onchain data, like ERC20 tokens, transaction history, smart contract state.

The short version

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
read_contractRead contract state from a blockchain
Input:network (string, required): The blockchain network (e.g., "ethereum", "base")
contractstring, required): The contract address
methodstring, required): The contract method to call
inputsarray, required): Input parameters for the method call, each containing:
valueany): The value of the input parameter
outputsarray, required): Expected output types, each containing:
get_proxyGets the proxy address for a given network and contract
get_eventsFetches event logs for a given network and filter criteria
addressesarray, required): List of contract addresses to filter events
topicstring, required): Primary topic to filter events
optionalTopicsarray, optional): Optional additional topics (can include null values)
build_event_topicBuilds an event topic signature based on event name and arguments
argumentsarray, required): Event arguments types, each containing:

How to install the Bankless Onchain MCP Server

{
  "mcpServers": {
    "bankless": {
      "command": "npx",
      "args": [
        "@bankless/onchain-mcp"
      ],
      "env": {
        "BANKLESS_API_TOKEN": "YOUR_BANKLESS_API_TOKEN"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
BANKLESS_API_TOKENDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Bankless Onchain to read contract.”
  • “Use Bankless Onchain to Input.”
  • “Use Bankless Onchain to get proxy.”

Frequently asked questions

Query Onchain data, like ERC20 tokens, transaction history, smart contract state. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.