TON Access MCP Server

Integrations

  • Provides tools for interacting with the TON blockchain, including checking wallet balances, retrieving transaction and block details, calling smart contract methods, accessing masterchain information, and querying account states.

TON 访问 MCP 服务器

TON 区块链的生产就绪模型上下文协议 (MCP) 服务器实现,建立在ton-access库之上。

什么是 MCP?

模型上下文协议 (MCP)是由 Anthropic 开发的开放协议,它规范了应用程序向大型语言模型 (LLM) 提供上下文的方式。它采用客户端-服务器架构,其中 LLM 应用程序(主机)连接到 MCP 服务器,后者为 LLM 提供上下文、工具和提示。

特征

  • 完整的 MCP 实现:实现完整的 MCP 规范,用于将 AI 助手连接到 TON 区块链
  • 分散访问:使用多个节点实现可靠性和分散性
  • 健康检查:自动检查节点健康状况并选择健康节点
  • 负载平衡:使用加权随机算法来分配请求
  • 多网络:支持主网和测试网
  • 多种协议:支持不同的 RPC 协议(TonCenter HTTP API v2、TonHub HTTP API v4)

安装

# Clone the repository git clone https://github.com/your-org/ton-access-mcp.git cd ton-access-mcp # Install dependencies npm install # Build the project npm run build # Start the server npm start

快速入门

import { TonAccessMCPServer } from 'ton-access-mcp'; // Create and start the server const server = new TonAccessMCPServer({ port: 3000, host: 'localhost' }); server.start().then(() => { console.log('TON Access MCP Server is running on http://localhost:3000'); });

可用工具

TON Access MCP 服务器提供以下工具:

  • ton.getBalance :获取 TON 钱包地址的余额
  • ton.getTransaction :获取 TON 区块链交易的详细信息
  • ton.getBlock :获取 TON 区块链区块的详细信息
  • ton.callGetter :调用 TON 智能合约上的 getter 方法
  • ton.getMasterchainInfo :获取有关 TON 主链的最新信息
  • ton.getAccountState :获取 TON 帐户的当前状态

文档

有关详细文档,请参阅文档目录。

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

致谢

-
security - not tested
A
license - permissive license
-
quality - not tested

一个可投入生产的模型上下文协议服务器实现,将 AI 助手连接到 TON 区块链,允许他们查询钱包余额、交易详情、智能合约和其他区块链数据。

  1. What is MCP?
    1. Features
      1. Installation
        1. Quick Start
          1. Available Tools
            1. Documentation
              1. License
                1. Acknowledgements
                  ID: lqckp6nyrk