MCP·4B965F
B

onchain-mcp

By bankless·Visit Source
用于区块链数据交互的Bankless MCP服务器
2025年4月15日
2 months ago
19 Clicks
About onchain-mcp

用于区块链数据交互的Bankless MCP服务器. onchain-mcp is a Model Context Protocol (MCP) server maintained by bankless. It connects to MCP-compatible clients such as Claude Desktop, Cursor, Cline, and other agents that speak the protocol. It exposes 4 tools, including read_contract, get_proxy, get_events and build_event_topic, that an agent can call directly. It is categorized under Blockchain/Data, Tool/Server and AI/Integration.

什么是MCP

Bankless链上MCP服务器是一个实现模型上下文协议(Model Context Protocol)的框架,通过Bankless API提供结构化的区块链数据访问。它使AI模型能够与各种区块链网络上的智能合约、事件和交易进行交互。

如何使用MCP

  • 通过npm安装(npm install @bankless/onchain-mcp
  • 将Bankless API令牌设置为环境变量
  • 运行服务器(npx @bankless/onchain-mcp
  • 进行符合MCP规范的JSON调用,用于合约操作、事件查询或交易数据
  • MCP的用途

    - 读取智能合约状态和ABI

    - 查询区块链事件日志

    - 分析交易历史

    - 将区块链数据与AI模型集成

    - 构建区块链分析工具

    Repository Info
    Stars:
    78
    Forks:
    26
    Watchers:
    78
    Last Updated: 3 months ago

    AIMCP authority

    DR and traffic signal for the AIMCP public domain.

    FAQ

    Frequently asked questions

    What is the onchain-mcp MCP server?

    onchain-mcp is a Model Context Protocol server from bankless. It lets MCP-compatible AI clients call its tools over a standard interface, so agents like Claude, Cursor, and Cline can use it without custom integration.

    How do I connect onchain-mcp to my AI client?

    Add onchain-mcp to your client's MCP configuration using the stdio or SSE connection shown in the usage examples on this page, then restart the client to load the server.

    What tools does onchain-mcp provide?

    onchain-mcp provides 4 tools: read_contract, get_proxy, get_events and build_event_topic.

    Is onchain-mcp free to use?

    onchain-mcp is listed on AIMCP for free. Any API keys or accounts required by the underlying service are set by its provider.

    Sponsored

    Vernclaw Plugins for OpenClaw

    Ready-to-use connectors for SEO data, social reading & content generation. Pay-as-you-go credits with audit logs.