Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI → MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE ↗ (opens in a new tab)
  • llms.txt ↗ (opens in a new tab)
  • Catalog JSON ↗ (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub ↗ (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 💰 Finance & Fintech
  3. Onchain MCP
Onchain MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 1:16:50 PM

Onchain MCP

User RatingsBe the first to rate and review this MCP server!
View Repository80 GitHub StarsTotal stargazers on GitHub for the source repository (80 stars).Visit Website
blockchainsmart-contractseventstransactionsfinance

MCP server providing blockchain data access via Bankless API for contract, event, and transaction queries.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.

Add to CursorAdd to VS Code
We couldn’t automatically confirm this listing starts correctly

The install command below started, but didn't respond the way we expected when we tried to talk to it.

npx -y @bankless/onchain-mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.

Manual Client & Custom JSON ConfigExpand JSON ▾

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "bankless-onchain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@bankless/onchain-mcp"
      ]
    }
  }
}

💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (12) Directory Badge Claim listing Alternatives💰 More in Finance & Fintech

Overview

This MCP server enables AI models to interact with blockchain data through the Bankless API. It supports reading smart contract state, fetching contract metadata, retrieving event logs, and querying transaction details across multiple networks. Use it when you need structured on-chain data access integrated into AI workflows.

Use cases

•Read state from smart contracts on supported blockchains
•Fetch verified contract source code and ABI data
•Retrieve filtered event logs from contracts
•Obtain transaction history and detailed transaction info
•Resolve proxy implementation addresses for contracts

Key features

•Read contract state with typed inputs and outputs
•Fetch contract ABI and verified source code
•Query event logs with topic filtering
•Build event topic signatures from event definitions
•Retrieve transaction history and detailed transaction data
•Get proxy implementation addresses

Capabilities & Tool Schemas (12) ~21 tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server — may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Onchain MCP.

network

Callable MCP tool function

contract

Callable MCP tool function

method

Callable MCP tool function

inputs

Callable MCP tool function

type

Callable MCP tool function

value

Callable MCP tool function

Documentation Overview

Bankless Onchain MCP Server

This project is no longer receiving updates

License: MIT Version

MCP (Model Context Protocol) server for blockchain data interaction through the Bankless API.

Overview

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.

https://github.com/user-attachments/assets/95732dff-ae5f-45a6-928a-1ae17c0ddf9d

Features

The server provides the following onchain data operations:

Contract Operations

  • Read Contract State (read_contract): Read state from smart contracts on various blockchain networks.

    • Parameters: network, contract address, method, inputs, outputs
    • Returns: Contract call results with typed values
  • Get Proxy (get_proxy): Retrieve proxy implementation contract addresses.

    • Parameters: network, contract address
    • Returns: Implementation contract address
  • Get ABI (get_abi): Fetch the ABI (Application Binary Interface) for a contract.

    • Parameters: network, contract address
    • Returns: Contract ABI in JSON format
  • Get Source (get_source): Retrieve the source code for a verified contract.

    • Parameters: network, contract address
    • Returns: Source code, ABI, compiler version, and other contract metadata

Event Operations

  • Get Events (get_events): Fetch event logs for a contract based on topics.

    • Parameters: network, addresses, topic, optional topics
    • Returns: Filtered event logs
  • Build Event Topic (build_event_topic): Generate an event topic signature from event name and argument types.

    • Parameters: network, event name, argument types
    • Returns: Event topic hash

Transaction Operations

  • Get Transaction History (get_transaction_history): Retrieve transaction history for a user address.

    • Parameters: network, user address, optional contract, optional method ID, optional start block, include data flag
    • Returns: List of transactions with hash, data, network, and timestamp
  • Get Transaction Info (get_transaction_info): Get detailed information about a specific transaction.

    • Parameters: network, transaction hash
    • Returns: Transaction details including block number, timestamp, from/to addresses, value, gas info, status, and receipt data

