ton-docs
TON Documentation
Search and reference the official TON blockchain documentation via the TON Docs MCP server.
MCP Server Setup
The TON Docs MCP server uses a remote HTTP transport — no local process to install.
Add to your MCP settings:
{
"mcpServers": {
"ton-docs": {
"type": "http",
"url": "https://docs.ton.org/mcp"
}
}
}
MCP Tools
| Tool | Required Params | Description |
|---|---|---|
search_ton_docs |
query |
Search across the TON Docs knowledge base for relevant content, code examples, API references, and guides |
get_page_ton_docs |
page |
Retrieve the full content of a specific documentation page by its path (e.g., from search results) |
When to Use
- User asks about TON blockchain concepts (workchains, sharding, validators, masterchain)
- User asks about smart contract development (FunC, Tact, Tolk, Fift, TL-B schemas)
- User asks about TON standards (TEP, jetton standard TEP-74, NFT standard TEP-62)
- User asks about wallet contracts, message formats, or internal/external messages
- User asks about TON addresses, BOC encoding, cell serialization
- User asks about DeFi protocols, DEX, or token mechanics on TON
- User needs code examples for TON smart contracts or SDK usage
- User asks about TON APIs (TonCenter v2/v3), node operations, or infrastructure
Workflow
- Identify the topic and its sub-aspects from the user's question
- Run multiple
search_ton_docscalls with different targeted queries to cover all angles (e.g. one broad query + one SDK/tooling-specific query) - From the combined search results, identify the 2–4 most relevant page paths
- Call
get_page_ton_docson those pages in parallel to retrieve full content efficiently - If the pages reference other relevant pages (e.g. a "See also" section), fetch those too
- Synthesize the answer from all fetched pages, include code examples, and link to sources (prefix paths with
https://docs.ton.org/)
Gotchas
- Search returns short snippets — always follow up with
get_page_ton_docsto get full page content including code examples - Page paths from search results can be passed directly to
get_page_ton_docswithout modification - A good answer typically requires fetching 3–5 pages; a single page rarely covers the full picture
- For smart contract questions, determine whether the user is working with FunC, Tact, or Tolk before providing examples
- For SDK questions, determine the language (TypeScript/JavaScript via
@ton/ton, Python viapytoniq, etc.) - TON docs are regularly updated — always search for fresh content rather than relying on cached knowledge
TEPs (TON Enhancement Proposals)
For protocol standards not covered by the docs site, TEPs are on GitHub:
| TEP | Topic | URL |
|---|---|---|
| TEP-62 | NFT Standard | https://github.com/ton-blockchain/TEPs/blob/master/text/0062-nft-standard.md |
| TEP-64 | Token Data Standard | https://github.com/ton-blockchain/TEPs/blob/master/text/0064-token-data-standard.md |
| TEP-74 | Jetton Standard | https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md |
| TEP-81 | DNS Standard | https://github.com/ton-blockchain/TEPs/blob/master/text/0081-dns-standard.md |
| All TEPs | Index | https://github.com/ton-blockchain/TEPs/blob/master/README.md |
More from ton-org/skills
ton-cli
Use this skill when invoking TON MCP tools directly from the command line. It calls any TON wallet tool via `npx @ton/mcp@alpha <tool_name> [--arg value ...]` without starting an MCP server session. Also use when querying wallet info, checking balances, sending transactions, or running raw TON MCP commands from the terminal.
18ton-swap
Swap or trade tokens on the TON blockchain via DEX. Use when the user wants to swap, trade, exchange, convert, buy, or sell tokens like TON, USDT, jUSDC, or any jetton. Covers phrases like "swap TON for USDT", "trade tokens", "buy USDT", "exchange jettons".
16ton-send
Use this skill when sending TON or jettons (tokens) to an address or TON DNS domain. It transfers TON, jettons, or other assets to any wallet address, .ton domain, or .t.me domain. Also use when the user wants to pay someone, send funds, transfer tokens, or move assets on the TON blockchain.
16ton-nfts
Use this skill when viewing or transferring NFTs on the TON blockchain. It lists collectibles, checks NFT details, and sends NFTs to other addresses. Also use when the user mentions collectibles, digital assets, NFT collections, or wants to send an NFT to someone on TON.
16ton-balance
Use this skill when checking TON wallet balances, token holdings, or transaction history. It retrieves how much TON or jettons a wallet holds, lists tokens, looks up token details, checks transaction history, and verifies transaction status. Also use when the user asks about their funds, portfolio, or recent activity on TON.
16ton-xstocks
Buy or sell Backed xStocks (tokenized equities, e.g. TSLAx) on TON using jetton addresses from the xStocks API and TON MCP swap tools. Use when the user asks for xStocks, xStock, TSLAx, stock tokens on TON, or buying/selling equity jettons via Omniston.
16