MCP server providing blockchain data access via Bankless API for contract, event, and transaction queries.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
The install command below started, but didn't respond the way we expected when we tried to talk to it.
npx -y @bankless/onchain-mcpinitialize succeeded but no response to tools/list.
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Onchain MCP.
networkCallable MCP tool function
contractCallable MCP tool function
methodCallable MCP tool function
inputsCallable MCP tool function
typeCallable MCP tool function
valueCallable MCP tool function
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.
https://github.com/user-attachments/assets/95732dff-ae5f-45a6-928a-1ae17c0ddf9d
The server provides the following onchain data 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.
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.
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.
read_contract
network (string, required): The blockchain network (e.g., "ethereum", "polygon")contract (string, required): The contract addressmethod (string, required): The contract method to callinputs (array, required): Input parameters for the method call, each containing:
type (string): The type of the input parameter (e.g., "address", "uint256")value (any): The value of the input parameteroutputs (array, required): Expected output types, each containing:
type (string): The expected output typeget_proxy
network (string, required): The blockchain network (e.g., "ethereum", "base")contract (string, required): The contract addressget_events
network (string, required): The blockchain network (e.g., "ethereum", "base")addresses (array, required): List of contract addresses to filter eventstopic (string, required): Primary topic to filter eventsoptionalTopics (array, optional): Optional additional topics (can include null values)build_event_topic
network (string, required): The blockchain network (e.g., "ethereum", "base")name (string, required): Event name (e.g., "Transfer(address,address,uint256)")arguments (array, required): Event arguments types, each containing:
type (string): The argument type (e.g., "address", "uint256")Before using the server, set your Bankless API token. For details on how to obtain your Bankless API token, head to https://docs.bankless.com/bankless-api/other-services/onchain-mcp
The server can be run directly from the command line:
This server implements the Model Context Protocol (MCP), which allows it to be used as a tool provider for compatible AI models. Here are some example calls for each tool:
To integrate this server with AI applications that support MCP, add the following to your app's server configuration:
The server provides specific error types for different scenarios:
BanklessValidationError: Invalid input parametersBanklessAuthenticationError: API token issuesBanklessResourceNotFoundError: Requested resource not foundBanklessRateLimitError: API rate limit exceededIn order to guide an LLM model to use the Bankless Onchain MCP Server, the following prompts can be used:
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/bankless-onchain-mcp)<a href="https://allmcps.com/mcp/bankless-onchain-mcp"><img src="https://allmcps.com/api/badge/bankless-onchain-mcp?style=directory" alt="Onchain MCP on AllMCPs" /></a>