Skip to main content
Glama

TON 访问 MCP 服务器

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

什么是 MCP?

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

Related MCP server: Flow MCP Server

特征

  • 完整的 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aiopinions/TON-ACCESS-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server