Bankless Onchain MCP
by Bankless
Query on-chain data across Ethereum, Polygon, Arbitrum, and more from AI assistants
finance Node.js Intermediate Self-hostable
β 100 stars π
Updated: 1mo ago
Description
MCP server from Bankless for querying on-chain blockchain data directly from AI assistants. Retrieve ERC20 token balances, transaction histories, smart contract state, and token metadata across multiple EVM chains including Ethereum, Polygon, Arbitrum, and Optimism. Built for developers and analysts who need real-time blockchain insights without switching between block explorers β bringing on-chain analytics into the AI workflow with multi-chain support and structured data responses.
β Best for
Developers and analysts who need quick on-chain data access across multiple EVM chains from their AI workflow
βοΈ Skip if
You need to execute blockchain transactions rather than just query data
π‘ Use cases
- Querying ERC20 token balances and portfolio composition across chains
- Investigating transaction histories and wallet activity for analytics
- Reading smart contract state and verifying on-chain data during development
- Fetching token metadata and market information for DeFi research
π Pros
- β Multi-chain support covering Ethereum, Polygon, Arbitrum, and other EVM chains
- β Real-time on-chain data access without switching to block explorers
- β Structured responses optimized for AI assistant consumption
- β Covers tokens, transactions, contracts, and chain state in one server
π Cons
- β Read-only access β cannot execute transactions or modify on-chain state
- β Requires an API key for data provider access
- β Query depth may be limited by the underlying data provider's rate limits
π§ Exposed tools (5 tools)
| Tool | Category | Description |
|---|---|---|
| get_token_balances | query | Retrieve ERC20 token balances for a wallet across supported chains |
| get_transactions | query | Fetch transaction history for a wallet address |
| query_contract | query | Read smart contract state and call view functions |
| get_token_info | query | Get token metadata including name, symbol, decimals, and supply |
| get_chain_data | query | Query blockchain state like block numbers, gas prices, and chain info |
β‘ Installation
Prerequisites:
- β’ Node.js v18+
- β’ API key
- β’ API key required
Check Claude Code documentation to configure this MCP server.
π‘ Tips & tricks
Use get_token_balances with a specific chain parameter to avoid querying all chains at once. For transaction history, narrow the block range to improve response times on high-activity wallets.
π Alternatives
Quick info
- Author
- Bankless
- License
- MIT
- Runtime
- Node.js 18+
- Transport
- stdio
- Category
- finance
- Difficulty
- Intermediate
- Self-hostable
- β
- Auth
- β
- Docker
- β
- Version
- latest
- Updated
- Feb 28, 2026
Client compatibility
- β Claude Code
- β Cursor
- β VS Code Copilot
- β Gemini CLI
- β Windsurf
- β Cline
- β JetBrains AI
- β Warp
Platforms
π macOS π§ Linux πͺ Windows