BO

bankless/onchain-mcp

Developer tools公式

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

78 stars 29 forks 品質 59 トレンド 14

bankless/onchain-mcp は [https://github.com/bankless/onchain-mcp. からインポートされた MCP サーバーの候補です

概要

bankless/onchain-mcp は [https://github.com/bankless/onchain-mcp. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

このプロジェクトは更新を受けていない

MCP (Model Context Protocol) は、Bankless API によるブロックチェーンデータのやり取りを行うサーバーです。

概要

バンクレス・オンチェーン MCP Server は、Bankless API 経由でオンチェーンデータとやり取りするためのフレームワークを提供します。 モデルコンテキストプロトコル(MCP)を実装し、AIモデルが構築された方法でブロックチェーンの状態とイベントデータにアクセスできるようにします。

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

##特徴

サーバは、次のオンチェーンデータ操作を提供します。

###契約業務

  • 契約状態をお読みください (read_contract)): さまざまなブロックチェーンネットワークでスマートコントラクトからの状態を読みます。

  • パラメーター:ネットワーク、コントラクトアドレス、メソッド、入力、出力

  • 戻り値: 型値のコントラクトコール結果

  • プロキシの取得 ([get_proxy)): プロキシの実装契約アドレスを取得します。

  • パラメーター:ネットワーク、コントラクトアドレス

  • 返品: 実施契約アドレス

  • ABI(get_abi)を取得する):契約のためにABI(アプリケーションバイナリインターフェイス)をフェッチします。

  • パラメーター:ネットワーク、コントラクトアドレス

  • 返品:JSON形式のABIの契約

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Bankless Onchain MCP Server

This project is no longer receiving updates

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:
GitHub で README 全文を見る

インストール

npx @bankless/onchain-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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