Query Onchain data, like ERC20 tokens, transaction history, smart contract state.
Query Onchain data, like ERC20 tokens, transaction history, smart contract state. That is what the bankless onchain mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
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.
The server publishes 5 tools. What each one is for:
read_contract — Read contract state from a blockchainInput — - network (string, required): The blockchain network (e.g., "ethereum", "polygon")get_proxy — Gets the proxy address for a given network and contractget_events — Fetches event logs for a given network and filter criteriabuild_event_topic — Builds an event topic signature based on event name and argumentsConfiguration is passed through the environment: BANKLESS_API_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
@bankless/onchain-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
This sits in the monitoring and observability group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Bankless Onchain's toolset — read_contract, Input, get_proxy and 2 more — is a fair guide to whether it matches your workflow.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| read_contract | Read contract state from a blockchain |
| Input | - network (string, required): The blockchain network (e.g., "ethereum", "polygon") |
| get_proxy | Gets the proxy address for a given network and contract |
| get_events | Fetches event logs for a given network and filter criteria |
| build_event_topic | Builds an event topic signature based on event name and arguments |
{
"mcpServers": {
"onchain": {
"command": "npx",
"args": ["-y", "@bankless/onchain-mcp"],
"env": {
"BANKLESS_API_TOKEN": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| BANKLESS_API_TOKEN | Credential the server authenticates with. | Yes |
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.
Dashboards, Prometheus and Loki queries, incidents and alerts — observability by conversation.
Errors with full context — stack traces, issue triage and AI-powered root-cause analysis from Sentry's server.
A Model Context Protocol (MCP) server that enables AI assistants to integrate with Prometheus Alertmanager
Auth0 Model Context Protocol (MCP) Server (Beta) — A secure and extendable implementation of an MCP server that provides AI assistants with
An MCP server for breaking down complex tasks into manageable pieces with structured JSON storage