A Model Context Protocol (MCP) server written in Python for natural language interaction with the TON blockchain 💎
SaferSkills independently audited ton-blockchain-mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Model Context Protocol (MCP) server for natural language interaction with the TON blockchain.
TON Blockchain MCP Cover
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_KEYgit clone https://github.com/devonmojito/ton-blockchain-mcp.git
cd ton-blockchain-mcppip install -r requirements.txtYou can easily use this MCP server with Claude Desktop for natural language blockchain queries. Below are some example use cases:
Scam Detection Example:
Scam Detection Example
Analyze Address Example:
Analyze Address Example
Get Transaction Details Example:
Get Transaction Details Example
Analyze Trading Patterns Example:
Analyze Trading Patterns Example
To use this MCP server with Claude Desktop, add the following to your Claude Desktop config:
{
"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
}
}
}#### 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').trading_analysis: Generate trading analysis promptsforensics_investigation: Generate forensics promptstrend_analysis: Generate trend analysis promptsThis project is licensed under the MIT License - see the LICENSE file for details.
For support, please open an issue on GitHub
⚠️ WARNING: This project is in Beta. Do not trust any numbers provided by the LLM model. Nothing in this project constitutes financial advice. Use at your own risk.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.