by devonmojito
Provides natural‑language access to TON blockchain data, enabling balance checks, transaction lookups, trend detection, and forensic analysis through an MCP server.
Ton Blockchain MCP offers a Model Context Protocol (MCP) server that translates plain‑English queries into actionable blockchain analytics. It connects to the TON API to fetch live data and supplies tools for address analysis, transaction details, hot‑trend discovery, trading‑pattern evaluation, and real‑time pricing.
git clone https://github.com/devonmojito/ton-blockchain-mcp.git
cd ton-blockchain-mcp
pip install -r requirements.txt
.env
file in the project root:
TON_API_KEY=YOUR_TON_API_KEY
python -m tonmcp.mcp_server
Q: Do I need any special hardware? A: No, the server runs on any machine capable of Python 3.10+.
Q: Is the data real‑time? A: Yes, it pulls live information from the TON API.
Q: Can I use the server with other LLMs besides Claude Desktop? A: Absolutely – any client that speaks the MCP protocol can connect.
Q: What limits does the free TONAPI key have? A: Rate limits are imposed by TONAPI; refer to their documentation for details.
Q: Is this a financial advisory tool? A: No. The project is in beta and provides no financial advice; use at your own risk.
A Model Context Protocol (MCP) server for natural language interaction with the TON blockchain.
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
git clone https://github.com/devonmojito/ton-blockchain-mcp.git
cd ton-blockchain-mcp
pip install -r requirements.txt
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:
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 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 analysisGet 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 hashFind 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 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 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 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.
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "ton-mcp-server": { "command": "python", "args": [ "-m", "tonmcp.mcp_server" ], "env": { "TON_API_KEY": "<YOUR_TON_API_KEY>" } } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
by danny-avila
Provides a self‑hosted ChatGPT‑style interface supporting numerous AI models, agents, code interpreter, image generation, multimodal interactions, and secure multi‑user authentication.
by block
Automates engineering tasks on local machines, executing code, building projects, debugging, orchestrating workflows, and interacting with external APIs using any LLM.
by RooCodeInc
Provides an autonomous AI coding partner inside the editor that can understand natural language, manipulate files, run commands, browse the web, and be customized via modes and instructions.
by pydantic
A Python framework that enables seamless integration of Pydantic validation with large language models, providing type‑safe agent construction, dependency injection, and structured output handling.
by lastmile-ai
Build effective agents using Model Context Protocol and simple, composable workflow patterns.
by mcp-use
A Python SDK that simplifies interaction with MCP servers and enables developers to create custom agents with tool‑calling capabilities.
by nanbingxyz
A cross‑platform desktop AI assistant that connects to major LLM providers, supports a local knowledge base, and enables tool integration via MCP servers.
by gptme
Provides a personal AI assistant that runs directly in the terminal, capable of executing code, manipulating files, browsing the web, using vision, and interfacing with various LLM providers.