Tutorial — Bridges
Use LayerZero V2
The LayerZero MCP server exposes 20 tools — fee quotes, OFT sends, value-transfer-API quotes, Stargate V2 native bridging, and message tracking — all callable through Streamable HTTP.
- Level
- Intermediate
- Time
- ~20 min
- Prerequisites
- EVM wallet, MCP-aware client
- Stack
- TypeScript · MCP
01
Open the LayerZero MCP client
The endpoint runs alongside the other ecosystem MCPs.
import { McpClient } from "tenzro-sdk";
const lz = new McpClient("https://layerzero-mcp.tenzro.network/mcp");02
Quote a fee
The quote queries EndpointV2.quote() via eth_call.
const fee = await lz.call("lz_quote_fee", {
src_chain: "ethereum", dst_chain: "tenzro", message: "0x..."
});03
Send an OFT transfer
OFT send returns calldata, fee, and required ERC-20 approval steps.
const send = await lz.call("lz_oft_send", {
token: "0x...",
dst_chain: "solana",
amount: "100000000",
});04
Track delivery
Track by GUID through LayerZero Scan.
await lz.call("lz_track_message", { guid: send.guid });Related