Tegro Wallet MCP
Provides read-only, real-time access to TON blockchain data including wallet balances, token holdings, transactions, prices, NFTs, DNS resolution, and address validation, without requiring private keys.
README
Tegro Wallet MCP — TON / GRAM
The TON & GRAM wallet MCP. Give any AI assistant read-only, real-time access to TON on-chain data — wallet balances, tokens, transactions, prices, NFTs, TON DNS and address validation — with no private keys and no signing. One server, every major AI client.
Read-only Model Context Protocol server for TON wallets and the GRAM token (formerly Toncoin). Works out of the box with Claude Desktop, Claude Code, Cursor, Hermes Agent (MCP) and ChatGPT (GPT Actions via OpenAPI).
Part of the Tegro open ecosystem — see @tegroton/tegro-finance (DEX) and @tegroton/tegro-money (payments).
🔁 The TON native token rebranded Toncoin → Gram (ticker TON → GRAM, 2026‑06‑15). Balances are 1:1, the network and addresses stay TON. This server surfaces amounts as GRAM and the network as TON.
Tools
| Tool | What it returns |
|---|---|
ton_get_account |
GRAM balance, status, wallet flag for an address |
ton_get_jettons |
Jetton (token) balances with fiat value |
ton_get_transactions |
Recent transactions — type, GRAM amount, counterparty, comment |
ton_get_rate |
GRAM (or any jetton) price in a fiat currency + 24h change |
ton_get_jetton_info |
Jetton metadata by master address (symbol, supply, verification) |
ton_get_nfts |
NFTs owned by an address |
ton_resolve_dns |
TON DNS name → wallet address |
ton_validate_address |
Validate + normalize an address offline (CRC16, bounceable/testnet flags) |
Every tool maps 1:1 to an MCP tool and an HTTP POST /tools/<name> operation in the OpenAPI spec — the two surfaces are generated from one definition.
Example output
// ton_get_rate { "token": "ton", "currency": "usd" }
{ "token": "GRAM", "currency": "USD", "price": 1.58, "diff24h": "+1.39%" }
// ton_get_account { "address": "UQ…" }
{ "address": "0:…", "balanceGram": "12.8400", "balanceNano": "12840000000",
"status": "active", "isWallet": true, "network": "TON" }
// ton_validate_address { "address": "EQ…" } ← offline, no network
{ "valid": true, "format": "friendly", "raw": "0:…", "workchain": 0,
"bounceable": true, "testnet": false }
Ask an AI assistant: "What's the GRAM price, and how much is in foundation.ton?" — it resolves the DNS name, reads the balance, and answers with live data.
Quick start
npx @tegroton/wallet-mcp # MCP server over stdio
npx @tegroton/wallet-mcp http 8787 # HTTP + OpenAPI on :8787 (for ChatGPT / universal)
No configuration is required. To lift the public rate limit, set a TonAPI key: TONAPI_KEY=....
Connect it
Claude Desktop / Claude Code / Cursor (MCP)
Add to your MCP config (claude_desktop_config.json, Cursor ~/.cursor/mcp.json, or claude mcp add):
{
"mcpServers": {
"tegro-wallet-mcp": {
"command": "npx",
"args": ["-y", "@tegroton/wallet-mcp"],
"env": { "TONAPI_KEY": "" }
}
}
}
Claude Code one-liner: claude mcp add tegro-wallet-mcp -- npx -y @tegroton/wallet-mcp
Hermes Agent (MCP)
Hermes Agent connects any MCP server. Add @tegroton/wallet-mcp as an MCP server in its MCP config / registry with the same command/args as above, then enable it via hermes tools.
ChatGPT (GPT Actions)
Run the HTTP surface (self-host — see below) and point a custom GPT's Action at https://<your-host>/openapi.json. Each tool becomes an operation the GPT can call. Read-only, so no auth is required (add your own if you host it privately).
Self-host the HTTP surface
# from source
npm i && npm run build && node dist/cli.js http 8787
# docker
docker build -t tegro-wallet-mcp . && docker run -p 8787:8787 -e TONAPI_KEY=... tegro-wallet-mcp
Endpoints: GET / (info), GET /health, GET /openapi.json, POST /tools/<name> (JSON body).
curl -s localhost:8787/tools/ton_get_rate -d '{"token":"ton","currency":"usd"}'
# → {"token":"GRAM","currency":"USD","price":1.58,"diff24h":"+1.39%"}
Safety
- Read-only. No private keys, no seed phrases, no signing, no transactions — the server only reads public on-chain data via TonAPI.
- No secrets are required or stored. An optional
TONAPI_KEY(yours) only raises the rate limit. - Non-custodial by design: it cannot move funds.
Programmatic use
import { getAccount, getRate } from "@tegroton/wallet-mcp";
const acc = await getAccount("UQ…"); // { balanceGram, status, network: "TON", … }
const rate = await getRate("ton", "usd"); // { token: "GRAM", price, diff24h }
Contributing & support
- Contributing guide — setup, tests, adding a tool
- Security policy — report privately to
security@tegro.finance - Changelog · Code of conduct
- Issues and feature requests: GitHub issues
Ecosystem
Part of the Tegro open ecosystem — a non-custodial TON/GRAM wallet with a crypto card. Sister packages:
@tegroton/tegro-finance— Tegro Finance DEX SDK@tegroton/tegro-money— Tegro.Money payments SDK
License
MIT © TegroTON
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。