Bankless Onchain MCP Server

Blockchain MCP Developer Tools AI

Contact us to host your MCP Server in FlowHunt

FlowHunt provides an additional security layer between your internal systems and AI tools, giving you granular control over which tools are accessible from your MCP servers. MCP servers hosted in our infrastructure can be seamlessly integrated with FlowHunt's chatbot as well as popular AI platforms like ChatGPT, Claude, and various AI editors.

What does “Bankless Onchain” MCP Server do?

The Bankless Onchain MCP Server is a Model Context Protocol (MCP) server designed to facilitate structured access to blockchain data via the Bankless API. By implementing MCP, it empowers AI assistants and developer tools to seamlessly interact with on-chain data, such as smart contract state, events, and transaction histories, across multiple blockchain networks. This server enables AI-powered workflows and automations that require reading contract state, fetching contract ABIs, retrieving event logs, and analyzing transaction data. By exposing these blockchain operations as standardized MCP tools, the Bankless Onchain MCP Server enhances developer productivity and enables the construction of intelligent, data-driven blockchain applications and agents.

List of Prompts

No prompt templates are specified in the repository.

Logo

Ready to grow your business?

Start your free trial today and see results within days.

List of Resources

No explicit resources are documented in the repository.

List of Tools

  • read_contract
    • Reads contract state from a blockchain by calling specified methods with given parameters and returns the result.
  • get_proxy
    • Retrieves the current implementation address for a proxy contract on a given network.
  • get_abi
    • Fetches the Application Binary Interface (ABI) for a smart contract, allowing clients to understand available methods and events.
  • get_source
    • Retrieves the verified source code, ABI, compiler version, and metadata for a contract.
  • get_events
    • Fetches event logs for specified contracts and topics, enabling event-driven queries and analysis.
  • build_event_topic
    • Generates an event topic signature hash from an event name and argument types for log filtering.
  • get_transaction_history
    • Retrieves a list of transactions for a user address, possibly filtered by contract, method, and time.
  • get_transaction_info
    • Provides detailed information about a specific transaction, including block, participants, value, gas, and status.

Use Cases of this MCP Server

  • Smart Contract State Queries
    • Developers and AI agents can programmatically read the current state of any smart contract on supported blockchains, useful for dashboards, monitoring bots, or DeFi analytics.
  • Block Explorer Automation
    • Automate retrieval of contract source, ABI, and proxy information, facilitating code analysis, auditing, or reverse engineering tools.
  • Event Monitoring and Alerting
    • Set up AI agents or services to fetch and process on-chain events for real-time notifications, compliance monitoring, or trading signals.
  • Transaction Analysis
    • Access detailed transaction histories and information for addresses, enabling wallet analytics, KYC/AML routines, or chain activity summaries.
  • Developer Tooling and AI-Driven Workflows
    • Integrate blockchain data access into developer IDEs or AI copilots, boosting productivity for smart contract development and testing.

How to set it up

Windsurf

  1. Ensure you have Node.js installed and the MCP server package available.
  2. Locate or create your .windsurf/config.json configuration file.
  3. Add the Bankless Onchain MCP Server to your mcpServers section:
    {
      "mcpServers": [
        {
          "command": "npx",
          "args": ["@bankless/onchain-mcp@latest"]
        }
      ]
    }
    
  4. Save the configuration file.
  5. Restart Windsurf and verify the server is running.

Securing API Keys: If the Bankless API requires authentication, use environment variables:

{
  "mcpServers": [
    {
      "command": "npx",
      "args": ["@bankless/onchain-mcp@latest"],
      "env": {
        "BANKLESS_API_KEY": "your_api_key_here"
      }
    }
  ]
}

Claude

  1. Install Node.js if not already installed.
  2. Open Claude’s server configuration file.
  3. Add the Bankless Onchain MCP Server in the mcpServers section as shown:
    {
      "mcpServers": [
        {
          "command": "npx",
          "args": ["@bankless/onchain-mcp@latest"]
        }
      ]
    }
    
  4. Save and restart Claude to pick up the new server.

Securing API Keys: Add your API keys in the env object as above.

Cursor

  1. Install Node.js and ensure your development environment can run MCP servers.
  2. Open Cursor’s configuration settings.
  3. Add the following MCP server entry:
    {
      "mcpServers": [
        {
          "command": "npx",
          "args": ["@bankless/onchain-mcp@latest"]
        }
      ]
    }
    
  4. Save the configuration and restart Cursor.

Securing API Keys: Include API keys securely using the env section.

Cline

  1. Make sure Node.js is installed on your machine.
  2. Open the Cline configuration JSON.
  3. Add the MCP server configuration:
    {
      "mcpServers": [
        {
          "command": "npx",
          "args": ["@bankless/onchain-mcp@latest"]
        }
      ]
    }
    
  4. Save and restart Cline.

Securing API Keys: Use the env property to securely provide API keys.

How to use this MCP inside flows

Using MCP in FlowHunt

To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

FlowHunt MCP flow

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:

{
  "bankless-onchain": {
    "transport": "streamable_http",
    "url": "https://yourmcpserver.example/pathtothemcp/url"
  }
}

Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “bankless-onchain” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.


Overview

SectionAvailabilityDetails/Notes
OverviewSource: README.md
List of PromptsNo prompt templates documented
List of ResourcesNo explicit resources described
List of Toolsread_contract, get_proxy, get_abi, get_source, get_events, build_event_topic, get_transaction_history, get_transaction_info
Securing API KeysExample provided for env usage
Sampling Support (less important in evaluation)Not mentioned
Roots SupportNot mentioned

Based on the tables above, the Bankless Onchain MCP Server covers the core tooling and setup for blockchain data access, but lacks specified prompt templates, resource definitions, and mentions of roots or sampling. This makes it a solid but basic MCP server, especially for blockchain data. I’d rate it a 6 out of 10 for general MCP completeness.


MCP Score

Has a LICENSE✅ (MIT)
Has at least one tool
Number of Forks11
Number of Stars47

Frequently asked questions

Integrate Bankless Onchain MCP into Your Workflow

Boost your AI agents and developer tools with seamless blockchain data access. Set up the Bankless Onchain MCP Server today and supercharge your analytics, automations, and smart contract insights.

Learn more

Bankless Onchain MCP
Bankless Onchain MCP

Bankless Onchain MCP

Integrate FlowHunt with the Bankless Onchain MCP Server to empower AI agents with blockchain data access. Enable contract state reading, event monitoring, trans...

4 min read
AI Blockchain +5
Nodit MCP Server
Nodit MCP Server

Nodit MCP Server

The Nodit MCP Server bridges AI agents and developers to structured, multi-chain blockchain data via Nodit’s Web3 infrastructure. It enables LLMs and automation...

4 min read
Blockchain Web3 +4
BNBChain MCP Server
BNBChain MCP Server

BNBChain MCP Server

The BNBChain MCP Server is a plug-and-play Model Context Protocol (MCP) server for integrating Binance Smart Chain blockchain operations into AI agents, develop...

5 min read
Blockchain DeFi +5