The Bankless Onchain MCP Server enables interaction with blockchain data through the Bankless API, implementing the Model Context Protocol for AI models to access on-chain state and event data in
The Bankless Onchain MCP Server facilitates blockchain data interaction through the Bankless API, implementing the Model Context Protocol (MCP) for AI models to access on-chain data in a structured manner.
This server provides a framework for interacting with on-chain data via the Bankless API. It enables AI models to access blockchain state and event data in a structured way.
The server offers on-chain data operations, including:
Key tools include read_contract
, get_proxy
, get_events
, and build_event_topic
, each with specific input parameters and return values for interacting with blockchain data.
Installation is done via npm install @bankless/onchain-mcp
. The server requires a Bankless API token, set via environment variable. It can be run from the command line using npx @bankless/onchain-mcp
and integrated with LLM tools using MCP.
The project can be built from source by cloning the repository, installing dependencies, and running npm run build
. A debug mode is available via npm run debug
.
The server provides specific error types for different scenarios. The README also includes prompting tips for guiding LLM models to effectively use the server.
Bankless/onchain-mcp
March 10, 2025
March 28, 2025
TypeScript