Tools

  • read_contract

    • Read contract state from a blockchain
    • Input:
      • network (string, required): The blockchain network (e.g., "ethereum", "polygon")
      • contract (string, required): The contract address
      • method (string, required): The contract method to call
      • inputs (array, required): Input parameters for the method call, each containing:
        • type (string): The type of the input parameter (e.g., "address", "uint256")
        • value (any): The value of the input parameter
      • outputs (array, required): Expected output types, each containing:
        • type (string): The expected output type
    • Returns an array of contract call results
  • get_proxy

    • Gets the proxy address for a given network and contract
    • Input:
      • network (string, required): The blockchain network (e.g., "ethereum", "base")
      • contract (string, required): The contract address
    • Returns the implementation address for the proxy contract
  • get_events

    • Fetches event logs for a given network and filter criteria
    • Input:
      • network (string, required): The blockchain network (e.g., "ethereum", "base")
      • addresses (array, required): List of contract addresses to filter events
      • topic (string, required): Primary topic to filter events
      • optionalTopics (array, optional): Optional additional topics (can include null values)
    • Returns an object containing event logs matching the filter criteria
  • build_event_topic

    • Builds an event topic signature based on event name and arguments
    • Input:
      • network (string, required): The blockchain network (e.g., "ethereum", "base")
      • name (string, required): Event name (e.g., "Transfer(address,address,uint256)")
      • arguments (array, required): Event arguments types, each containing:
        • type (string): The argument type (e.g., "address", "uint256")
    • Returns a string containing the keccak256 hash of the event signature

Installation

Terminal
npm install @bankless/onchain-mcp

Usage

Environment Setup

Before using the server, set your Bankless API token. For details on how to obtain your Bankless API token, head to https://docs.bankless.com/bankless-api/other-services/onchain-mcp

server.ts
export BANKLESS_API_TOKEN=your_api_token_here

Running the Server

The server can be run directly from the command line:

Terminal
npx @bankless/onchain-mcp

Usage with LLM Tools

This server implements the Model Context Protocol (MCP), which allows it to be used as a tool provider for compatible AI models. Here are some example calls for each tool:

read_contract

javascript
// Example call
{
  "name": "read_contract",
  "arguments": {
    "network": "ethereum",
    "contract": "0x1234...",
    "method": "balanceOf",
    "inputs": [
      { "type": "address", "value": "0xabcd..." }
    ],
    "outputs": [
      { "type": "uint256" }
    ]
  }
}

// Example response
[
  {
    "value": "1000000000000000000",
    "type": "uint256"
  }
]

get_proxy

javascript
// Example call
{
  "name": "get_proxy",
  "arguments": {
    "network": "ethereum",
    "contract": "0x1234..."
  }
}

// Example response
{
  "implementation": "0xefgh..."
}

get_events

javascript
// Example call
{
  "name": "get_events",
  "arguments": {
    "network": "ethereum",
    "addresses": ["0x1234..."],
    "topic": "0xabcd...",
    "optionalTopics": ["0xef01...", null]
  }
}

// Example response
{
  "result": [
    {
      "removed": false,
      "logIndex": 5,
      "transactionIndex": 2,
      "transactionHash": "0x123...",
      "blockHash": "0xabc...",
      "blockNumber": 12345678,
      "address": "0x1234...",
      "data": "0x...",
      "topics": ["0xabcd...", "0xef01...", "0x..."]
    }
  ]
}

build_event_topic

javascript
// Example call
{
  "name": "build_event_topic",
  "arguments": {
    "network": "ethereum",
    "name": "Transfer(address,address,uint256)",
    "arguments": [
      { "type": "address" },
      { "type": "address" },
      { "type": "uint256" }
    ]
  }
}

// Example response
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"

Development

Building from Source

bash
# Clone the repository
git clone https://github.com/Bankless/onchain-mcp.git
cd onchain-mcp

# Install dependencies
npm install

# Build the project
npm run build

Debug Mode

Terminal
npm run debug

Integration with AI Models

To integrate this server with AI applications that support MCP, add the following to your app's server configuration:

config.json
{
  "mcpServers": {
    "bankless": {
      "command": "npx",
      "args": [
        "@bankless/onchain-mcp"
      ],
      "env": {
        "BANKLESS_API_TOKEN": "your_api_token_here"
      }
    }
  }
}

Error Handling

The server provides specific error types for different scenarios:

  • BanklessValidationError: Invalid input parameters
  • BanklessAuthenticationError: API token issues
  • BanklessResourceNotFoundError: Requested resource not found
  • BanklessRateLimitError: API rate limit exceeded

Prompting Tips

In order to guide an LLM model to use the Bankless Onchain MCP Server, the following prompts can be used:

Code
ROLE:
• You are Kompanion, a blockchain expert and EVM sleuth. 
• You specialize in navigating and analyzing smart contracts using your tools and resources.

