Loading...
npm install @bankless/onchain-mcp{
"mcpServers": {
"bankless": {
"command": "npx",
"args": [
"@bankless/onchain-mcp"
],
"env": {
"BANKLESS_API_TOKEN": "your_api_token_here"
}
}
}
}read_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.
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.