BO

bankless/onchain-mcp

Developer tools공식

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

78 stars 29 forks 품질 64 트렌드 18

bankless/onchain-mcp는 MCP 서버 후보로 https://github.com/bankless/onchain-mcp.에서 수입

개요

bankless/onchain-mcp는 MCP 서버 후보로 https://github.com/bankless/onchain-mcp.에서 수입

개요(AI 번역)

이 프로젝트는 더 이상 업데이트를받지 않습니다

MCP (Model Context Protocol)는 Bankless API를 통해 블록체인 데이터 상호 작용을 위한 서버입니다.

개요

Bankless 온체인 MCP Server는 Bankless API를 통해 on-chain 데이터와 상호 작용하는 프레임워크를 제공합니다. 그것은 모델 Context Protocol (MCP)을 구현하여 AI 모델을 사용하여 구조화 된 방식으로 블록 체인 상태 및 이벤트 데이터를 액세스 할 수 있습니다.

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

특징

서버는 다음 onchain 데이터 운영을 제공합니다:

계약 작업

  • ** 계약 상태** (read_contract): 다양한 블록체인 네트워크에서 스마트 컨트랙트를 읽어보세요.

  • 모수: 네트워크, 계약 주소, 방법, 입력, 산출

  • 반품 : 계약 통화 결과 유형 값

  • ** Proxy** ([T2]]): 프록시 구현 계약 주소를 검색합니다.

  • 모수: 네트워크, 계약 주소

  • 반품: 계약 체결

  • ABI (get_abi]): 계약에 대한 ABI (Application Binary Interface)를 잡아라.

  • 모수: 네트워크, 계약 주소

  • 반환: 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" } } } }