Loading...

The Bankless Onchain MCP Server provides a secure interface for AI models to interact with blockchain data via the Bankless API, enabling on-chain data analysis and smart contract interaction.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
The Bankless Onchain MCP Server provides a secure interface for AI models to interact with blockchain data via the Bankless API, enabling on-chain data analysis and smart contract interaction.
The server is relatively safe for read operations on blockchain data. However, the lack of sandboxing and reliance on external APIs introduce some risks. It is crucial to protect the Bankless API token and validate the data retrieved.
Performance is limited by the Bankless API's response times and rate limits. Consider caching frequently accessed data to improve performance.
Cost is primarily determined by the usage of the Bankless API. Monitor API usage to avoid unexpected charges.
npm install @bankless/onchain-mcp{
"mcpServers": {
"bankless": {
"command": "npx",
"args": [
"@bankless/onchain-mcp"
],
"env": {
"BANKLESS_API_TOKEN": "your_api_token_here"
}
}
}
}BANKLESS_API_TOKENread_contractReads the state of a smart contract on a specified blockchain network.
Read-only operation, no modification of contract state.
get_proxyRetrieves the implementation contract address for a given proxy contract.
Read-only operation, no modification of contract state.
get_eventsFetches event logs for a contract based on specified filter criteria.
Read-only operation, retrieves existing event data.
build_event_topicGenerates an event topic signature from an event name and argument types.
Pure computation, no external interaction.
API Key
cloud
The server is relatively safe for read operations on blockchain data. However, the lack of sandboxing and reliance on external APIs introduce some risks. It is crucial to protect the Bankless API token and validate the data retrieved.
The server primarily supports read operations, limiting the risk of unintended modifications. However, the lack of sandboxing means that AI models must be carefully designed to avoid misinterpreting data or making incorrect decisions.
Production Tip
Monitor API usage and error rates to ensure the server is operating within acceptable limits and to identify potential issues.
The server supports various blockchain networks, including Ethereum and Polygon. Refer to the Bankless API documentation for a complete list.
You can obtain a Bankless API token by visiting https://docs.bankless.com/bankless-api/other-services/onchain-mcp.
The rate limit varies depending on your subscription plan. Refer to the Bankless API documentation for details.
Use the `get_proxy` tool to fetch the implementation contract address. Then, use that address for subsequent contract interactions.
Use the `get_events` tool and specify the contract addresses, topic, and optional topics to filter the event logs.
The server provides specific error types for invalid input parameters, API token issues, resource not found, and rate limit exceeded.
No, this server primarily supports read operations. It does not provide tools for modifying blockchain state directly.