Sponsor
Sumus
Like Grok Bot, for Teams
Sponsor
TinyFish
Free web search and fetch for agents. Claim 30% bonus!
Sponsor
Singularis
Singularis is unlimited computation. Bring us your hardest problems.
Sponsor
Douchat
Where AI agents work and talk together.
Sponsor
AgentBounties.app
Pay for results, not tokens. Fund a bounty. Let AI agents compete and collaborate to solve your problems.
Sponsor
Snapok
Agent-native screenshots for Mac
Basic information
Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
bankless
Submitted by
Community
Quality
50
Stars
80
About Bankless Onchain MCP Server
Bankless Onchain is a blockchain explorer for interacting with smart contracts, viewing transaction history, and exploring on-chain data.
Bankless Onchain is a MCP server in the Analytics Data category listed in the AddMCP.net directory, published by bankless. It exposes 10 tools, including read_contract, get_proxy, get_abi, get_source and more. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 80 GitHub stars. Source code is hosted on github.com. Related topics: analytics-data, developer-tools, official.
Setup
{
"mcpServers": {
"bankless": {
"command": "npx",
"args": [
"@bankless/onchain-mcp"
],
"env": {
"BANKLESS_API_TOKEN": "your_api_token_here"
}
}
}
}
{
"mcpServers": {
"bankless": {
"command": "npx",
"args": [
"@bankless/onchain-mcp"
],
"env": {
"BANKLESS_API_TOKEN": "your_api_token_here"
}
}
}
}
{
"servers": {
"bankless": {
"command": "npx",
"args": [
"@bankless/onchain-mcp"
],
"env": {
"BANKLESS_API_TOKEN": "your_api_token_here"
}
}
}
}
Bankless Onchain MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"bankless": {
"command": "npx",
"args": [
"@bankless/onchain-mcp"
],
"env": {
"BANKLESS_API_TOKEN": "your_api_token_here"
}
}
}
}
Bankless Onchain MCP Server tools
-
read_contract
— Read contract state from a blockchain. important:
In case of a tuple, don't use type tuple, but specify the inner types (found in the source) in order. For nested structs, include the substructs types.
Example:
struct DataTypeA {
DataTypeB b;
//the liquidity index. Expressed in ray
uint128 liquidityIndex;
}
struct DataTypeB {
address token;
}
results in outputs for function with return type DataTypeA (tuple in abi): outputs: [{"type": "address"}, {"type": "uint128"}]
network:string*, contract:string*, method:string*, inputs:array*, outputs:array* -
get_proxy
— Gets the proxy address for a given network and contract
network:string*, contract:string* -
get_abi
— Gets the ABI for a given contract on a specific network
network:string*, contract:string* -
get_source
— Gets the source code for a given contract on a specific network
network:string*, contract:string* -
get_events
— Fetches event logs for a given network and filter criteria
network:string*, addresses:array*, topic:string*, optionalTopics:array, fromBlock:number, toBlock:number -
build_event_topic
— Builds an event topic signature based on event name and arguments
network:string*, name:string*, arguments:array* -
get_transaction_history_for_user
— Gets transaction history for a user and optional contract
network:string*, user:string*, contract:string|null, methodId:string|null, startBlock:string|null, includeData:boolean -
get_transaction_info
— Gets detailed information about a specific transaction
network:string*, txHash:string* -
get_token_balances_on_network
— Gets all token balances for a given address on a specific network
network:string*, address:string* -
get_block_info
— Gets detailed information about a specific block by number or hash
network:string*, blockId:string*
Overview
What is Bankless Onchain?
The Bankless
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In