mcpField
T

Tongateway

Local
github.com/tongatewayFinance0Updated 29w ago

About Tongateway

Tongateway is an MCP server for AI agents to access TON blockchain operations, including wallets, tokens, NFTs, transactions, and DEX orders. Transfers can require wallet approval or use an Agent Wallet that sends without approval.

Key features

  1. 01Inspect wallet balances, tokens, and NFTs
  2. 02View transaction history
  3. 03Request transfers requiring wallet approval
  4. 04Transfer directly with an Agent Wallet
  5. 05Resolve .ton names and check prices
  6. 06Create DEX limit orders

Use cases

  1. 01Review TON wallet assets and recent transactions
  2. 02Resolve a recipient address from a .ton name
  3. 03Request a TON transfer for wallet approval
  4. 04Send funds with an Agent Wallet

MCP support

The server exposes TON blockchain tools to MCP clients, including wallet queries, transfers, name resolution, and DEX orders. It can be configured in MCP clients and also provides an MCP HTTP endpoint.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"tongateway": {
"command": "npx",
"args": [
"-y",
"@tongateway/mcp"
],
"env": {
"AGENT_GATEWAY_API_URL": "<AGENT_GATEWAY_API_URL>"
}
}
}
}
Run commandnpx -y @tongateway/mcp
Environment variables to set
AGENT_GATEWAY_API_URL

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@tongateway/mcp

Tools

18

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
labelstringNoLabel for this agent session (e.g. "claude-agent")

Details

From the project README

@tongateway/mcp

smithery badge

MCP server for Agent Gateway — gives AI agents full access to the TON blockchain via Model Context Protocol.

16 tools: wallet info, jettons, NFTs, transactions, transfers, .ton DNS, prices, DEX orders, agent wallets, and more.

Quick Start

Claude Code
claude mcp add-json tongateway '{
  "command": "npx",
  "args": ["-y", "@tongateway/mcp"],
  "env": {
    "AGENT_GATEWAY_API_URL": "https://api.tongateway.ai"
  }
}' --scope user
Cursor

Add to Cursor Settings → MCP Servers:

{
  "mcpServers": {
    "tongateway": {
      "command": "npx",
      "args": ["-y", "@tongateway/mcp"],
      "env": {
        "AGENT_GATEWAY_API_URL": "https://api.tongateway.ai"
      }
    }
  }
}
OpenClaw
openclaw config set --strict-json plugins.entries.acpx.config.mcpServers '{
  "tongateway": {
    "command": "npx",
    "args": ["-y", "@tongateway/mcp"],
    "env": {
      "AGENT_GATEWAY_API_URL": "https://api.tongateway.ai"
    }
  }
}'

No token needed upfront — the agent authenticates via auth.request (generates a one-time link, user connects wallet). Token persists in ~/.tongateway/token across restarts.

Tools

Auth
ToolDescription
auth.requestGenerate a one-time link for wallet connection
auth.get_tokenRetrieve token after user connects wallet
Wallet
ToolDescription
wallet.infoWallet address, TON balance, account status
wallet.jettonsAll token balances (USDT, NOT, DOGS, etc.)
wallet.transactionsRecent transaction history
wallet.nftsNFTs owned by the wallet
Transfers (Safe — requires wallet approval)
ToolDescription
transfer.requestRequest a TON transfer (to, amountNano, payload?, stateInit?)
transfer.statusCheck transfer status by ID
transfer.pendingList all pending requests
Lookup
ToolDescription
lookup.resolve_nameResolve .ton domain to address
lookup.priceCurrent TON price in USD/EUR
DEX (open4dev order book)
ToolDescription
dex.create_orderPlace a limit order (fromToken, toToken, amount, price)
dex.pairsList available trading pairs
Agent Wallet (Autonomous — no approval needed)
ToolDescription
agent_wallet.deployDeploy a dedicated wallet contract for the agent
agent_wallet.transferSend TON directly from agent wallet
agent_wallet.infoBalance, seqno, agent key status

How it works

You: "Send 1 TON to alice.ton"

Agent: lookup.resolve_name("alice.ton") → 0:83df...
       transfer.request(to="0:83df...", amountNano="1000000000")
       → Transfer request created. Approve in your wallet app.

For agent wallets (autonomous mode):

You: "Send 0.5 TON from my agent wallet to 0:abc..."

Agent: agent_wallet.transfer(wallet, to, amount)
       → Transfer executed. No approval needed.

Build from Source

If you prefer not to use npx, you can build and run locally:

git clone https://github.com/tongateway/mcp
cd mcp
npm install
npm run build

Then configure your MCP client to use the local build:

{
  "mcpServers": {
    "tongateway": {
      "command": "node",
      "args": ["/path/to/mcp/dist/index.js"],
      "env": {
        "AGENT_GATEWAY_API_URL": "https://api.tongateway.ai"
      }
    }
  }
}

See SECURITY.md for the full security model.

Links

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.