by devonmojito
A Model Context Protocol (MCP) server written in Python for natural language interaction with the TON blockchain.
TON Blockchain MCP is a Python-based Model Context Protocol (MCP) server designed to enable natural language interaction with the TON blockchain. It allows users to query and analyze blockchain data using plain English, making complex blockchain information more accessible.
To use TON Blockchain MCP, you need Python 3.10+ and a TON API key from TONAPI. After cloning the repository and installing dependencies, you can configure your TON API key in a .env
file. The server can then be integrated with Claude Desktop by adding specific mcpServers
configuration to your Claude Desktop settings. This setup allows you to send natural language queries to the TON blockchain through Claude Desktop.
Q: What are the prerequisites for running TON Blockchain MCP? A: You need Python 3.10+ and a TON API key from TONAPI.
Q: How do I provide my TON API key?
A: Create a .env
file in the project root directory and add TON_API_KEY=YOUR_TON_API_KEY
.
Q: Can I use this with Claude Desktop? A: Yes, the README provides detailed instructions and an example configuration for integrating with Claude Desktop.
Q: What kind of natural language queries can I make? A: You can ask questions like "What's the balance of address EQD1234...?", "Find hot trading pairs in the last hour", or "Analyze trading patterns for this wallet."
Q: Is this project stable? A: The project is currently in Beta. It is advised not to trust any numbers provided by the LLM model for financial advice, and to use it 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.
Discover more MCP servers with similar functionality and use cases
by mckinsey
Build high-quality data visualization apps quickly with low‑code configuration, leveraging Plotly, Dash, and Pydantic while allowing deep customisation through Python, JavaScript, HTML, and CSS.
by antvis
mcp-server-chart is a Model Context Protocol (MCP) server developed by AntV that generates over 25 types of visual charts. It provides robust chart generation and data analysis capabilities, integrating with various AI clients and platforms.
by reading-plus-ai
mcp-server-data-exploration is an MCP server designed for autonomous data exploration on CSV-based datasets. It acts as a personal Data Scientist assistant, providing intelligent insights with minimal effort.
by Canner
Wren Engine is a semantic engine designed for Model Context Protocol (MCP) clients and AI agents, enabling accurate and context-aware access to enterprise data.
by GongRzhe
A Model Context Protocol (MCP) server for generating various types of charts using QuickChart.io, enabling chart creation through MCP tools.
by ergut
mcp-bigquery-server is a Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to securely and efficiently interact with Google BigQuery datasets. It acts as a translator, allowing LLMs to query and analyze data in BigQuery using natural language instead of SQL.
by isaacwasserman
Provides tools for saving data tables and generating Vega‑Lite visualizations via an MCP interface, supporting both textual specifications and PNG image output.
by surendranb
Google Analytics MCP Server is a Python-based tool that enables Large Language Models (LLMs) to access and analyze Google Analytics 4 (GA4) data using natural language, providing conversational querying of over 200 GA4 dimensions and metrics.
by tinybirdco
Provides a Model Context Protocol server implementation for Tinybird, allowing analytics agents to forward data to Tinybird's platform.