Query TON Blockchain with Natural Language
MCP server for natural-language TON blockchain queries - addresses, transactions, trends, trading patterns, prices.
Why it matters
Unlock insights from the TON blockchain using natural language. Analyze trading patterns, identify trends, and perform forensic checks without writing complex code.
Outcomes
What it gets done
Analyze TON address balances, holdings, and activity.
Retrieve and analyze specific transaction details.
Discover trending tokens, pools, and accounts on TON.
Monitor TON price and jetton token performance.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-ton-blockchain-mcp | bash Capabilities
Tools your agent gets
Analyzes a TON address to retrieve balance, jetton holdings, NFTs, and recent activity
Retrieves details and analysis of a specific transaction on the TON blockchain by its hash
Finds trending tokens, pools, or accounts on the TON blockchain for a specified time period
Analyzes trading patterns for a TON address over a specified time period including activity
Retrieves the current TON price in real-time in a specified currency with price changes
Retrieves the current price and recent changes for specified jetton tokens in a currency
Overview
TON Blockchain MCP Server
An MCP server for natural-language TON blockchain queries, with tools for address analysis, transaction lookup, trend detection, trading pattern analysis, and TON/jetton pricing. Use when an AI assistant needs to answer natural-language questions about TON blockchain addresses, transactions, trends, or prices.
What it does
This MCP server lets an AI assistant query the TON blockchain in natural language - checking address balances/holdings/activity, looking up transaction details, finding hot/trending tokens and pools, analyzing trading patterns, and pulling real-time TON and jetton token prices - backed by the TON API. Named features from the source: natural language processing of complex blockchain queries in plain English, trading-pattern/profitability analysis, hot-trends detection (trending tokens, active pools, high-activity accounts), forensics and compliance investigation support, and real-time data access.
When to use - and when NOT to
Use it when you need natural-language TON blockchain queries: "What's the balance of address...?", "Find hot trading pairs in the last hour", "Analyze trading patterns for this wallet", "Show suspicious activity for address...", or "Trace money flow from this address." Requires Python 3.10+ and a TON API key from TONAPI. The project explicitly labels itself Beta software with a warning: do not trust any numbers provided by the LLM model, and nothing in the project constitutes financial advice - use at your own risk.
Capabilities
Six tools: analyze_address (balance, jetton holdings, NFTs, recent activity, with optional deep_analysis forensic mode), get_transaction_details (details/analysis for a transaction by hash), find_hot_trends (trending tokens/pools/accounts for a timeframe and category), analyze_trading_patterns (trading activity, frequency, jetton transfers, DEX swaps for an address over a timeframe), get_ton_price (current TON price in a given currency plus recent changes), and get_jetton_price (current price and changes for specific jetton tokens by master address, in a given currency). Three system prompts are also provided: trading_analysis, forensics_investigation, and trend_analysis. Documented example use cases in Claude Desktop include scam detection, analyzing an address, retrieving transaction details, and analyzing trading patterns.
How to install
Set the TON API key in a .env file:
TON_API_KEY=YOUR_TON_API_KEY
Clone and install:
git clone https://github.com/devonmojito/ton-blockchain-mcp.git
cd ton-blockchain-mcp
pip install -r requirements.txt
Register in Claude Desktop's config pointing at a Python venv running -m tonmcp.mcp_server, with cwd and PYTHONPATH set to the project's src directory (the source notes the Python environment path will likely need to be adjusted to match your own setup). Licensed under the MIT License, with support handled via GitHub issues.
Who it's for
Developers and analysts who want an AI assistant to answer natural-language questions about TON blockchain addresses, transactions, trading patterns, trends, and prices - including basic forensics/compliance investigations - without querying the TON API directly, while explicitly not being relied on for financial decisions given its own Beta disclaimer.
Source 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
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)
get_ton_price
Get the current real-time TON price in the specified currency (default: USD) and recent price changes. Use this tool whenever you need the latest TON price for calculations, analysis, or reporting.
Parameters:
currency(str, optional): The fiat or crypto currency to get the TON price in (default: 'usd').
get_jetton_price
Get the current price and recent changes for specified jetton tokens (not TON) in the given currency. Provide a list of jetton master addresses as tokens. Use this tool to fetch real-time prices for any token except TON.
Parameters:
tokens(list of str): List of jetton master addresses to get prices for (excluding 'ton').currency(str, optional): The fiat or crypto currency to get the price in (default: 'usd').
System Prompts
trading_analysis: Generate trading analysis promptsforensics_investigation: Generate forensics promptstrend_analysis: Generate trend analysis prompts
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.