Best for
- Developers building AI agents that need on-chain data
- Smart contract auditing and data analysis
- Building DeFi dashboards or monitoring tools
The project is no longer receiving updates but core functionality remains usable. Suitable for developers needing quick access to on-chain data, but note its read-only nature and reliance on an external 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. It supports contract operations (read state, get proxy, ABI, source), event operations (get logs, build topic), and transaction operations (history and details).
npx @bankless/onchain-mcp.{
"mcpServers": {
"bankless": {
"command": "npx",
"args": [
"@bankless/onchain-mcp"
],
"env": {
"BANKLESS_API_TOKEN": "your_api_token_here"
}
}
}
}