HOW KOMPANION CAN HANDLE PROXY CONTRACTS:
• If a contract is a proxy, call your “get_proxy” tool to fetch the implementation contract.  
• If that fails, try calling the “implementation” method on the proxy contract.  
• If that also fails, try calling the “_implementation” function.  
• After obtaining the implementation address, call “get_contract_source” with that address to fetch its source code.  
• When reading or modifying the contract state, invoke implementation functions on the proxy contract address (not directly on the implementation).

HOW KOMPANION CAN HANDLE EVENTS:
• Get the ABI and Source of the relevant contracts
• From the event types in the ABI, construct the correct topics for the event relevant to the question
• use the "get_event_logs" tool to fetch logs for the contract

KOMPANION'S RULES:
• Do not begin any response with “Great,” “Certainly,” “Okay,” or “Sure.”  
• Maintain a direct, technical style. Do not add conversational flourishes.  
• If the user’s question is unrelated to smart contracts, do not fetch any contracts.  
• If you navigate contracts, explain each step in bullet points.  
• Solve tasks iteratively, breaking them into steps.  
• Use bullet points for lists of steps.  
• Never assume a contract’s functionality. Always verify with examples using your tools to read the contract state.  
• Before responding, consider which tools might help you gather better information.  
• Include as much relevant information as possible in your final answer, depending on your findings.

HOW KOMPANION CAN USE TOOLS:
• You can fetch contract source codes, ABIs, and read contract data by using your tools and functions.  
• Always verify the source or ABI to understand the contract rather than making assumptions.  
• If you need to read contract state, fetch its ABI (especially if the source is lengthy).

Read the full README →View source on GitHub →

Related MCP Servers

View all in Finance & Fintech View all alternatives
  • Evm MCP Server logoEvm MCP Server

    Comprehensive blockchain services for 30+ EVM networks, supporting native tokens, ERC20, NFTs, smart contracts, transactions, and ENS resolution.

    💰 Finance & Fintech4 views
    Compare vs Evm MCP Server →
  • Wallet Inspector MCP logoWallet Inspector MCP

    An MCP server that empowers AI agents to inspect any wallet’s balance and onchain activity across major EVM chains and Solana chain.

    💰 Finance & Fintech4 views
    Compare vs Wallet Inspector MCP →
  • Blockbeats MCP logoBlockbeats MCP

    An MCP server that delivers blockchain news and in-depth articles from BlockBeats for AI agents.

    💰 Finance & Fintech3 views
    Compare vs Blockbeats MCP →
  • MCP Klever Vm logoMCP Klever Vm

    Klever blockchain MCP server for smart contract development, on-chain data exploration, account and asset queries, transaction analysis, and contract deployment tooling.

    💰 Finance & Fintech3 views
    Compare vs MCP Klever Vm →

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars
80
Stargazers on the source repository.
npm downloads
249
Package downloads in the last 30 days.
Last commit
4mo ago
Most recent push to the default branch.
Install check
Inconclusive
Started but did not complete the MCP handshake in our test.
Tools exposed
12
Callable tools this server registers over MCP.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet — be the first to share how this listing worked for you.

Frequently Asked Questions about Onchain MCP

The server supports multiple networks including Ethereum, Polygon, and Base as examples; exact supported networks depend on the Bankless API.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOnchain MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/bankless-onchain-mcp?style=directory)](https://allmcps.com/mcp/bankless-onchain-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/bankless-onchain-mcp"><img src="https://allmcps.com/api/badge/bankless-onchain-mcp?style=directory" alt="Onchain MCP on AllMCPs" /></a>

Technical Specs & Signals

Category💰Finance & Fintech
PricingBring your own API key (usage-based cost)
More technical detailsExpand ▾
TransportSTDIO
RuntimeNode.js
AuthAPI key
LicenseMIT
Last updatedAug 9, 2026
10/10 checks healthy over the last 31d
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars80
GitHub Star CountTotal stargazers on GitHub representing community popularity (80 stars).
Last commit4mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on May 5, 2026
npm downloads249/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
57Quality signal: Good · 57/100How this signal is calculated ▾
Server availabilityNot measured

Not scored for repo-hosted servers — we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools26/30
Adoption & activity7/15
Community engagement0/10

A guidance signal from public completeness & health data — not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · @bankless/onchain-mcp (npm)

★ FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 10,000+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server →

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge — proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it — no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 💰 Finance & Fintech →Best MCP servers for Finance & Fintech →Alternatives to Onchain MCP →Install in Claude DesktopInstall in CursorInstall in VS Code