
一个用Python编写的模型上下文协议(MCP)服务器,用于与TON区块链💎进行自然语言交互
概览
一个用于与TON区块链进行自然语言交互的模型上下文协议(MCP)服务器。 - : 用通俗易懂的英语理解复杂的区块链查询 - : 分析交易模式、盈利能力和策略 - : 查找趋势代币、活跃池和高活跃账户 - : 进行区块链调查和合规检查 - : 通过TON API访问实时TON区块链数据 - Python 3.10+ - 来自TONAPI的TON API密钥 为了安全提供敏感配置(比如你的 TON API 密钥),请在项目根目录创建一个 .env 文件。如果存在,该文件将自动加载。 你可以轻松地将该MCP服务器与Claude Desktop结合使用,进行自然语言区块链查询。以下是一些示例用例: 要将这台MCP服务器与Claude Desktop使用,请在Claude Desktop配置中添加以下内容:* 你可能需要用自己的Python环境设置替换。 - “地址EQD1234的余额是多少?
概述(AI 翻译)
一个用于与TON区块链进行自然语言交互的模型上下文协议(MCP)服务器。
特色
- 自然语言处理:用通俗易懂的语言理解复杂的区块链查询
- 交易分析:分析交易模式、盈利能力和策略
- 热门趋势检测:查找热门代币、活跃池和高活跃账户
- 取证与合规:进行区块链调查和合规检查
- 实时数据:通过TON API访问实时TON区块链数据
快速启动
先决条件
- Python 3.10+
- TONAPI 的 TON API 密钥
环境配置 (.env)
为了安全提供敏感配置(如您的 TON API 密钥),请在项目根目录创建 .env 文件。如果存在,该文件将自动加载。
示例 .env 文件:
安装
-
克隆仓库:
-
安装依赖:
使用 TON MCP 服务器配合 Claude 桌面
你可以轻松地将该MCP服务器与Claude Desktop结合使用,进行自然语言区块链查询。以下是一些示例用例:
诈骗检测示例:
分析地址示例:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
TON BLOCKCHAIN MCP
A Model Context Protocol (MCP) server for natural language interaction with the TON blockchain.
Features
- Natural Language Processing: Understand complex blockchain queries in plain English
- Trading Analysis: Analyze trading patterns, profitability, and strategies
- Hot Trends Detection: Find trending tokens, active pools, and high-activity accounts
- Forensics & Compliance: Conduct blockchain investigations and compliance checks
- Real-time Data: Access live TON blockchain data through TON API
Quick Start
Prerequisites
- Python 3.10+
- TON API key from TONAPI
Environment Configuration (.env)
To securely provide sensitive configuration (such as your TON API key), create a .env file in the project root directory. This file will be loaded automatically if present.
Example .env file:
TON_API_KEY=YOUR_TON_API_KEY
Installation
- Clone the repository:
git clone https://github.com/devonmojito/ton-blockchain-mcp.git
cd ton-blockchain-mcp
- Install dependencies:
pip install -r requirements.txt
Using TON MCP Server with Claude Desktop
You can easily use this MCP server with Claude Desktop for natural language blockchain queries. Below are some example use cases:
Scam Detection Example:
Analyze Address Example:
Get Transaction Details Example:
Analyze Trading Patterns Example:
Claude Desktop Configuration Example
To use this MCP server with Claude Desktop, add the following to your Claude Desktop config:
- You might need to replace the Python env setup with your own.
{
"mcpServers":
{
"ton-mcp-server":
{
"command": "/Users/devon/ton-mcp/ton-blockchain-mcp/venv/bin/python",
"args":
[
"-m",
"tonmcp.mcp_server"
],
"cwd": "/Users/devon/ton-mcp/ton-blockchain-mcp/src",
"env":
{
"PYTHONPATH": "/Users/devon/ton-mcp/ton-blockchain-mcp/src"
},
"stdio": true
}
}
}
Natural Language Examples
- “What’s the balance of address EQD1234…?”
- “Find hot trading pairs in the last hour”
- “Analyze trading patterns for this wallet”
- “Show suspicious activity for address ABC”
- “Trace money flow from this address”
MCP Tools & System Prompts Documentation
Tools
analyze_address
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers":
{
"ton-mcp-server":
{
"command": "/Users/devon/ton-mcp/ton-blockchain-mcp/venv/bin/python",
"args":
[
"-m",
"tonmcp.mcp_server"
],
"cwd": "/Users/devon/ton-mcp/ton-blockchain-mcp/src",
"env":
{
"PYTHONPATH": "/Users/devon/ton-mcp/ton-blockchain-mcp/src"
},
"stdio": true
}
}
}