Loading...
Loading...
Call TON MCP tools directly from the command line. Use when you want to query wallet info, check balances, send transactions, or run any TON wallet tool without starting an MCP server session. Works via `npx @ton/mcp@alpha <tool_name> [--arg value ...]`.
npx skill4agent add ton-connect/kit ton-cli| Command | Description |
|---|---|
| stdio MCP server (for Claude Desktop / MCP clients) |
| HTTP MCP server |
| Raw CLI: call one tool and exit |
stdio--http# No arguments
npx @ton/mcp@alpha get_balance
# Named arguments (--key value)
npx @ton/mcp@alpha get_transactions --limit 5
npx @ton/mcp@alpha get_jetton_balance --jettonAddress EQAbc...
# All values are passed as plain strings; JSON objects/arrays are also accepted
npx @ton/mcp@alpha get_transactions --limit 10
npx @ton/mcp@alpha send_ton --toAddress UQA... --amount 0.1 --comment "hi"--key value{...}[...]1# Capture output for scripting
BALANCE=$(npx @ton/mcp@alpha get_balance)
echo $BALANCE | jq '.balance'| Variable | Description |
|---|---|
| |
| 24-word mnemonic for single-wallet mode |
| Hex-encoded private key (alternative to mnemonic) |
| |
| Optional Toncenter API key |
| Path to config file (default: |
MNEMONICPRIVATE_KEY~/.config/ton/config.json--walletSelector| Tool | Required args | Optional args |
|---|---|---|
| — | |
| — | |
| | |
| | |
| — | |
| | |
| | |
| — | |
| | |
| — | — |
| Tool | Required args | Optional args |
|---|---|---|
| — | — |
| — | — |
| | — |
| | — |
| Tool | Required args | Optional args |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| Tool | Required args | Optional args |
|---|---|---|
| | |
| Tool | Required args | Optional args |
|---|---|---|
| — | |
| | |
| | |
| Tool | Required args | Optional args |
|---|---|---|
| | |
| | |
# Check wallet address and network
npx @ton/mcp@alpha get_wallet
# Check TON balance
npx @ton/mcp@alpha get_balance
# List all tokens
npx @ton/mcp@alpha get_jettons
# Last 10 transactions
npx @ton/mcp@alpha get_transactions --limit 10
# Get balance of a specific jetton
npx @ton/mcp@alpha get_jetton_balance --jettonAddress EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs
# Resolve a .ton domain
npx @ton/mcp@alpha resolve_dns --domain foundation.ton
# In registry mode: check balances for a named wallet
npx @ton/mcp@alpha get_balance --walletSelector "my-hot-wallet"
# In registry mode: list all registered wallets
npx @ton/mcp@alpha list_wallets
# Send TON (always confirm with user first)
npx @ton/mcp@alpha send_ton --toAddress UQA... --amount 0.5 --comment "payment"
# Swap quote
npx @ton/mcp@alpha get_swap_quote --fromToken TON --toToken EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs --amount 1emulate_transactionsend_tonsend_jettonsend_nftsend_raw_transactionget_transaction_status --normalizedHash <hash>completedfailed~/.config/ton/config.json