Integrations
Utilizes environment variables for configuration with option to store the TON API key in a .env file.
Supports containerized deployment through Docker Compose with provided configuration for building and running the MCP server.
Provides repository access and issue tracking for support requests, with instructions for cloning the repository hosted on GitHub.
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
Installation
- Clone the repository:
- Install dependencies:
- Set up environment variables:
- You might want to put the API key in .env as well
- Run the server:
PyPI Installation
You can also install the TON MCP Server directly from PyPI:
Using Docker
Example: Using TON MCP Server with Claude Desktop
You can easily use this MCP server with Claude Desktop for natural language blockchain queries. Below is an example of checking the TON balance for a wallet address:
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.
Usage
Basic Queries
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"
Configuration
Configuration can be provided via:
- Environment variables
config/settings.json
file- Runtime parameters
Key configuration options:
TON_API_KEY
: Your TON API keyMCP_HOST
: Server host (default: localhost)MCP_PORT
: Server port (default: 8000)LOG_LEVEL
: Logging level (default: INFO)
MCP Tools & System Prompts Documentation
Tools
analyze_address
Analyze a TON address for its balance, jetton holdings, NFTs, and recent activity. Optionally performs deep forensic analysis if deep_analysis
is True. Use for questions about account overview, holdings, or activity.
Parameters:
address
(str): TON address to analyzedeep_analysis
(bool, optional): Enable deep forensic analysis
get_transaction_details
Get details and analysis for a specific TON blockchain transaction by its hash. Use for questions about a particular transaction, its participants, value, or type.
Parameters:
tx_hash
(str): Transaction hash
find_hot_trends
Find trending tokens, pools, or accounts on the TON blockchain for a given timeframe and category. Use for questions about what's hot, trending, or popular on TON.
Parameters:
timeframe
(str, optional): Time period (e.g., 1h, 24h, 7d)category
(str, optional): Type of trends (tokens, pools, accounts)
analyze_trading_patterns
Analyze trading patterns for a TON address over a specified timeframe. Use for questions about trading activity, frequency, jetton transfers, or DEX swaps for an account.
Parameters:
address
(str): TON addresstimeframe
(str, optional): Time period (e.g., 24h)
System Prompts
trading_analysis
: Generate trading analysis promptsforensics_investigation
: Generate forensics promptstrend_analysis
: Generate trend analysis prompts
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For support, please open an issue on GitHub or contact the author on Telegram: @devonmojito
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that enables natural language interaction with the TON blockchain, allowing users to perform queries for balances, analyze trading patterns, detect hot trends, and conduct forensic investigations on blockchain data.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server providing tools for querying Bitcoin blockchain data via Blockchain Data and Query APIs, supporting various BTC information retrieval functions.Last updated -Python
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to access Flow blockchain data and perform operations such as checking balances, resolving domains, executing scripts, and submitting transactions.Last updated -JavaScript
- -securityAlicense-qualityA production-ready Model Context Protocol server implementation that connects AI assistants to the TON blockchain, allowing them to query wallet balances, transaction details, smart contracts, and other blockchain data.Last updated -TypeScriptMIT License
- AsecurityAlicenseAqualityA server that provides tools for interacting with MantraChain blockchain through the Model Context Protocol, allowing users to manage tokens, stake assets, query balances, and execute various blockchain operations.Last updated -18552TypeScriptMIT License